Shop OBEX P1 Docs P2 Docs Learn Events
Balancing Bot - Page 3 — Parallax Forums

Balancing Bot

13

Comments

  • WhitWhit Posts: 4,191
    edited 2011-01-03 15:29
    @erco - thanks for posting the BEAM balancing bot video. Amazing.
  • ercoerco Posts: 20,256
    edited 2011-01-03 19:49
    Interesting that the BEAM guy boldly declares that Integration (the I in PID) is not necessary for a balancing bot. From what I'm learning, Proportional control gives the biggest contribution to the balancing function, Derivative control mostly adds damping, and I believe that Integration controls overall drift from the starting position. So without Integration, the bot can balance, but will make no effort to return to its starting position.
  • ercoerco Posts: 20,256
    edited 2011-01-03 22:50
    An older but still interesting thread from the Prop Forum on balancing bots, PID, and Kalman filters at http://forums.parallax.com/showthread.php?99830
  • ercoerco Posts: 20,256
    edited 2011-01-07 09:27
    Balancing on TREADS: WOW! http://www.youtube.com/watch?v=dVNMBKx9bXE&NR=1

    It even humps the guy's leg near the end!
  • WhitWhit Posts: 4,191
    edited 2011-01-07 09:33
    Wonder if it drinks out of the toilet too?
  • ercoerco Posts: 20,256
    edited 2011-01-21 18:39
  • ercoerco Posts: 20,256
    edited 2011-03-09 00:54
    Check this guy's Segway-style unicycle at http://www.youtube.com/watch?v=UXim_GPW0xw&NR=1&feature=fvwp and the turning mechanism shown at 2:00 minutes.

    Ken & Humanoido may find this interesting. Ramps, offroad, a neat vehicle that looks fun.

    http://www.enicycle.com/
  • HumanoidoHumanoido Posts: 5,770
    edited 2011-03-09 03:31
    erco wrote: »
    Check this guy's Segway-style unicycle at http://www.youtube.com/watch?v=UXim_GPW0xw&NR=1&feature=fvwp and the turning mechanism shown at 2:00 minutes.

    Ken & Humanoido may find this interesting. Ramps, offroad, a neat vehicle that looks fun.

    http://www.enicycle.com/
    Thanks Erco, your robotic ferreting skills are commendable. The Enicycle has one balancing wheel. That might be a great challenge for off-road endeavors but certainly exhilarating!
  • ercoerco Posts: 20,256
    edited 2011-03-22 09:31
    This Bot's in the new (May/June 2011) issue of ROBOT mag, page 52. They bumped my pic for a much cuter face!
  • ercoerco Posts: 20,256
    edited 2011-04-12 03:03
    I wrote my first PID routine for the balancer and got it working with my homemade remote. Works quite well! I still have to improve my forward/reverse drive dynamics, but I have stationary balance & turns down pat now: http://www.youtube.com/watch?v=F7_JBBgsWrU
  • Martin_HMartin_H Posts: 4,051
    edited 2011-04-12 06:12
    Cool video and thanks for the update. I have a few questions.

    It looks like the batteries are at the top of the vertical? I'm guessing that's to increase the rotational inertia, so if an inverted pendulum is like a sailboat this increases stability. But it also seems like it would increase the required righting moment from your motors. How did you decide on the height?

    It's interesting that the robot tends to creep counter clockwise. Is this because of motor differences and your PID algorithm is linear?
  • ercoerco Posts: 20,256
    edited 2011-04-12 08:37
    Yessir, batteries are on top to shift the CG higher. This is a pretty minimal bot, so the batteries represent a fair percentage of the weight. The high CG slows things down and makes balancing easier. Pretty standard fare for these bots.

    I'm using quarter scale servos modified for CR. The good news: easy to use, built-in speed controllers. The bad news: 60 RPM max, and their center zero-speed position always creeps a bit, depending on sunspot activity and my checking account balance. :)

    I can easily redefine the zero position in software. Works great for a while, then it starts creeping the other way . That's how I know someone cashed one of my checks...
  • ercoerco Posts: 20,256
    edited 2011-04-12 08:45
    Talk about gyro-stabilized! This guy's NXT Legobot spools up 4 lead-filled tires as a flywheel stabilizer, PLUS it has an optical active feedback balancing system: http://www.youtube.com/watch?v=KGqNeszVcdI
  • Martin_HMartin_H Posts: 4,051
    edited 2011-04-12 09:15
    The NXT servo motors have quadrature encoders built-in, I'll bet that's how bots like Legway keep rotational errors at bay. They can likely also zero out positional errors as well. We just can't get away from wheel encoders.

    The whirling dervish is riot, although inelegant. I've seen robot unicycles do that for side to side balance, but never a two wheeler.
  • ercoerco Posts: 20,256
    edited 2011-04-12 20:31
  • WhitWhit Posts: 4,191
    edited 2011-04-12 20:37
    Great video erco! Cool project...
  • ercoerco Posts: 20,256
    edited 2011-04-13 14:34
    Um, I might need to upgrade to a Propeller to achieve THIS with my robo-balancer:
    http://sports.yahoo.com/olympics/blog/fourth_place_medal/post/Leszek-Blanik-super-tumbler-and-internet-sensat?urn=oly-wp87
  • WhitWhit Posts: 4,191
    edited 2011-04-13 14:54
    Better wait for the Prop 2.
  • ercoerco Posts: 20,256
    edited 2011-04-15 13:37
    I very much like Richard Vannoy's concept here: http://www.richardvannoy.info/inverted-pendulum.php

    A big cardboard standee on a balance bot would have lots of mass and air friction to act as a damper. Should slow things down and simplify things considerably. His students didn't finish their project, so I may have to jump in and try it. I have the perfect standee already. Stay tuned. I have to do SOMETHING for robotics week. Nothing else going on in LA!
  • Martin_HMartin_H Posts: 4,051
    edited 2011-04-15 18:08
    Use a butler cutout and couple it with the wine glass trick above! You become instant lord of the manner.
  • ercoerco Posts: 20,256
    edited 2011-04-15 18:11
    Phineas T. Ratchet, thank you very much!
  • ercoerco Posts: 20,256
    edited 2011-04-16 09:47
    My way of celebrating National Robotics Week in Torrance California!

    http://www.youtube.com/watch?v=Lr0MkFb3da4
  • Martin_HMartin_H Posts: 4,051
    edited 2011-04-16 18:59
    That's pretty cool. It's much shakier than before. Do you think it is because the lack of rigidity in the board, or does the PID algorithm need to be re-tuned?
  • ercoerco Posts: 20,256
    edited 2011-04-16 21:05
    Oh, it's definitely resonance and board flex. You can clearly see the standing wave node when you view the standee on edge.

    Actually, I love that serendipitous flex; it's giving me all kinds of ideas for free animation from the sympathetic vibrations.
  • WhitWhit Posts: 4,191
    edited 2011-04-17 19:52
    Phineas T. Ratchet is looking very good indeed! Sorry I missed this for a bit. Great job erco. Glad to know that Torrence is pulling its weight for National Robotics Week. You and P.J. came through in the nick of time.
  • ercoerco Posts: 20,256
    edited 2011-05-16 13:07
    Part 2 of my construction article in the new ROBOT magazine, FYI. If nothing else, a cute pic of daughter Lindsey getting a milk bottle delivered ...
  • ercoerco Posts: 20,256
    edited 2011-06-06 01:37
    Late night working on part 3 of the ROBOT magazine article on my Balance Bot. Finally got the driving software working pretty well; it's harder than it should be! http://www.youtube.com/watch?v=j-Ubi93VzHo
  • Ron CzapalaRon Czapala Posts: 2,418
    edited 2011-06-06 05:26
    erco,
    It is looking great! Are you going to try slight inclines?
  • Martin_HMartin_H Posts: 4,051
    edited 2011-06-06 06:41
    Looking good. I've liked following this project and all the intermediate steps. When you only see the final stage of a robot, you can fail to appreciate all the work that went into getting there.
  • ercoerco Posts: 20,256
    edited 2011-06-06 08:17
    @Ron: No sir, this one-sensor robot would have a tough time on an incline, unless you program in the exact angle and go perfectly straight up the hill. I'll leave that to the gyro/accelerometer Bots with Kalman filters that cost 20X what this sensor did!

    I just want to get this bot driving smoothly on the flats. I'm a minimalist; I like to push a BS2 and this single sensor as far as I can.

    A follow-up project in the back of mind is to modify a Scribbler (1) to balance. Mount the wheels & motors on stilts below the main platform and get it driveable just like this platform. That should breathe some new life into old Blue!
Sign In or Register to comment.