The first step was verifying that the module simulation itself worked, which was proved by leaving out all control logic, setting initial conditions, and fixed duty cycles and seeing if the outputs settled to the expected values. Buck-boost/flyback controller which takes a setpoint, current conditions, and produces a duty factor to reach the target with minimal oscillation.State controller, which determines which state the module is in, whether it should be charging or discharging the battery due to a surplus or deficit of power coming from the photo-voltaic, as well as determining the setpoint for the buck-boost/flyback controllers.
While this is a tough assumption to make for a single battery, for a large bank of batteries in parallel, which the current in or out would be distributed over, it is a reasonable assumption. This paper proposes a flyback converter with a new noncomplementary active clamp control method. The single phase converter without the active clamp circuit is activated by the interleaved flyback inverter using the phase control method and the active clamp. The battery is also assumed to be ideal, in that it can sink any amount of current from the charging node without changing voltage, and it can produce any amount of current for the flyback converter on the output. MATLAB SIMULINK Model for Flyback Inverter with Active Clamp Technique. Then, using the flow of currents and energy conservation laws, it is possible to track the voltages of the input and outputs, assuming ideal diodes, capacitors, inductors, and switches. Using the equations for calculating the change in current through the buck/boost inductor over a cycle, it is possible to use the forward Euler method to track the current through the three branches per cycle. In order to be able to quickly simulate the entire system and at a scale that could capture startup conditions as well as the desired output signal, the MATLAB simulation was designed to only simulate the cycle to cycle variations in the current and voltages flowing through elements in the module.