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!
Adafruit 10 DOF + Arduino Due not working
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_bill
- Posts: 88093
- Joined: Sat Feb 07, 2009 10:11 am
Re: Adafruit 10 DOF + Arduino Due not working
The Due has 2 i2c buses. Have you tried connecting to the SDA/SCL pins near AREF?
- tarunbali
- Posts: 12
- Joined: Thu Apr 14, 2016 12:43 am
Re: Adafruit 10 DOF + Arduino Due not working
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.
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.
- tarunbali
- Posts: 12
- Joined: Thu Apr 14, 2016 12:43 am
Re: Adafruit 10 DOF + Arduino Due not working
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.
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.
- adafruit_support_bill
- Posts: 88093
- Joined: Sat Feb 07, 2009 10:11 am
Re: Adafruit 10 DOF + Arduino Due not working
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.
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.
- tarunbali
- Posts: 12
- Joined: Thu Apr 14, 2016 12:43 am
Re: Adafruit 10 DOF + Arduino Due not working
Hey Bill,
I've added 3 images. Hopefully they are clear enough. Let me know if you need more.
I've added 3 images. Hopefully they are clear enough. Let me know if you need more.
- Attachments
-
- Image 3 of 3
- DSC00704.JPG (597.23 KiB) Viewed 1914 times
-
- Image 2 of 3
- DSC00703.JPG (674.98 KiB) Viewed 1914 times
-
- Image 1 of 3
- DSC00702.JPG (751.51 KiB) Viewed 1914 times
- adafruit_support_bill
- Posts: 88093
- Joined: Sat Feb 07, 2009 10:11 am
Re: Adafruit 10 DOF + Arduino Due not working
Are those sensor connections soldered?
- tarunbali
- Posts: 12
- Joined: Thu Apr 14, 2016 12:43 am
Re: Adafruit 10 DOF + Arduino Due not working
Those sensor connections are merely in contact. Would they have to be soldered to work accurately?
- adafruit_support_bill
- Posts: 88093
- Joined: Sat Feb 07, 2009 10:11 am
Re: Adafruit 10 DOF + Arduino Due not working
Yes. Jumper pins will not make reliable enough contact without solder.
- tarunbali
- Posts: 12
- Joined: Thu Apr 14, 2016 12:43 am
Re: Adafruit 10 DOF + Arduino Due not working
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?
- adafruit_support_bill
- Posts: 88093
- Joined: Sat Feb 07, 2009 10:11 am
Re: Adafruit 10 DOF + Arduino Due not working
Yes, you can solder in some female headers, then plug the pins into those.
https://www.adafruit.com/products/598
https://www.adafruit.com/products/598
- tarunbali
- Posts: 12
- Joined: Thu Apr 14, 2016 12:43 am
Re: Adafruit 10 DOF + Arduino Due not working
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. :)
PS: Thanks for helping out Bill. I really appreciate the help. :)
- tarunbali
- Posts: 12
- Joined: Thu Apr 14, 2016 12:43 am
Re: Adafruit 10 DOF + Arduino Due not working
Hey Bill,
We just soldered it and we are able to read the accelerometer data from it as expected. Thanks, man! :)
We just soldered it and we are able to read the accelerometer data from it as expected. Thanks, man! :)
- adafruit_support_bill
- Posts: 88093
- Joined: Sat Feb 07, 2009 10:11 am
Re: Adafruit 10 DOF + Arduino Due not working
Great! Thanks for the follow-up.
Please be positive and constructive with your questions and comments.