JeeLabs Gravity Plug on Arduino Uno
Posted: Fri Jan 28, 2011 1:30 pm
I'm a mechanical engineer, so all this is new to me sorry.
I've got the Arduino Uno, a Fluxamasynth, and I want the JeeLabs Gravity plug to control the Fluxamasynth.
I can't find the code anywhere for configuring the Gravity Plug. Right now, I have Analog pins 4 and 5 set up for the SDA and SCL. 3.3V and Ground set up to the Gravity Plug.
1) Do I need to set up the PWR and IRQ pins if I am only using one I2C sensor?
2) What code do I need in the Sketch to get data from the Gravity Plug? (I've found code for other Accelerometers, but nothing is working for the Jeelabs sensor.)
If I can start getting numbers from the thing I should be good. Again sorry for my noob-ishness.
-Josh
I've got the Arduino Uno, a Fluxamasynth, and I want the JeeLabs Gravity plug to control the Fluxamasynth.
I can't find the code anywhere for configuring the Gravity Plug. Right now, I have Analog pins 4 and 5 set up for the SDA and SCL. 3.3V and Ground set up to the Gravity Plug.
1) Do I need to set up the PWR and IRQ pins if I am only using one I2C sensor?
2) What code do I need in the Sketch to get data from the Gravity Plug? (I've found code for other Accelerometers, but nothing is working for the Jeelabs sensor.)
If I can start getting numbers from the thing I should be good. Again sorry for my noob-ishness.
-Josh