Go Down

Topic: Guide to gyro and accelerometer with Arduino including Kalman filtering (Read 313 times) previous topic - next topic

d0nut

did you use atan2 insteadt of atan? in scilab atan = atan2 ... sry to confuse you

Lauszus

Yes I used atan (or arctan) as the document says at page 13 :)

cristo829

@ Lauszus Im trying to use your code with an I2c gyro and accelerometer but the sensitivity is given in lowest significant bit, would you know how to apply this?
Im using
gyro  ITG 3200 with sensitivity 14.375 LSB/(ยบ/s)
accelerometer BMA180 the sensitivity varies with the G but at 1 g is 8192 LSB/g

Lauszus

@cristo829
Hi
You should have a look at the dialog I had with "Kashif" starting at this link: http://arduino.cc/forum/index.php/topic,58048.msg534263.html#msg534263. He is using the same gyro as you (ITG3200), but not the same accelerometer though (ADXL345). This is the IMU: http://www.sparkfun.com/products/10121.

If you follow the dialog, I think you will get it working. Just remember to change the values for the accelerometer!

Alternative send him a PM and ask for his code..

If you need more help, just send another reply and I will try to help you as best I can :D


Go Up