Controlling servo with potentiometer
I want to control servo movement with potentiometer. I'm using ADC and getting the pot value. But i don't know how to control the pwm with this value. What should i use?
Thanks in advance.
I want to control servo movement with potentiometer. I'm using ADC and getting the pot value. But i don't know how to control the pwm with this value. What should i use?
Thanks in advance.
I don't know, I haven't seen your code. Check the pulse width signal with a scope.
Scaled properly, doing the math in the right order there is no reason one shouldn't be able to have linear motion over the whole range of the servo.
Figure out where the exact physical limits of the servo are with respect to the pulse width (1-2ms) with 1.5ms dead center is a notional range for them, but it might be tighter.
Either look at the technical documentation for the specific servo, or use the scope to determine the upper/lower bounds of motion, and then figure that into your scaling equation so the full scale on the pot relates to fully physical range of the servo.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.