Go Down

Topic: Self Balancing Robot (Read 44388 times) previous topic - next topic


Great work, and exellent thread!!

Would it be possible for you to pot more pictures of the bot?
Im keen to see how you have placed the gyro/acc combo..

In your code, output from the accelerometer is in this orientation?

"X"  <-----------> "X"
               |                      FRONT

Which pins on the arduino is connected to respectably X and Y ?

Thank you for publishing and documenting your work!

Keep posting pics!


First of all, great work. It's a thrill when things work.

I wonder. The "dt" in your sourcecode(where i persume your dt=delta time which is basically the sampling time, or deravative time if you will) is expressed :

dt = ((float)delta) / 1000.0;

and you have a "if":

if( delta >= mydt) { // sample every dt ms -> 1000/dt hz.

which I cant seem to understand why you have implemented.
I'm not sure I understand why you have done that at all.
It seems you have chosen a deltatime insted of having a deltatime which size depends on the cycletime of the program.

if you could explain this, it would be great. if not, I'm just gonna have to "learn" the kalman filter from scratch. again :D


Did you ever go the AX-12 route ?

Go Up