This is a quick attempt to control the positioning of a continuous rotation servo with just a potentiometer. With the first code I check the exact middle point (where the servo stops, 1500 theoretically); in the second one I take control of the servo.
DISCLAIMER: Because of the big inaccuracy of these motors, you can't express rotation in degrees and there is no angle feedback; so the positioning will be always very approximate. Any improvement or suggestions would be greatly appreciated!
Code:
github.com/sandrolab/continuous-servo-pot-control
Basic wiring:
arduino.cc/en/Tutorial/Knob
I also recommend this library:
github.com/akupila/ArduinoContinuousServo
Servo I used:
PARALLAX STD PM BB HT HS
Coffee?
paypal.me/sandrolabbate
#arduinotutorial #servomotor #potentiometer
![](https://i.ytimg.com/vi/qKCKjXpQUgU/maxresdefault.jpg)