Shop OBEX P1 Docs P2 Docs Learn Events
Robot navigate around a circle and triangle — Parallax Forums

Robot navigate around a circle and triangle

Timmyg123Timmyg123 Posts: 2
edited 2009-01-26 16:49 in Robotics
How do I precisely program my robot to navigate around a circle (diameter is 1m) and triangle? I know I can get the circumference of the circle and that one servo has to move faster than the other but I don't know by how much. Thanks for the help.

Comments

  • GWJaxGWJax Posts: 267
    edited 2009-01-25 18:26
    your going to have to play around with the settings for the speed of your servos, Re-read chapter 4 in RoboticsV2.2.PDF. This will get you started on how to navigate your Boe. Each servo and Boe will travel at different speeds and only you can program this for your bot. Like I said study chapter 4 and do all the lessons then you'll be be able to get your bot to travel in a complete circle.

    Good luck

    Jax

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    If a robot has a screw then it must be romoved and hacked into..
  • Timmyg123Timmyg123 Posts: 2
    edited 2009-01-25 19:30
    Ok thanks. Also, in a for next loop, is there a maximum value I can assign to counter (counter = 1 to ?).
  • GWJaxGWJax Posts: 267
    edited 2009-01-25 19:40
    YES, these are the numbers you can use when you declare your Counter:

    Counter VAR BIT ' Value can be 0 or 1
    Counter VAR NIB ' Value can be 0 to 15
    Counter VAR BYTE ' Value can be 0 to 255
    Counter VAR WORD ' Value can be 0 to 65535

    Jax

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    If a robot has a screw then it must be romoved and hacked into..
  • ercoerco Posts: 20,256
    edited 2009-01-26 16:49
    Navigating accurately around a circle or triangle and ending up where you started may prove problematic with a BoeBot. Without wheel encoders, you're dependant on consistent servo motor speeds and LOTS of testing. Battery voltage will vary from test to test, so you may want to use rechargeable batteries and keep them on trickle charge between tests. That will help minimize that variable, at least. Your servos may operate more consistently after they warm up a bit. And make either a jig or excellent marks on the floor to establish your robot's starting position and alignment. Good luck, let us know how you make out.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    ·"If you build it, they will come."
Sign In or Register to comment.