Submitted by Aristotle (not verified) on Wed, 2007-12-26 23:29.
I decided to go the less invasive route, no cutting. I opened up the connector to figure out the pinout, and then put it back together.
On the connector there is a small hole by each pin, perfect for jumpers. Here is the pinout, with the connector facing you, like you are going to plug it into your eyeball ;)
Ok I got it working
I decided to go the less invasive route, no cutting. I opened up the connector to figure out the pinout, and then put it back together.
On the connector there is a small hole by each pin, perfect for jumpers. Here is the pinout, with the connector facing you, like you are going to plug it into your eyeball ;)
|~~_____~~|
| 6 4 2 |
| ------ |
| 5 3 1 |
\_________/
1 = green
2 = white
3 = red
6 = yellow
Beyond that the only change I made to Chads code as setting. beginSerial (115200), however 19200 seems to work as well.
No changes to the twi.h, I'm using 3.3v on the red lead.
Thanks Chad for this cool code.
Is there a way to translate the acceleration data into tilt data?