Go Down

Topic: Controlling continuous servo using joystick vary speed (Read 1 time) previous topic - next topic

Robin2

The OP posted this question elsewhere
Quote
To demonstrate exactly what i need to do, i just found this video on youtube while looking for something similar and that exactly what i want my servo to do

please check the link ( https://www.youtube.com/watch?v=jjAXLSxl2Vo )
In that video the person is using a continuous rotation servo.

If you map the output of analogRead() to 0 to 180 and then use servo.write() a continuous rotation servo should behave like the video.


On the other hand, if you are using a sail-winch servo with a limited amount of movement the code in the link I gave you in Reply #7 should be suitable.

...R
Two or three hours spent thinking and reading documentation solves most programming problems.

slipstick

That video shows a servo travelling for much more than 8 turns and at varying speeds. You can't do that with a sail winch servo which has only limited travel and also no control at all over the speed it moves at (though you can fudge that using Sweep-style loop techniques or the VarSpeedServo library if necessary).

But basically if that is really what is needed then the OP has the wrong servo.

Steve

Go Up