Go Down

Topic: L3G4200D 3 Axis digital output Gyroscope (Read 1 time) previous topic - next topic

hackrash

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.


MarkT

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 won't respond to messages, use the forum please ]

RobCoenen

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