Pages: 1 ... 3 4 [5]   Go Down
Author Topic: Self Balancing Robot  (Read 25743 times)
0 Members and 1 Guest are viewing this topic.
Northern Norway
Offline Offline
Jr. Member
**
Karma: 0
Posts: 58
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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?

               UP
 "X"  <-----------> "X"
               "Y"
                ^
                |                      FRONT
                |
                v
               "Y"
            DOWN

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


Thank you for publishing and documenting your work!

Keep posting pics!
Logged

Spending too much time on this..

0
Offline Offline
Newbie
*
Karma: 0
Posts: 19
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 smiley-grin

Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 9
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Did you ever go the AX-12 route ?
Logged

Pages: 1 ... 3 4 [5]   Go Up
Jump to: