Shop OBEX P1 Docs P2 Docs Learn Events
Programming two servos — Parallax Forums

Programming two servos

fleurdelis158fleurdelis158 Posts: 5
edited 2006-05-08 14:16 in Learn with BlocklyProp
Greetings..

I'm new to this programming stuff of Basic Stamp. I need some help in programming two servos to make my robot move forward (or backward). I'm using BS2p24 microcontroller and Board of Education Rev C. I also use the Parallax Servo Controller (#28023). I've tried to program it but all i can do is making the servo rotating in the same direction. I know that in order to make the robot move forward (or backward), one servo must rotate clockwise and the other must rotate counterclockwise, but·i really don't know how.

Comments

  • Jon WilliamsJon Williams Posts: 6,491
    edited 2006-05-08 14:16
    Have you read our Robotics text? That would answer a lot of questions for you. One thing you'll have to do is adjust the code for the BS2p -- it uses a higher resolution with the PULSOUT command and requires simple program changes.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
Sign In or Register to comment.