The flyback converter from the earlier guide works — 12 V in, 5 V out at 1 A — but it has a hidden killer. Its transformer is never perfectly coupled: a small part of the primary inductance, the leakage inductance, stores energy that cannot reach the secondary. When the MOSFET switches off, that energy has nowhere to go, so it rings against the MOSFET's own capacitance and drives the drain tens of volts above the normal operating level. The Nov 25 guide sized the MOSFET at 60 V to survive it, but the spike alone can exceed 60 V — and the fix is three cheap parts: a resistor, a capacitor and a diode, the RCD snubber. This guide designs one for that same flyback and shows the numbers behind every part.
Figure 1: The flyback primary (a) with its RCD snubber in red — Dsn catches the spike, Csn absorbs the leakage energy, and Rsn burns it off as heat. The chart (b) shows the drain voltage at switch-off: 94 V of ringing at 5.25 MHz without the snubber, clamped flat at 27 V with it. (Schematic, not to scale.)
How this guide's snubber works — catch it, hold it, burn it
The three parts each do one job. When the MOSFET turns off, the drain voltage rises past its normal level — the input voltage plus the reflected output voltage, 12 + 10 = 22 V — and the snubber diode turns on, steering the leakage current into the snubber capacitor instead of into the MOSFET's capacitance. The capacitor soaks up the leakage energy and its voltage rises a few volts above the reflected voltage. Then the resistor, connected across the capacitor, bleeds that charge away as heat before the next switching cycle, so the capacitor is ready to catch the next spike. The drain ends up clamped at the input voltage plus the capacitor voltage — 27 V here — instead of ringing to 94 V.
The key insight is that the snubber only handles the leakage energy, not the main transformer energy. The main energy — 58.9 µJ per cycle in this flyback — transfers to the secondary as designed. Only the leakage part, a few microjoules, goes into the snubber, which is why the resistor burns only a quarter of a watt while the converter delivers 5 W.
Worked example — the 12 V to 5 V flyback at 100 kHz
Take the flyback from the Nov 25 guide: 12 V in, 5 V out at 1 A, 100 kHz, primary inductance Lp = 25 µH, peak primary current Ipk = 2.18 A, turns ratio Np:Ns = 2:1, so the reflected voltage is Vr = 5 × 2 = 10 V and the drain normally sits at 12 + 10 = 22 V while the switch is off. Assume a leakage inductance of Llk = 1 µH — 4% of the primary, a typical value for a hand-wound flyback transformer. The energy stored in the leakage inductance at switch-off is E = ½ × Llk × Ipk² = 0.5 × 1 µH × 2.18² = 2.38 µJ, and at 100 kHz that becomes a power of 2.38 µJ × 100 kHz = 0.24 W — that is the power the snubber resistor must burn, every second the converter runs.
Next choose the clamp level. Allow the capacitor to rise 5 V above the reflected voltage, so the snubber voltage is Vsn = 10 + 5 = 15 V and the drain clamps at 12 + 15 = 27 V — comfortably below the 60 V MOSFET rating, with the spike gone. The capacitor must be big enough that absorbing 2.38 µJ raises it by no more than that 5 V: C ≥ Llk × Ipk² / ΔV² = 1 µH × 2.18² / 5² = 0.19 µF, so use a standard 0.22 µF film capacitor (100 V rating is plenty). Check: the actual rise is ΔV = Ipk × √(Llk / C) = 2.18 × √(1 µH / 0.22 µF) = 4.65 V, so the drain clamps at 12 + 10 + 4.65 = 26.7 V, as designed.
The resistor follows from the power: it must burn 0.24 W at 15 V, so R = Vsn² / P = 15² / 0.24 = 947 Ω — use the standard 910 Ω, which burns 15² / 910 = 0.25 W. Fit a 1 W part, because a resistor run at its full rating runs hot enough to drift and age; four times the margin costs almost nothing. The diode sees an average current of only 0.24 / 15 = 15.8 mA, but a peak of the full 2.18 A for the 1.47 µs it takes to transfer the energy (Ï€ × √(Llk × Csn)), and 27 V in reverse while the switch is on — so a fast diode like the UF4007 (1 A, 1000 V, 75 ns recovery) is ideal, and an ordinary slow 1N4007 would not be: it would still be conducting when the switch turns back on.
One number looks wrong at first glance and is not: R × C = 910 Ω × 0.22 µF = 200 µs, twenty times the 10 µs switching period. The capacitor does not discharge between cycles — its voltage stays nearly constant at 15 V, and the resistor only drains the small top-up of charge each cycle brings. That is normal for an RCD clamp, and it is why the clamp voltage stays steady instead of sagging.
What happens without the snubber — 94 V on a 60 V MOSFET
Without the snubber, the leakage energy rings against the MOSFET's output capacitance. The IRFZ44 (60 V, 49 A, Coss = 920 pF typical at 25 V — Vishay datasheet) gives a spike of V = Ipk × √(Llk / Coss) = 2.18 × √(1 µH / 920 pF) = 71.9 V above the 22 V steady level, so the drain peaks at 94 V — and it rings there at f = 1 / (2Ï€√(Llk × Coss)) = 5.25 MHz, as Figure 1 (b) shows. A 94 V peak on a 60 V MOSFET means avalanche breakdown on every cycle: the part gets hot, its ratings degrade, and it usually fails within hours or days — sometimes taking the rest of the circuit with it. The negative swing of the ringing is clipped at about −0.7 V by the MOSFET's body diode, which is the only thing that saves the drain from swinging below ground. Fitting a 100 V MOSFET instead would survive the 94 V peak, but the 5.25 MHz ringing would still be there, radiating noise into everything nearby — the snubber removes the ringing, not just the peak.
The snubber is not free. The 0.24 W it burns comes from the input, so the flyback's input power rises from 5.88 W to 6.12 W and the efficiency falls from 5 / 5.88 = 85.0% to 5 / 6.12 = 81.7% — 3.3 points for the sake of a MOSFET that lives. The alternative is an active clamp, which returns the leakage energy to the input instead of burning it and can recover most of those 3.3 points, at the cost of an extra MOSFET and a more complex drive. For a 5 W flyback, the three-part RCD snubber is the right trade.
Design it for something else — a 24 V to 12 V / 3 A flyback
Scale the same steps to a bigger flyback: 24 V in, 12 V out at 3 A, 65 kHz, peak primary current 3 A, leakage inductance 2 µH, turns ratio 1:1 so the reflected voltage is 12 V. The leakage energy is 0.5 × 2 µH × 3² = 9 µJ per cycle, or 9 µJ × 65 kHz = 0.585 W. Allow 6 V above the reflected voltage, so Vsn = 18 V and the drain clamps at 24 + 18 = 42 V — a 60 V MOSFET works, though a 100 V part is the comfortable choice. The capacitor is C ≥ 2 µH × 3² / 6² = 0.50 µF, so use 0.47 µF; the resistor is R = 18² / 0.585 = 554 Ω, so use 560 Ω, burning 18² / 560 = 0.58 W — fit a 2 W part. The diode carries 0.585 / 18 = 32.5 mA on average with 3 A peaks, so the UF4007 fits here too.
Key points to remember
- Worked example: the 12 V to 5 V flyback (Ipk = 2.18 A, Llk = 1 µH) stores 2.38 µJ in its leakage inductance, or 0.24 W at 100 kHz — that is all the snubber has to handle.
- Size the capacitor from the allowed overshoot: C ≥ Llk × Ipk² / ΔV² gives 0.19 µF for ΔV = 5 V, so 0.22 µF clamps the drain at 26.7 V; size the resistor from the power: R = Vsn² / P gives 910 Ω, burning 0.25 W — fit a 1 W part.
- Without the snubber the drain rings to 94 V at 5.25 MHz on a 60 V IRFZ44 — avalanche on every cycle — while the snubber holds it flat at 27 V.
- The snubber diode must be fast: the UF4007 (75 ns recovery) carries 2.18 A peaks for 1.47 µs per cycle; a slow 1N4007 would still be conducting at turn-on.
- R × C = 200 µs is twenty times the switching period — the capacitor voltage stays nearly constant, and that is normal for an RCD clamp.
- The snubber costs efficiency: 85.0% falls to 81.7% here, 3.3 points for a MOSFET that survives; an active clamp recovers most of it if the power is worth the extra complexity.
