Shop OBEX P1 Docs P2 Docs Learn Events
I need help programming my robot. — Parallax Forums

I need help programming my robot.

13652131365213 Posts: 4
edited 2013-12-31 08:37 in Robotics
I am trying to program my Boe-bot robot the USB version. I am using the Board of Education board. I am trying to get my robot to go through a 36 inch diagonal line from beginning to end. Can you please help me program my robot to do that?

I also want to make sure that I am using the correct wires and tools on my breadboard?

Comments

  • NWCCTVNWCCTV Posts: 3,629
    edited 2013-12-30 10:44
    School project? Pictures help alot as well as schematics and sample code of what you have tried so far. No one here is going to write the code for you. You need to do the leg work and when you run in to issues, post what you have that works and does not work. Do you have the manual that came with the Boe Bot?
  • 13652131365213 Posts: 4
    edited 2013-12-31 07:06
    I just need help on how to write the code to program the robot to go straight for 20 seconds that's it. I know how to use debug and to run it. I am just not able to make a code for the robot to go straight.
  • Mike GreenMike Green Posts: 23,101
    edited 2013-12-31 07:44
    Servo motors, like those on the BoeBot, need a control pulse about 50 times a second. The various BoeBot Manuals show how to do this and show how to program the BoeBot so that one wheel motor goes clockwise and the other goes counterclockwise so the robot goes roughly straight. If your program does this for 50 control pulses, that's approximately one second. If that's repeated 20 times, you get 20 seconds and so on. You'll have to figure out from "What's a Microcontroller?", the Stamp Manual, and the Robotics Manual just how to do this. There are download links on those web pages.
  • 13652131365213 Posts: 4
    edited 2013-12-31 08:37
    Thanks so much! That was very helpful.
Sign In or Register to comment.