Go Down

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


Sorry, I didn't see the last line in your post :)

Hmm, it seams like you do everything correct.

But hey, why do you need a gyro to tell the degrees? You don't need that for a servo. Just send it the correct pulse, and it will go to the requested position!!

See this page for more information: http://www.arduino.cc/en/Reference/Servo


Hey :)

I have a continues Servo... and after doing all of this, my gyro is still like 95% accurate ...
i need 99% atleast..

I just think i'm gonna get an Absolut Angle sensor and connect it to the servo..

Thanks for the help anyway, you were very nice and helpfull :)


Why not just use a ordinary Servo then?
Thank you for the kinds words :)




I am using an Arduino UNO and a Sparkfun 6 DOF Razor IMU.  I am hoping to adapt it to control roll and pitch for a quadrotor stabilization system.  I used your post as a guide to setup the wiring and used the version 3 code to get it going.  My problem is I get about 2-3 lines of actual data and then it just scrolls jibberish.  I double checked the wiring and I have not changed anything in the code.  Could it be that I am using the http://www.sparkfun.com/products/10010 IMU with the high pass filters removed.

I would like to apologize in advance, I have a lot of RC experience and a mechanical engineering background but programming and debug has never been my forte.

All I want to do is read in the roll and pitch degrees and then convert that to a servo command to send to a brushless motor as an increase in thrust to compensate.

Thanks for any help you can provide.



It is exactly the same IMU as mine. So it should be almost plug n' play. Triple check your wires, or try resetting the high pass filter, by pulling the HP pin high (see the datasheet page 7 http://www.sparkfun.com/datasheets/Sensors/IMU/lpr530al.pdf). Not sure if it would work, as the description says that it it removed, as you said.

You do not have to apologize :) We have all been noobs once :D


Go Up