Servo control - cannot reverse
Hello,
I'm using a Standard Servo and have to questions;
1. Is there a way to center the Servo with a pulse ?
2. Using the following code (where MFwdSlow=800 and MRevSlow=700):
'move 90 East from center
FOR mv = 1 TO 200
PULSOUT MMotor,MFwdSlow
PAUSE 20
NEXT
'move 270 west
FOR mv = 1 TO 200
PULSOUT MMotor,MRevSlow
PAUSE 20
NEXT
I've tried many (and obv. not enough) pulse values mentioned in forums and manuals but the Servo continues to rotate East. Whats wrong ?
regards
I'm using a Standard Servo and have to questions;
1. Is there a way to center the Servo with a pulse ?
2. Using the following code (where MFwdSlow=800 and MRevSlow=700):
'move 90 East from center
FOR mv = 1 TO 200
PULSOUT MMotor,MFwdSlow
PAUSE 20
NEXT
'move 270 west
FOR mv = 1 TO 200
PULSOUT MMotor,MRevSlow
PAUSE 20
NEXT
I've tried many (and obv. not enough) pulse values mentioned in forums and manuals but the Servo continues to rotate East. Whats wrong ?
regards
Comments
DO
· PULSOUT 14, 750
· PAUSE 20
LOOP
Dave
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Dave Andreae
Parallax Tech Support·
Send the code to the servo that Dave Andreae posted. The use a screwdriver to adjust the balance pot on the servo until it stops rotating. It should work great after that.
I can do this w/my r/c servos - I just plug them in and make sure my trim tabs are centered but I'm not sure I know how to do this w/standard rotation servos using a BOE, or similar.
I've tried all 745, 755, etc.. and no the servo does nothing.
Nevertheless, I also can't make it reverse.
1) The servo might be a continuous motion servo despite what's marked on it (unlikely, but possible). Try pulse widths of 1ms, 1.5ms, and 2ms (PULSOUT values of 500, 750, and 1000) and see what happens.
2) The servo might be a continuous motion servo with the calibration pot way out off center. If there's no calibration pot, it has to be a standard servo.
3) The servo might be defective.
If the servo just doesn't move, all sorts of things might be wrong from a bad connection, no power, bad Stamp, etc. It sounds like this is something that can't be solved via this forum. Call Parallax Tech Support.
The goal is to output a 1.5 millisecond pulse. "PULSOUT MyPin, 750" will do that for a BS2 'plain', but other flavors need "PULSOUT MyPin, <some-other-number>" to generate a 1.5 mSec pulse.