Pages: [1]   Go Down
Author Topic: L3G4200D 3 Axis digital output Gyroscope  (Read 1813 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 5
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.

« Last Edit: May 09, 2012, 11:29:14 am by hackrash » Logged

0
Offline Offline
Shannon Member
****
Karma: 206
Posts: 12062
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

[ I won't respond to messages, use the forum please ]

Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 smiley-wink (if i'll remember where to look)

Logged

Pages: [1]   Go Up
Jump to: