Inductive loads and flyback

Coil current cannot change suddenly. When the switch opens, the coil can make hundreds of volts until something conducts. We look at that spike and compare safe ways to clamp it.

DrivingChapter 08

Inductor current cannot change suddenly

Interrupt a coil’s current quickly and it produces a large voltage. The voltage is proportional to how fast the current changes: V = L·di/dt.

A MOSFET or a mechanical switch cuts the current within nanoseconds. The coil generates whatever voltage it takes to keep the current flowing.

VL = L · di/dt    E = ½ · L · I²    τ = L / R
L10 mHI100 mACut-off time1 µs
  1. Peak voltage10 mH · 0.1 A / 1 µs1000 V
  2. Stored energy½ · 0.01 · 0.1²50 µJ
Even a small relay coil can punch through a MOSFET. The energy is small, but the voltage is huge.
Animation

The faster you interrupt, the bigger the spike

L = 10 mH, I = 100 mA, current ramps to zero in tf, no clamp. In reality the voltage stops when something conducts: avalanche, breakdown, an arc or a clamp.

What happens when the switch opens?

Take a low-side MOSFET driving a relay coil. When the MOSFET turns off, the coil current has nowhere to go and pushes the drain up.

  • No clamp: the drain rises to the avalanche voltage (V(BR)DSS × ~1.1–1.3). All the coil’s energy turns into heat inside the MOSFET.
  • Flyback diode: reversed across the coil. Current circulates back through the diode and the drain stays at V+ + 0.7 V.
Lab

The turn-off spike and clamp methods

Coil resistance R = V+/I. Diode VF = 0.7 V. Unclamped, the MOSFET avalanches at 1.2 × its rating. TVS is an ideal drain–ground clamp; the zener is in series with the diode. Snubber Rs = R. Parasitics ignored; EAS values are examples; time slowed down.

Clamp methods: speed or voltage?

The coil’s energy is always dissipated somewhere. The clamp method chooses where, and how fast.

  • The higher the reverse voltage across the coil, the faster the current decays.
  • Plain diode (0.7 V): lowest drain voltage, slowest decay.
  • Zener or TVS: higher drain voltage, much faster decay.
tdecay ≈ τ · ln(1 + I·R / Vclamp)    t ≈ L·I / Vclamp (if Vclamp ≫ I·R) Vclamp: the reverse voltage across the coil during decay. Diode: 0.7 V. Diode + zener: VZ + 0.7 V. TVS at the drain: Vcl − V+.
MethodPeak VDSDecayEnergy goes toWhen
NoneV(BR)DSSvery fastMOSFET (avalanche)Only with an avalanche-rated MOSFET, small energy, single pulse. Usually no.
DiodeV+ + 0.7 Vslow (L/R)Coil resistance + diodeRelays, low frequency; simplest and safest
Diode + zenerV+ + VZ + 0.7 VfastZener (+ coil)When relay release time matters, solenoid valves
TVS (drain–ground)VclfastTVSAutomotive, long-cable loads, extra protection
RC snubberdepends on CoscillatoryRsAC relay contacts, ringing suppression; rarely alone for flyback
A plain diode makes the relay release slowly With a diode the current decays slowly, at the L/R rate. The contact opens late and slowly, arcs longer and wears faster. A series 12–24 V zener cuts release time several-fold; that is why relay makers recommend diode + zener.

Avalanche energy (EAS)

An “avalanche rated” MOSFET can absorb a limited energy once at breakdown. The datasheet gives it as EAS for a single pulse and EAR for repetitive pulses.

An unclamped coil dumps more energy into the MOSFET than it stored. The supply keeps delivering energy during the decay.

EAV ≈ ½ · L · I² · VBR / (VBR − V+) VBR ≈ 1.2–1.3 × VDSS. The multiplier grows as V+ approaches VBR. EAS is measured at 25 °C and shrinks when hot.
When is avalanche acceptable? Only as a safety net for rare faults: a cable break, an emergency stop. Conditions: EAV < half of EAS and an avalanche-rated MOSFET. Avoid repetitive avalanche at every PWM edge by design.

Motors are inductive too

