Self Balancing Robot Algorithm?

Discussion in 'Embedded Systems and Microcontrollers' started by crazyengineer, Aug 20, 2011.

  1. crazyengineer

    Thread Starter Member

    Dec 29, 2010
    156
    2
    Does anyone know the trick in programming a self balancing robot? The only thing I could find in my search is other people's self balancing robot projects.
     
  2. ErnieM

    AAC Fanatic!

    Apr 24, 2011
    7,392
    1,606
    AFAIK Microchip has a 2 dimension self-balancing demo, 2 dimensions as it just spins in place to balance the arm vertical. I don't have a link so you'll have to search them yourself.
     
  3. kavli

    New Member

    Aug 1, 2011
    23
    2
    The keyword you probably are looking for is Fuzzy Logic.

    -- K
     
  4. hgmjr

    Moderator

    Jan 28, 2005
    9,030
    214
    One approach would be to use PID algorithm as a means of controlling the robots balance.

    The most primitive mechanism I have seen used to determine the robots vertical orientation was an ultrasonic distance measuring scheme.

    I would be inclined to use a tilt sensor with an analog output.

    There are quite a few examples of balancing robots on youtube. You can get some ideas there.

    hgmjr
     
  5. Markd77

    Senior Member

    Sep 7, 2009
    2,803
    594
    Another search term which might help is "inverted pendulum".
     
  6. Kermit2

    AAC Fanatic!

    Feb 5, 2010
    3,792
    948
  7. atferrari

    AAC Fanatic!

    Jan 6, 2004
    2,648
    764
    I recall reading an article appearing in Elektor magazine (in Spanish or maybe English language).

    The whole theory behind the solution was clearly explained.

    That was about two years ago IIRC.
     
  8. ErnieM

    AAC Fanatic!

    Apr 24, 2011
    7,392
    1,606
  9. atferrari

    AAC Fanatic!

    Jan 6, 2004
    2,648
    764
    Now, I recall another more recent issue, also from Elektor, where there is a design that involves kind of a ruler with a small metallic ball always kept in balance. In the basics it is the same problem. It was properly explained as well.
     
    Last edited: Aug 21, 2011
  10. RRITESH KAKKAR

    Senior Member

    Jun 29, 2010
    2,831
    89
Loading...