Go Down

Topic: IMU communication problem - Wire.cpp twi.c (Read 547 times) previous topic - next topic

mjochinsen

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?


Fabio Varesano

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!

MarkT

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"?
[ I won't respond to messages, use the forum please ]

Go Up