More help with servos
Hi I need some more help with servos. I got the ping servo centered and it works but I'd like to understand how it works. I read the BOEBOT manual (Roboticsv2_2.pdf) and from what I understand a pulsout XX, 750 , pause 20 should center the servo, ok it sort of does. I tried a pulsout XX, 650 , pause 20 and the motor turns a bit and then stops. If I run the program again the servo doesn't turn again. If I do a pulsout XX, 850 , pause 20 it turns the other way and if I go back to the 650 it turns a bit again. I have the servo attached to the servo connector at the pin 13 spot. I cut and pasted the code, here it is:
' Robotics with the Boe-Bot – ServoP13Clockwise.bs2
' Run the servo connected to P13 at full speed clockwise.
' {$STAMP BS2}
' {$PBASIC 2.5}
DEBUG "Program Running!"
DO
PULSOUT 13, 650
PAUSE 20
LOOP
It won't turn in a circle. I've tried a fresh 9 volt energizer and then a wall plug 8 volt dc converter, I've tried using the jumper at vdd and vin. I've tried it at another pin. Any ideas what I am doing wrong?
' Robotics with the Boe-Bot – ServoP13Clockwise.bs2
' Run the servo connected to P13 at full speed clockwise.
' {$STAMP BS2}
' {$PBASIC 2.5}
DEBUG "Program Running!"
DO
PULSOUT 13, 650
PAUSE 20
LOOP
It won't turn in a circle. I've tried a fresh 9 volt energizer and then a wall plug 8 volt dc converter, I've tried using the jumper at vdd and vin. I've tried it at another pin. Any ideas what I am doing wrong?
Comments
The "Robotics with the BoeBot" tutorial has a discussion of servo motors and how to control them with Stamps.