basic servo help
drinkmaster
Posts: 1
Hello,
I am trying to get a servo to work with a basic stamp. I seem to be having trouble.... I have tried 3 different servos. Two Parallex CR servo and one HITEC hs-625mg not CR servo. No matter what I do i can't seem to get anything to work. As soon as I load the code to the basic stamp the HITECH will flutter, or the parallex will just rotate and won't stop. It doesn't seem to matter what code I use or even what pin i attach the servo to, but i have attached what I am using below. To power the servos I am using a 6v power supply rated at 300ma. Not the same supply has basic stamp, Could someone please help, it seems like a simple task.
I am trying to get a servo to work with a basic stamp. I seem to be having trouble.... I have tried 3 different servos. Two Parallex CR servo and one HITEC hs-625mg not CR servo. No matter what I do i can't seem to get anything to work. As soon as I load the code to the basic stamp the HITECH will flutter, or the parallex will just rotate and won't stop. It doesn't seem to matter what code I use or even what pin i attach the servo to, but i have attached what I am using below. To power the servos I am using a 6v power supply rated at 300ma. Not the same supply has basic stamp, Could someone please help, it seems like a simple task.
Servo_pin CON 0 start: PULSOUT Servo_pin, 750 pause 20 GOTO start
Comments
Which Stamp are you using?
Are you also using a BoE (or what)?
Do you have the negative lead of your 6V supply connected to Stamp Vss?
A continuous rotation servo will keep rotating and a standard servo will keep a position, given the same pulse width with each refresh (cycle).
Amanda
start:
for b0=1 to 255
PULSOUT 0, 650
pause 20
next
for b0=1 to 255
PULSOUT 0, 850
pause 20
next
GOTO start