|
Re: PID Control algorithm(to control PWM Duty Cycle based on Current)
Quote:
Originally Posted by efoote868
You might want to consider using a feedback loop instead of strictly PID.
|
PID uses feedback
Quote:
|
Think of it this way - when the error drops to zero, you don't want to set your Duty Cycle to zero, you want to keep it exactly the same.
|
That's what the "I" in P ID is for.
|