PWMSim

Control

PI buck — line and load steps

A controlled buck responding to input-voltage and load changes.

Open and simulate
Press Run: the example simulates in your browser. Open and simulate takes it to the full app, where you can change it.

Try this

Double proportional gain and compare the recovery waveform. Then press Run again.