How to program continuous motion servo motor to stop at certain angles

I bought Arduino board and a continuous motion servo motor so that I can rotate it 360 degrees. However, bcos it is continuous movement motor, the basic servo programming command of
servo.write(pos) doesn't work with angles. Rather it assumes it to be speed.
I want the arm to go in 360 degrees but I want it to stop at every certain angles. How do I program it.

Any suggestions guys and girls.

Thanks,
Gurpreet

I want the arm to go in 360 degrees but I want it to stop at every certain angles. How do I program it.

Generally speaking, you can't. You might consider getting a sail winch servo which can rotate several turns.

HI, just a suggestion, you use a normal servo, 180deg, but gear its output by two, to produce a 360Deg output.
So if you tell servo to go to 90 Deg the output will got 180 Deg. Tell 180 Deg the output will go 360 Deg.

The only other way is to add an absolute encoder to the continuous servo output to show position, and feed it back to the arduino to control the servo.

Tom.... :slight_smile:

If you just want the servo to stop at a few specific places you could have some sort of simple detector for when the position is reached. I've done this on a large model train turntable. I have pieces of metal sticking up at each track position on the table and on the non-moving part there is a metal arm (lowered by another regular servo). When the metal touches the arm it makes a circuit and the Arduino knows to stop the motion.

...R