Go Down

Topic: L3G4200D 3 Axis digital output Gyroscope (Read 2321 times) previous topic - next topic


May 09, 2012, 03:37 pm Last Edit: May 09, 2012, 06:29 pm by hackrash Reason: 1
I have an Arduino UNO.
I have just bought a L3G4200D 3 Axis digital output Gyroscope (this one: http://www.ebay.it/itm/180841862029?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1439.l2649#ht_2214wt_952) .

On the item there are 8 pins: GND, VCC, SCL, SDA, SDO, CS, INT2 and INT1.

I followed the example here: http://bildr.org/2011/06/l3g4200d-arduino/
using the same connections and code.
However my serial comunication tells me only "starting up L3G4200D" and nothing else.

What's happening?

Thank you.


Its a 3.3V device, you realise this?   You need 4k7 pullups on SDA and SCL to 3.3V and I think the ATmega I2C hardware will do the right thing (drive the lines open-drain).  [ can someone confirm this? - the datasheet for 328p claims it will work with multiple masters and I infer its always open-drain ]

You must NOT set the SDA or SCL HIGH when enabled as OUTPUTs, this will put 5V on the lines.
[ I will NOT respond to personal messages, I WILL delete them, use the forum please ]


I have the same gyro working on arduino uno. You just have to connect 3v3 to the CS pin. This enables I2C. More questions? ask ;) (if i'll remember where to look)

Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131