Shop OBEX P1 Docs P2 Docs Learn Events
Newbie - Problem making square with Boe-Bot — Parallax Forums

Newbie - Problem making square with Boe-Bot

omeygaomeyga Posts: 1
edited 2008-03-02 00:59 in Robotics
I'm a newbie trying to understand the workings of all this and one small thing has me stumped: I can't understand why my boe bot's left turns are overshooting where they should go. I'll explain the best I can:

If I make the bot go L+R+R it will go left past 90 (about 120ish degrees) degrees, then back to where it started (so roughly two 120 degree movements - that i follow), but the next right turn will be at a perfect 90 degrees. . . How is this possible? If the right turn from static is the same pulses as the right to recover from the left turn. Then shouldn't the first right turn bring it back short of the point it started at before the left turn?

The problems started when I tried to make a square. It's all over the place. I have tested the bot and it drives a near perfect straight line. I just can't figure out why the left turns are wider than the right. Yet when I go L-R-then right again, the second right is at 90 degrees when the previous turns were at say 120 degrees.

Sorry if i sound like a total idiot but I'm new to all this and it has me stumped. sad.gif

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2008-02-27 17:54
    I can't tell from the information you've given. You'd need to post your program.

    In general, servo motors are not ideal. There's variation from servo to servo in terms of their speed for a given control pulse width. There also may be something about your program that is the cause of this behavior. Without some kind of position feedback, it's just not reliable enough to rely on servo motors for "dead reckoning", even over relatively short distances. That's why there are compasses and wheel position encoders for the BoeBot ... to provide position feedback for direction and distance travelled. Even with the wheel encoders, there can be slippage of the wheel on the floor.
  • quickster47quickster47 Posts: 35
    edited 2008-03-02 00:59
    If you really want to get that precise with your movements you might want to pick up a Boe-Bot digital encoder kit from Parallax. They work great and used properly can give you very good and repeatable movements.

    http://www.parallax.com/Store/Microcontrollers/BASICStampModules/tabid/134/txtSearch/encoder/List/1/ProductID/80/Default.aspx?SortField=ProductName,ProductName

    Carl
Sign In or Register to comment.