Continuous Rotation Servo Question
I just bought a couple of continuous rotation servos (Parallax #900-00008) and hooked up the red wire to 6V, the black wire to ground and the white wire to p15 of my basic stamp 2.· I programmed the basic stamp 2 to output a 1.5 ms pulse followed by a 20ms delay as in the code given in the servo info sheet
Servo·· pin 15
Start:
·· PULSOUT Servo, 750
·· PAUSE· 20
GOTO Start
Now the info sheet says I should adjust the potentiometer until the servo stops rotating.· Too much adjustment one way should yield a counter-clockwise motion, too much the other way yields a clockwise motion.· I should then be able to use PULSOUT from 500 to 1000 to get the servo to rotate in either direction.
However, the servo always rotates clockwise no matter how I adjust the potentiometer.
Could someone please tell me how·the continous rotation servos are supposed to behave?
Roger Ray
Servo·· pin 15
Start:
·· PULSOUT Servo, 750
·· PAUSE· 20
GOTO Start
Now the info sheet says I should adjust the potentiometer until the servo stops rotating.· Too much adjustment one way should yield a counter-clockwise motion, too much the other way yields a clockwise motion.· I should then be able to use PULSOUT from 500 to 1000 to get the servo to rotate in either direction.
However, the servo always rotates clockwise no matter how I adjust the potentiometer.
Could someone please tell me how·the continous rotation servos are supposed to behave?
Roger Ray
Comments
We move the potentiometer very slowly to find point where the wheel will slow down and then bump the screw driver little by little until it stops turning. We find that we have to go back and bump the potentiometer back to a stop after having used the servos for a while. A multi-turn potentiometer, or two resistors on each end of the potentiometer would improve this design some.
You may have another problem however. Our servos will rotate both clockwise and counter-clockwise depending on which side of the stop position we are on.
Does anyone know what is the extent of the potentiomer? One turn, two? Does it wrap around?
The pot has a 1/2·turn range of motion.
Try connecting the white signal line to P12, then copy and paste this code directly into the editor:
·
Also, try the other servo, and see if there is any difference.
·
Post Edited (Andy Lindsay (Parallax)) : 5/22/2005 8:40:41 PM GMT
·· It's also possible if you're using a different version of the BASIC Stamp, for example a BS2sx, that the timing parameters you're using will result in the servo always turning.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
' {$STAMP BS2}
' {$PBASIC 2.5}
DO
PULSOUT 12, 750
PAUSE 20
LOOP
...code with pin 12 as the control, I still get clockwise turning only. I am turning the pot and can get the rotation to slow down a bit. If I continue to adjust the pot, the rotation speeds up again. Using other timing values does not change the servo behavior.
There seems to be only two speeds: full and half, with no gradation in between as the pot is adjusted. This behavior occurs with both of the servos I have.
Any ideas?
In short, are the grounds for your Stamp and the ground for your servo power supply connected? If not, you can see some "interesting" behavior...
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Truly Understand the Fundamentals and the Path will be so much easier...