Quote:
Originally Posted by baronep
But the problem is that I want the motor to rotate seamlessly through the 5v to 0v. For instance, if it overshoots a setpoint at 4.9 to .1, i don't want it to rotate the rest of the way around, but back up past 5v to 4.9
|
The canon can turn only so fast. Put rate checks in your code. That will tell you whether .1 actually means .1 or 5.1
BTW, how much of a deadband is there ? You may need to swap out your sensor.