Limited Servo Control
I am trying to implement PID on a prop BoeBot, I have standard parallax continuous rotation servo motors and Neubotics WW01 encoders. I am trying to characterize the PW control (Using y=mX+B).
To do this I wrote a routine to step through the PW +/- 40000 Clock ticks and record the encoder reading at each step. What I found was that on the high end the control range was only about 12000 clocks before reaching max speed and it was very non linear below 5000 clocks. Is this normal for these servos or do I have a problem here?
To do this I wrote a routine to step through the PW +/- 40000 Clock ticks and record the encoder reading at each step. What I found was that on the high end the control range was only about 12000 clocks before reaching max speed and it was very non linear below 5000 clocks. Is this normal for these servos or do I have a problem here?
Comments
Regardless of issues with your code, it's highly non-linear, and your experience sounds about right. The speed control range on a modified servo is only a a hundred or so microseconds +/- center. Anything beyond that up or down has little effect.
-- Gordon
I've attached the code I used to make my measurements in case anyone may find it useful.