Shop OBEX P1 Docs P2 Docs Learn Events
Servo Problem — Parallax Forums

Servo Problem

AlanCFAlanCF Posts: 6
edited 2008-05-12 14:46 in Robotics
I am having·a problem with a continous rotation servo on the Boe-Bot, it has worked perfectally normally in the past, but now it seems to only go one direction, if I instruct it to turn left it turns left, if I instruct it to turn right, it turns left. I connected it to both servo ports on the Board Of Education and it on both it does the same thing.

Thanks,
AlanCF

Comments

  • FranklinFranklin Posts: 4,747
    edited 2008-05-11 23:08
    Go back to the manual and recalibrate the servo to see if that helps.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - Stephen
  • ercoerco Posts: 20,256
    edited 2008-05-12 01:58
    Post your code (with comments for left & right) for help.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    ·"If you build it, they will come."
  • AlanCFAlanCF Posts: 6
    edited 2008-05-12 06:54
    I tried recalibrating the servo, it didn't work.

    Here's my code:

    ' {$STAMP BS2}
    ' {$PBASIC 2.5}

    DO
    PULSOUT 13,850 'I think pin 13 is left, i've been reversing the pins for debugging
    PULSOUT 12,650
    PAUSE 20
    LOOP
  • Mike GreenMike Green Posts: 23,101
    edited 2008-05-12 14:46
    The code you've posted will make one servo turn in one direction and the other turn in the other direction. Because of the way the servos are mounted, this will result in either forward or backward movement of the BoeBot.

    You need to trace your connections and figure out which servo is connected to which I/O pins, which one moves in which direction, etc.

    You need to provide more information in your messages. Try commenting out one of the PULSOUT statements and see what happens.
Sign In or Register to comment.