Adafruit 10 DOF + Arduino Due not working

For makers who have purchased an Adafruit Starter Pack, get help with the tutorials here!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
tarunbali
 
Posts: 12
Joined: Thu Apr 14, 2016 12:43 am

Adafruit 10 DOF + Arduino Due not working

Post by tarunbali »

Hey guys,

I'm trying to read data off the Adafruit 10 DOF IMU using an Arduino DUE. However, every time I run the example program, I encounter the following error:
"Ooops, no LSM303 detected ... Check your wiring!"
I am quite certain I have my wiring right.
Adafruit -> Arduino
Vin -------> 5V
GND -----> GND
SCL ------> SCL (21)
SDA -----> SDA (20)

Please help!

User avatar
adafruit_support_bill
 
Posts: 88093
Joined: Sat Feb 07, 2009 10:11 am

Re: Adafruit 10 DOF + Arduino Due not working

Post by adafruit_support_bill »

The Due has 2 i2c buses. Have you tried connecting to the SDA/SCL pins near AREF?

User avatar
tarunbali
 
Posts: 12
Joined: Thu Apr 14, 2016 12:43 am

Re: Adafruit 10 DOF + Arduino Due not working

Post by tarunbali »

Hey Bill,

First of all, sorry for double-posting. I thought I had posted in the wrong category when I didn't seem to receive responses.
Anyway, I tried switching the wiring to the pins near the Aref pin. I still encounter the same error message.

User avatar
tarunbali
 
Posts: 12
Joined: Thu Apr 14, 2016 12:43 am

Re: Adafruit 10 DOF + Arduino Due not working

Post by tarunbali »

Also, here are a few other questions I have for you.
1. Are all the ground pins equivalent? If I need to ground something, could I plug it into any one of the several ground pins on the board?
2. Are both, the SCL and SDA pins output from the IMU? Or is the SCL an input port? I was just curious if I should try plugging the IMU's SCL & SDA pins to the TX and RX pins on the arduino.

User avatar
adafruit_support_bill
 
Posts: 88093
Joined: Sat Feb 07, 2009 10:11 am

Re: Adafruit 10 DOF + Arduino Due not working

Post by adafruit_support_bill »

All of the grounds are connected internally on the Due, so you can use whichever one is most convenient for you.

SCL and SDA are both bi-directional. The i2c bus uses 'open drain' outputs with pullups to implement a multi-master/multi-slave bus. It is not equivalent to a serial port, so connecting to Rx/Ts will not work.

Please post some photos of your soldering and connections to the sensor.

User avatar
tarunbali
 
Posts: 12
Joined: Thu Apr 14, 2016 12:43 am

Re: Adafruit 10 DOF + Arduino Due not working

Post by tarunbali »

Hey Bill,
I've added 3 images. Hopefully they are clear enough. Let me know if you need more.
Attachments
Image 3 of 3
Image 3 of 3
DSC00704.JPG (597.23 KiB) Viewed 1914 times
Image 2 of 3
Image 2 of 3
DSC00703.JPG (674.98 KiB) Viewed 1914 times
Image 1 of 3
Image 1 of 3
DSC00702.JPG (751.51 KiB) Viewed 1914 times

User avatar
adafruit_support_bill
 
Posts: 88093
Joined: Sat Feb 07, 2009 10:11 am

Re: Adafruit 10 DOF + Arduino Due not working

Post by adafruit_support_bill »

Are those sensor connections soldered?

User avatar
tarunbali
 
Posts: 12
Joined: Thu Apr 14, 2016 12:43 am

Re: Adafruit 10 DOF + Arduino Due not working

Post by tarunbali »

Those sensor connections are merely in contact. Would they have to be soldered to work accurately?

User avatar
adafruit_support_bill
 
Posts: 88093
Joined: Sat Feb 07, 2009 10:11 am

Re: Adafruit 10 DOF + Arduino Due not working

Post by adafruit_support_bill »

Yes. Jumper pins will not make reliable enough contact without solder.

User avatar
tarunbali
 
Posts: 12
Joined: Thu Apr 14, 2016 12:43 am

Re: Adafruit 10 DOF + Arduino Due not working

Post by tarunbali »

Could we solder female pin holes (I don't know what they're actually called) like the ones on the arduino so we can plug in the wires to the female pin holes, or should we directly solder wires onto the IMU?

User avatar
adafruit_support_bill
 
Posts: 88093
Joined: Sat Feb 07, 2009 10:11 am

Re: Adafruit 10 DOF + Arduino Due not working

Post by adafruit_support_bill »

Yes, you can solder in some female headers, then plug the pins into those.
https://www.adafruit.com/products/598

User avatar
tarunbali
 
Posts: 12
Joined: Thu Apr 14, 2016 12:43 am

Re: Adafruit 10 DOF + Arduino Due not working

Post by tarunbali »

Okay. We'll contact our soldering specialist and get on it. Hopefully, this resolves the issue at hand.

PS: Thanks for helping out Bill. I really appreciate the help. :)

User avatar
tarunbali
 
Posts: 12
Joined: Thu Apr 14, 2016 12:43 am

Re: Adafruit 10 DOF + Arduino Due not working

Post by tarunbali »

Hey Bill,

We just soldered it and we are able to read the accelerometer data from it as expected. Thanks, man! :)

User avatar
adafruit_support_bill
 
Posts: 88093
Joined: Sat Feb 07, 2009 10:11 am

Re: Adafruit 10 DOF + Arduino Due not working

Post by adafruit_support_bill »

Great! Thanks for the follow-up.

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

Return to “Arduino Starter Pack”