Pages: [1]   Go Down
Author Topic: IMU communication problem - Wire.cpp twi.c  (Read 462 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I recently a few IMU boards



https://www.sparkfun.com/products/10121
https://www.sparkfun.com/products/10736
https://www.sparkfun.com/products/10724

And an Arduino Leonardo



https://www.sparkfun.com/products/11286

I followed the wiring diagram.

I downloaded the FreeIMU library

http://www.varesano.net/topic/freeimu

I change the code for the correct Serial port and IMU board as suggested.

BUT... The Arduino IDE serial monitor shows nothing.

I did a little debuging and found out that it is stuck at:
TwoWire::endTransmission(...)
... more specifically at
twi_wrteTo(...)

I read tens of threads and followed all the recommendations. Nothing worked

https://docs.google.com/open?id=0B-vf9eDtJzmYZG5aaEpjWkw1TFE


As last resource I bought a new board but still didnt work :-(

Any suggestions?

Logged

Torino, Italy
Offline Offline
Sr. Member
****
Karma: 2
Posts: 312
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Well, if you followed the connection diagrams for the Arduino UNO available on bildr, then it won't work..

The leonardo has the I2C bus on different pins compared to the UNO.. You will just have to use the SDA and SCL pins which are available on the leonardo (near D13) and not the A4 and A5 like in the UNO.

Hope this helps,

Fabio Varesano

p.s.: oh.. and next time get a FreeIMU!
Logged

0
Offline Offline
Shannon Member
****
Karma: 161
Posts: 10446
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

How exactly have you wired it up?  Which wiring diagram?  What voltage did you power the IMU board from?  Which IMU board of the 3 did you use?  Did the wiring diagram say "Arduino Leonardo"?
Logged

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

Pages: [1]   Go Up
Jump to: