I am currently building a boost converter with PID control to control the output based on the discharge. The output will be fed into a DC/AC converter which, ideally, will power different loads. As of right now, I am just testing the device with resistive loads. Both the DC/DC and DC/AC converters are being controlled by the same microcontroller (PSoC 5LP). The feedback system consists of two resistors in series and I am reading the voltage into the ADC.
My problem is: I am managing to control the output based on battery discharge, however, the change of load either makes the system go unstable, or just not compensate. Should I be using a different control method to account for both the load changes and the voltage discharge?