Split the buck-boost's inductor into two coupled windings and you have a flyback: the most common isolated converter below about 100 W, in every phone charger and auxiliary supply. It stores energy in the core while the switch is on and releases it to the output while the switch is off. This lesson derives its output, shows the voltage the switch sees, and shows what the imperfect coupling of a real transformer costs.
Time: about 30 minutes. You need: Lesson 3, and the idea of mutual inductance.
Open it in Voltecx
In Guided Lessons, choose Course 4 · The flyback converter. The circuit is also File › Open Example › Isolated › Flyback converter.
How it works
T1 is a coupled inductor with two windings, = 1 : 1 here, and the dots placed so that the secondary voltage is reversed. While S1 is on, the primary sees , its current ramps up, and D1 is reverse biased: no current flows to the output and C1 feeds the load. When S1 opens, the core's magnetising current has to continue; it moves to the secondary, forward biases D1 and flows into C1 and the load.
Volt-second balance on the magnetising inductance, with the secondary voltage referred to the primary by :
It is the buck-boost ratio, scaled by the turns ratio and with the sign set by the dots. The run gives 7.93 V.
The primary current ramps by A during the on-time. The input power, about 3.1 W, means an average input current of 0.26 A, or 0.66 A averaged over the on-time; so the primary peaks near A. The run gives 1.15 A in the primary and 1.08 A in the secondary at turn-off.
The drain voltage
While the secondary conducts, it holds the primary at , so the drain of S1 sits at
That plateau is the minimum the switch must block. But the coupling is not perfect: a part of each winding's inductance, = 0.25 µH, is not linked to the other winding, and the primary sees both windings' share, a leakage inductance 0.5 µH. Its current cannot jump to the secondary. At the instant S1 opens, the whole primary current flows into the snubber, and the snubber capacitor is still empty, so the drain jumps to
The run gives 57.5 V. The leakage current then falls into the secondary with the time constant = 10 ns, and the drain settles on the plateau.
Raise the duty to 0.5 and the output becomes = 12 V with this 1 : 1 winding; the run gives 11.85 V. The plateau rises to 24 V and the spike to 89.8 V, because the primary now peaks at 1.8 A.
Leakage inductance
Make the transformer worse: set the coupling to = 0.98, which a winding made with less care can easily have. The leakage inductance grows fourfold, to about 2 µH. The spike's peak does not move: it is still the primary current times , 57.1 V in the run. What grows is how long it lasts, = 40 ns, and the energy the leakage holds at turn-off, = 1.3 µJ. None of it reaches the output: the snubber turns it into heat each period, 0.13 W at 100 kHz against 33 mW with = 0.995. The output falls to 7.76 V: the 20 Ω load receives 3.01 W instead of 3.14 W.
This is why a flyback's switch is rated well above its plateau, why an RC snubber's resistor is chosen with the peak current in mind, why its transformer is interleaved to keep the leakage small, and why a clamp (an RCD network or a TVS, see the Flyback RCD + TVS clamp example under Power quality) is sized for the leakage energy.
The same circuit is also worked in full, from the hand calculation to the run, in the worked example.
Exercises
- Output and drain. Predict and the drain plateau. Set the End time to 6 ms and run. (Checked: 7.8 to 8.1 V out, drain spike 55 to 60 V.)
- Raise the duty. Set the Duty block to 0.5. Predict the output and the new plateau. (Checked: 11.6 to 12.0 V.)
- A looser winding. Set the Duty back to 0.4 and the coupling k of T1 to 0.98. Predict what happens to the spike and to the output, and where the extra energy goes. (Checked: drain spike still 55 to 60 V, output 7.6 to 7.9 V.)
Answers
- 8 V, a 20 V plateau and a spike of = 1.15 A × 50 Ω; the run gives 7.93 V, a 20 V plateau and a 57.5 V spike.
- 12 V and a 24 V plateau; the run gives 11.85 V and an 89.8 V spike, the 1.8 A primary peak times 50 Ω.
- The leakage grows about fourfold. The peak stays at the primary current times (57.1 V), but the spike lasts four times longer and its energy, four times larger, goes into the snubber, so the output falls to 7.76 V.
Lab handout
Objective. Derive a flyback's output from volt-second balance, find the voltage its switch must block, and see what leakage inductance costs.
Before the lab. Compute the "Predicted" column, including the leakage inductance for k = 0.995 and k = 0.98.
Procedure.
- Open Course 4 · The flyback converter in Guided Lessons and complete its steps.
- Zoom the scope onto two switching periods at the end of each run and read the values.
- Export the drain voltage for k = 0.995 and k = 0.98 as SVG for your report.
| Quantity | Predicted | Simulated | Difference |
|---|---|---|---|
| Output, D = 0.4, V | |||
| Drain plateau, V | |||
| Drain spike, V | |||
| Primary peak current, A | |||
| Output, D = 0.5, V | |||
| Leakage inductance, k = 0.98, µH | — | ||
| Drain spike, k = 0.98, V | |||
| Output, k = 0.98, V |
Report questions.
- Change the secondary to 200 µH (a 1 : 2 winding). What duty gives 8 V now, and what happens to the drain plateau?
- Why does a flyback need a snubber or clamp when a buck-boost with one inductor does not?
- Open the Flyback RCD + TVS clamp example (File › Open Example › Power quality). What sets the clamp voltage, and what does a lower clamp voltage cost?
References
The flyback as an isolated buck-boost and the role of leakage inductance are covered in R. W. Erickson and D. Maksimović, Fundamentals of Power Electronics, 3rd ed., Springer, 2020 (chapter 6), and in Mohan, Undeland and Robbins, Power Electronics, 3rd ed., Wiley, 2003. The exercises and numbers here are Voltecx's own.
Next: lesson 5, averaged models, is on the way. Meanwhile, see how to use this course in a class.