Voltecx is in beta. The macOS build comes first; Windows and Linux packages are still being tested.Beta. macOS comes first; Windows and Linux are still in testing. What's new

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.

The flyback: 12 V source, coupled inductor T1 (two 50 µH windings, k = 0.995), switch S1 with an RC snubber Csn and Rsn, output diode D1, C1 = 47 µF and a 20 Ω load, 100 kHz PWM at a duty of 0.4

How it works

T1 is a coupled inductor with two windings, Np:NsN_p : N_s = 1 : 1 here, and the dots placed so that the secondary voltage is reversed. While S1 is on, the primary sees VinV_{in}, 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 n=Ns/Npn = N_s/N_p:

Vin D=Voutn(1−D)⇒Vout=n D1−D Vin=8 V.V_{in}\,D = \frac{V_{out}}{n}(1 - D) \quad\Rightarrow\quad V_{out} = n\,\frac{D}{1 - D}\,V_{in} = 8\ \text{V}.

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 Vin D/(Lm fsw)=0.96V_{in}\,D/(L_m\,f_{sw}) = 0.96 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 0.66+0.96/2=1.140.66 + 0.96/2 = 1.14 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 −Vout/n-V_{out}/n, so the drain of S1 sits at

Vin+Voutn=20 V.V_{in} + \frac{V_{out}}{n} = 20\ \text{V}.

That plateau is the minimum the switch must block. But the coupling is not perfect: a part of each winding's inductance, (1−k) Lp(1 - k)\,L_p = 0.25 µH, is not linked to the other winding, and the primary sees both windings' share, a leakage inductance Llk=(1−k2) Lp≈L_{lk} = (1 - k^2)\,L_p \approx 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

Ipk Rsn=1.15 A×50 Ω≈57.5 V.I_{pk}\,R_{sn} = 1.15\ \text{A} \times 50\ \Omega \approx 57.5\ \text{V}.

The run gives 57.5 V. The leakage current then falls into the secondary with the time constant Llk/RsnL_{lk}/R_{sn} = 10 ns, and the drain settles on the plateau.

Drain voltage, primary current i(T1.1) and secondary current i(T1.2) over two periods

Raise the duty to 0.5 and the output becomes VinV_{in} = 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 kk = 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 RsnR_{sn}, 57.1 V in the run. What grows is how long it lasts, Llk/RsnL_{lk}/R_{sn} = 40 ns, and the energy the leakage holds at turn-off, 12LlkIpk2\tfrac12 L_{lk} I_{pk}^2 = 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 kk = 0.995. The output falls to 7.76 V: the 20 Ω load receives 3.01 W instead of 3.14 W.

The drain voltage with k = 0.995 and with k = 0.98: the same plateau and the same peak, a spike that lasts longer

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

  1. Output and drain. Predict VoutV_{out} 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.)
  2. Raise the duty. Set the Duty block to 0.5. Predict the output and the new plateau. (Checked: 11.6 to 12.0 V.)
  3. 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

  1. 8 V, a 20 V plateau and a spike of Ipk RsnI_{pk}\,R_{sn} = 1.15 A × 50 Ω; the run gives 7.93 V, a 20 V plateau and a 57.5 V spike.
  2. 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 Ω.
  3. The leakage grows about fourfold. The peak stays at the primary current times RsnR_{sn} (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.

  1. Open Course 4 · The flyback converter in Guided Lessons and complete its steps.
  2. Zoom the scope onto two switching periods at the end of each run and read the values.
  3. 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.

  1. Change the secondary to 200 µH (a 1 : 2 winding). What duty gives 8 V now, and what happens to the drain plateau?
  2. Why does a flyback need a snubber or clamp when a buck-boost with one inductor does not?
  3. 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.