I am not able to achieve varying speed for a particular error.
Hello All,I am trying to implement a DC motor position control application with varying speed. I tried modifying a geared motor using a 1000PPR encoder as a feedback device and PID algorithm. The motor rotates 0 - 180 degree as expected according to the serial commands. But I am not able to control the speed of the motor for each move(for instance I want to move the motor from 0 - 180 degree in one speed and 0 - 90 degree in another speed according to another command). Because the motor pwm is calculated using P, I and D parameters I am not able to achieve varying speed for a particular error. Is there any suggestion for implementing this? Which algorithm is best for this?I was able to get 1 degree precision with PID position control. Can I achieve the same efficiency in the new control method?Any help would be greatly appreciated