From the lesson Arduino and Servos
Fri, 05 Dec 2008 18:20:10 -0000
thank’s for the answer… in fact i understood my mistake while writing my message… but anyway it’s good to hear from you!
best from montreal!
thank’s for the answer… in fact i understood my mistake while writing my message… but anyway it’s good to hear from you!
best from montreal!
i’ve tried your sketche but all i get is a continous motor run… even if i change the myAngle to whenever Angle, it just have an impact of the speed, not the angle to where to stop my servo..
maybe i’ve missed something (i’ve adapted your sketche for 1 servo (Parallax continuous rotation servo)...
cheers
j.
Post Comments
robodude666 said – Tue, 25 Nov 2008 06:17:50 -0000
A continuous rotation servo does not have a potentiometer or stop inside of it, so the servo doesn’t “know” what angle or position it is on. All you can do with continuous rotation servos is control speed by PWMing the power, or control direction. If you need continous rotation and angle detection, then you’ll need to get a regular DC motor and an encoder. Try to get a motor with a built in encoder, or encoder attachment if angle is very important in your project. There are optical encoders which are cheaper, but they require a colorful disc on the wheel which adds errors.