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.
- Peak voltage10 mH · 0.1 A / 1 µs1000 V
- Stored energy½ · 0.01 · 0.1²50 µJ
The faster you interrupt, the bigger the spike
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.
The turn-off spike and clamp methods
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.
| Method | Peak VDS | Decay | Energy goes to | When |
|---|---|---|---|---|
| None | V(BR)DSS | very fast | MOSFET (avalanche) | Only with an avalanche-rated MOSFET, small energy, single pulse. Usually no. |
| Diode | V+ + 0.7 V | slow (L/R) | Coil resistance + diode | Relays, low frequency; simplest and safest |
| Diode + zener | V+ + VZ + 0.7 V | fast | Zener (+ coil) | When relay release time matters, solenoid valves |
| TVS (drain–ground) | Vcl | fast | TVS | Automotive, long-cable loads, extra protection |
| RC snubber | depends on C | oscillatory | Rs | AC relay contacts, ringing suppression; rarely alone for flyback |
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.
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.
| Diode | Type | VRRM | IF(AV) | trr | Use |
|---|---|---|---|---|---|
| 1N4148 | small-signal, fast | 100 V | 150–200 mA | 4 ns | Small relays (≤ 100 mA coil) |
| 1N4007 | general-purpose, slow | 1000 V | 1 A | ~2–30 µs | Relays/solenoids at low frequency. Bad for PWM. |
| UF4007 | ultrafast | 1000 V | 1 A | 75 ns | PWM at higher voltage |
| 1N5819 / SS14 | Schottky | 40 V | 1 A | ≈ 0 (none) | PWM motors/solenoids ≤ 1 A; VF ≈ 0.3–0.5 V |
| SS34 / SS54 | Schottky | 40 V | 3 A / 5 A | ≈ 0 | Bigger 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.
Coil current under PWM
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.
- Coil resistance24 V / 1.5 A16 Ω
- Time constant50 mH / 16 Ω3.1 ms
- Stored energy½ · 0.05 · 1.5²56 mJ
1. No clamp
- Avalanche voltage1.2 · 60 V≈ 72 V
- Energy into the MOSFET56 mJ · 72 / (72 − 24)84 mJTypical TO-220 60 V MOSFET: EAS 100–300 mJ
2. Diode only
- Peak drain24 + 0.724.7 V
- Release time3.1 ms · ln(1 + 24 / 0.7)≈ 11 ms
3. Diode + 33 V zener
- Release time3.1 ms · ln(1 + 24 / 33.7)≈ 1.7 ms6.5× faster than the diode alone
- Peak drain24 + 33 + 0.7≈ 58 VToo close for a 60 V MOSFET
- Worst case with a TVS24 + 53 + 0.7≈ 78 VSMBJ33A: VBR ~37 V, VC ~53 V
Try it in the lab: L = 50 mH, I = 1.5 A, V+ = 24 V; compare “diode” with “diode + zener (33 V)”.