03-20-2014 04:10 PM
Dear member
I want to built a PID position control
i read the DC position through potentiometer with -128 to 127 [full 360 degree]
so the input to the pid is voltage range between -128 to 127
the input of dc motor is PWM and the motor rotate direction
so the PID output will be PWM
what about direction bit ??? What will be it circuit
also how to control the speed in same system ?? is thire another PID??
best regards
Solved! Go to Solution.
03-20-2014 04:23 PM - edited 03-20-2014 04:23 PM
03-20-2014 04:29 PM
@GerdW wrote:
Hi mangood,
you can have your PID to output a value from -100 to +100 (like % as unit). Then use the sign as direction bit and the value as speed…
thank you
what about control the position and the speed at same time ???
03-20-2014 06:38 PM
@mangood wrote:
what about control the position and the speed at same time ???
That's a complicated problem. A quick internet search turned up this paper which describes some possible approaches:
03-21-2014 02:37 AM