LSM303/L3GD20

For other supported Arduino products from Adafruit: Shields, accessories, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
rscot007
 
Posts: 6
Joined: Tue Feb 17, 2015 3:31 pm

LSM303/L3GD20

Post by rscot007 »

Hello I am using an adruino mega and am having issues getting this device to work. I have the LSM303/L3GD20 and I have downloaded all the libraries from the support website. i have connected Vin to 5V , Gnd to Gnd, Sc to Scl digital 21, and SCA to Sca digital 20. Once i upload the program i try to open the serial monitor on the arduino program and i am receiving the error that "Ooops, no LSM303 detected ... Check your wiring!" . I am wondering if my wiring is incorrect, or if i have to change something in the code, or is there a way for me to check if the chip is defective. Thank you, also is there a better location for me to ask for help or is this the right place.

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: LSM303/L3GD20

Post by adafruit_support_mike »

This is the right place.

Post a photo of your hardware and connections and we'll take a look.

User avatar
rscot007
 
Posts: 6
Joined: Tue Feb 17, 2015 3:31 pm

Re: LSM303/L3GD20

Post by rscot007 »

Thanks Mike here is the url to the picture on imgur. http://imgur.com/rzAEpgC

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: LSM303/L3GD20

Post by adafruit_support_mike »

Your soldering looks good and the connections seem to be correct.

Double-check the voltage between the Vin and GND pins on the breakout, and continuity from the Arduino to the breakout on the SDA and SCL lines.

User avatar
rscot007
 
Posts: 6
Joined: Tue Feb 17, 2015 3:31 pm

Re: LSM303/L3GD20

Post by rscot007 »

Hello Mike, I am reading 5 volts between Vin and GND. Also there is continuity from the arduino to the SDA and SCl breakouts on the senor. Do you think it is possible that the chip was damaged in some way that the program can recognize it. If so it there a way i could exchange it for another one? Thank you.

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: LSM303/L3GD20

Post by adafruit_support_mike »

Let's check a couple more things before making you sit through another shipping delay.

Check the voltage on the SDA and SCL pins. They should be at 5v, but it's worth confirming.

User avatar
rscot007
 
Posts: 6
Joined: Tue Feb 17, 2015 3:31 pm

Re: LSM303/L3GD20

Post by rscot007 »

Yes they both read 5 volts

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: LSM303/L3GD20

Post by adafruit_support_mike »

Okay, one last thing: if you take out the code for the LSM303 and only run code for the L3GD20, do you get a response from that?

User avatar
rscot007
 
Posts: 6
Joined: Tue Feb 17, 2015 3:31 pm

Re: LSM303/L3GD20

Post by rscot007 »

When i do that the only thing that shows on the serial monitor is "Gyroscope test". In the Arduino program I loaded sensorspi.pde and that is how i tested just the L3GD20. i then just test the LSM303 by trying the accelsensor.pde and I received the same error as the first time "Ooops, no LSM303 detected ... Check your wiring!" .

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: LSM303/L3GD20

Post by adafruit_support_mike »

Hrm.. if one had worked and the other didn't, it would suggest a chip failure. This sounds more like a general I2C failure.

Do you have any other I2C devices you can use to check the connection?

User avatar
rscot007
 
Posts: 6
Joined: Tue Feb 17, 2015 3:31 pm

Re: LSM303/L3GD20

Post by rscot007 »

I connected it to an arduino uno and now im receiving this error "avrdude: stk500v2_ReceiveMessage(): timeout"

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: LSM303/L3GD20

Post by adafruit_support_mike »

That's an error programming the Arduino. Check to make sure you have the right board and serial port selected under the Tools menu.

Locked
Please be positive and constructive with your questions and comments.

Return to “Other Arduino products from Adafruit”