Buck Converter
Simulation Could Not Handle Higher Frequency,
Usually Switching Frequency Is More Than 200Khz And Could Be 1Mhz.
In My Circuit Here It's Only 2Khz, So The Voltage Ripping Is Not Perfect At Higher Loads.
Output Voltage Could Be Changed By Adjusting Zener Diode Value (Reference Voltage).
Switching Pulse Width Is Proportional To Voltage Drop.
Close The Switch To The Left To Start.
If Simulation Failed Retry It Will Pass.