Hi,
I have written a PID routine (in C) to control current in a BLDC motor. At first i would just like to implement P control.
What i don't understand, is that if the error is negative (ie. Iactual
the duty cycle of the PWM can only be between 0 and 100% how do you actually reduce the current in the motor through the PWM? Surely you cannot take the absoulte value of the PID result and apply it on the PWM?? Because then wouldn't that also be the same thing as saying increase the current?
Im really confused on this issue, and if anyone could help you'd be absolute lifesavers!! (This is for a Thesis you see...).
Thanks so much in advance, Jess