Free mini-course
The Buck Converter (Free Course)
How a step-down converter works, and how you control it - a plain-language guide with a companion web simulator. From chopping and averaging, to sizing the inductor and capacitor, to PWM and cascade control.
This is a free, plain-language web course on the buck (step-down) converter. Chapter 1 is open to everyone; sign in (free) to continue to the rest.
Every block diagram in the control chapters is implemented for real in the companion web simulator, where you can change the circuit and the control code and watch the result immediately.
Table of contents
- Welcome
- Why there is no DC transformer
- The solar charge-controller running example
- The converter and the numbers we use throughout
- 1. Why step down DC?
- Why a resistor wastes the energy
- Chop, don't drop: the switch node as a square wave
- From a square wave to a steady output: V_out = D x V_in
- The averaged model
- 2. The idea: switch and store
- How the inductor current ramps up and down
- Where the energy is kept (the magnetic field)
- The same V_out = D x V_in, seen through the inductor
- 3. Designing the filter: choosing L and C
- Why ripple matters (heat and EMI)
- Sizing the inductor from the current ripple
- Sizing the capacitor from the voltage ripple, and ESR
- When the current hits zero: CCM and DCM
- 4. Where the energy goes
- Why efficiency is really about heat
- Three families of loss: conduction, switching, core
- The efficiency curve and loss budget
- Why pay for the second switch (synchronous vs diode)
- 5. Controlling a buck: an overview
- What you control depends on the system around it
- Controlling the output voltage
- Why also control the current
- 6. Making the duty cycle real: PWM
- Why a duty cycle, not a gate signal
- PWM by ramp-carrier comparison
- The PWM block, in code
- 7. Controlling the voltage
- The model (feed-forward): D = V_ref / V_in
- The PI: correcting what the model misses
- Why the current surges if you only watch the voltage
- 8. Cascade control: voltage outside, current inside
- Two loops, two jobs
- Keep the loops at different speeds
- Effortless current limiting
- Software and hardware current limits