Proportional-Integral Control

In trying to implement a battery charge algorithm I needed to use some form of control to maintain a voltage set-point. To do this with a good step-change response and stability is harder than you might think. I decided to implement a relatively simple Proportional and Integral controller to perform this task, as I have … more