Continuous Rotation Servo
djp5288
Posts: 4
Hello,
I am building a light Gel changer (to change the color of a flash bulb) with two continuous rotation servos (for two lights) and the basic stamp 2. I need the servos to rotate 60 degrees exactly every time. forward and back if possible (only forward can work too). Can anyone help me with how long my pulsout should be and how many loops i should have?
this is my pertinent code right now
FOWARD:
FOR rotation = 0 TO 15 'designates how long the servo rotates
GOSUB CLOCKWISE
NEXT
PAUSE 600
CLOCKWISE:
PULSOUT 12, 731
PULSOUT 13, 731
PAUSE 20
RETURN
any and all help would be greatly appreciated.
Thanks!
I am building a light Gel changer (to change the color of a flash bulb) with two continuous rotation servos (for two lights) and the basic stamp 2. I need the servos to rotate 60 degrees exactly every time. forward and back if possible (only forward can work too). Can anyone help me with how long my pulsout should be and how many loops i should have?
this is my pertinent code right now
FOWARD:
FOR rotation = 0 TO 15 'designates how long the servo rotates
GOSUB CLOCKWISE
NEXT
PAUSE 600
CLOCKWISE:
PULSOUT 12, 731
PULSOUT 13, 731
PAUSE 20
RETURN
any and all help would be greatly appreciated.
Thanks!
Comments
Get some regular servos which have position feedback, they can go at least +/- 60 degrees, probably closer to +/-90.
Too bad you're in such a rush.
Oh well.
You could also use a nylon gear on the servo shaft and a matching gear on the gel wheel shaft. With a 2:1 circumference ratio, you could also get 360 degrees of motion on the gel wheel with 180 degrees of motion of the servo.
You could attach a string to the end of a standard servo's horn, wrap the string around the gel shaft a few times then tie it to an elastic (rubber band) and anchor the rubber band.
The rubber band pulls the wheel one direction, but only so far as the servo allows. The shaft diameter should be half the length of the servo horn so that 90 degrees of servo travel equates to 360 degrees of gel wheel travel. If there is a problem with the string slipping on the shaft you could use two separate strings, each one fixed to the shaft but one going to the servo and the other to the elastic.
Rich H
I made this demo with a stepper motor (half-stepping) and a SpinStamp.
I could've used a BS2, but I'm trying to stay in SPIN Mode.
I didn't do 6 positions, but that much is academic. As you can see, positions are definite, repeatable, and solid as a rock.
Well, it's Tuesday morning. I completed this little exercise with 6position/60deg, anyway.
Just a little challenge.
I wrapped it into my Stepper Motoring with the Propeller subject. If anyone is interested, see #9 (number none, number nine,...) here.