A DC motor is a winding inductance (0.1–5 mH), a series resistance and a back-EMF source proportional to speed. When a switch opens, the winding current again seeks a path.

  • In an H-bridge, the path is the MOSFETs’ body diodes. Separate flyback diodes are rarely needed.
  • Body diodes are slow. At fast PWM, a parallel Schottky or synchronous rectification cuts losses.

A braking motor becomes a generator and pumps energy into the supply. So does a descending lift or a vehicle going downhill. If the supply cannot sink current, the bulk capacitor voltage rises and can kill the bridge.

Remedies:

  • A large bulk capacitor
  • A TVS on the supply rail
  • A brake-chopper resistor
  • A supply that accepts reverse current, such as a battery

Choosing the flyback diode

  • Reverse voltage: VRRM > V+, with 1.5–2× margin.
  • Current: at turn-off the diode carries the entire coil current. Peak = load current. Under PWM the average is ≈ (1 − D) × I.
  • Speed: any diode works for an on/off relay. Under PWM, trr adds a current spike and loss at every turn-on: pick a Schottky or ultrafast.
DiodeTypeVRRMIF(AV)trrUse
1N4148small-signal, fast100 V150–200 mA4 nsSmall relays (≤ 100 mA coil)
1N4007general-purpose, slow1000 V1 A~2–30 µsRelays/solenoids at low frequency. Bad for PWM.
UF4007ultrafast1000 V1 A75 nsPWM at higher voltage
1N5819 / SS14Schottky40 V1 A≈ 0 (none)PWM motors/solenoids ≤ 1 A; VF ≈ 0.3–0.5 V
SS34 / SS54Schottky40 V3 A / 5 A≈ 0Bigger PWM loads. Leakage grows when hot.

PWM-driven inductive loads

Under PWM the flyback diode conducts every period. Current rises while the MOSFET is on and decays through the diode while it is off.

  • Continuous (CCM): τ = L/R is much longer than the period. Current is nearly constant and averages D·V/R.
  • Discontinuous (DCM): the period is long compared with τ. Current drops to zero each off interval; the load jitters and a solenoid buzzes.
Lab

Coil current under PWM

Ideal switch, diode VF = 0.7 V, steady state. Copper: MOSFET current. Blue: diode current. No back-EMF (a stationary solenoid or stalled motor).

Worked example

24 V, 1.5 A, 50 mH solenoid: which diode, how fast does it release?

First find how much energy the coil holds. Then compare no clamp, a diode and a zener.

V+24 VI1.5 AL50 mHMOSFET60 V
  1. Coil resistance24 V / 1.5 A16 Ω
  2. Time constant50 mH / 16 Ω3.1 ms
  3. Stored energy½ · 0.05 · 1.5²56 mJ
56 mJ, a thousand times a relay coil. This energy must go somewhere at every turn-off.

1. No clamp

  1. Avalanche voltage1.2 · 60 V≈ 72 V
  2. Energy into the MOSFET56 mJ · 72 / (72 − 24)84 mJTypical TO-220 60 V MOSFET: EAS 100–300 mJ
It survives once, not at every turn-off. Making this normal operation is a design error.

2. Diode only

  1. Peak drain24 + 0.724.7 V
  2. Release time3.1 ms · ln(1 + 24 / 0.7)≈ 11 ms
Safe but slow. A 1N4007 is fine for on/off; under PWM use an SS34 or a 2 A+ ultrafast.

3. Diode + 33 V zener

  1. Release time3.1 ms · ln(1 + 24 / 33.7)≈ 1.7 ms6.5× faster than the diode alone
  2. Peak drain24 + 33 + 0.7≈ 58 VToo close for a 60 V MOSFET
  3. Worst case with a TVS24 + 53 + 0.7≈ 78 VSMBJ33A: VBR ~37 V, VC ~53 V
Pick a 100 V MOSFET and a 600 W TVS (SMBJ33A). The zener carries the 1.5 A peak and most of the energy; a 500 mW zener will not do.

Try it in the lab: L = 50 mH, I = 1.5 A, V+ = 24 V; compare “diode” with “diode + zener (33 V)”.