Tutorial: Flyback Converter¶
Design and simulate an isolated flyback converter.
Difficulty: Intermediate (⅔) | Duration: 30 minutes
Learning Objectives¶
- Understand flyback operation and energy transfer
- Design the coupled inductor (flyback transformer)
- Handle leakage inductance and voltage spikes
- Simulate transient and steady-state behavior
Theory¶
Topology¶
The flyback is an isolated version of the buck-boost converter:
Operating Principle¶
Switch ON: Energy stores in magnetizing inductance Lm. Secondary diode is reverse-biased.
Switch OFF: Stored energy transfers to secondary through the coupled inductor. Diode conducts.
Voltage Conversion¶
Where n = Ns/Np is the turns ratio.
Key Design Equations¶
Magnetizing inductance:
Turns ratio:
Switch voltage stress:
Design Example¶
Specifications¶
| Parameter | Value |
|---|---|
| Input voltage | 48V DC |
| Output voltage | 5V DC |
| Output power | 25W |
| Switching frequency | 100 kHz |
| Max duty cycle | 0.45 |
Calculations¶
Turns ratio:
Magnetizing inductance (for CCM):
Output capacitor:
Leakage Inductance¶
Real transformers have imperfect coupling (k < 1). The leakage inductance causes:
- Voltage spikes on the switch at turn-off
- Energy loss if not recovered
- EMI concerns
Snubber Circuit¶
An RCD snubber clamps the voltage spike:
Simulation Notes¶
Coupled Inductor Parameters¶
In GeckoCIRCUITS, set:
| Parameter | Value |
|---|---|
| Primary inductance (Lp) | 93 uH |
| Turns ratio (n) | 1:8 |
| Coupling coefficient (k) | 0.95-0.99 |
What to Observe¶
- Primary current - Ramp up during ON, reset during OFF
- Secondary current - Pulse during OFF period
- Switch voltage - V_in + reflected voltage + spike
- Output voltage - Should regulate to 5V
Exercises¶
Exercise 1: CCM vs DCM¶
Reduce load until the magnetizing current reaches zero. Compare waveforms.
Exercise 2: Coupling Coefficient¶
Vary k from 0.90 to 0.99. Observe the voltage spike on the primary switch.
Exercise 3: Snubber Design¶
Add an RCD snubber. Size it to clamp the spike below 120V.
Next Steps¶
- Forward Converter - Another isolated topology
- Thermal Simulation - Add switch and diode losses
- Magnetics - Detailed transformer design