Sub topic 13
Opening an Inductive Circuit: Voltage Spikes and Flyback Paths
This chapter assumes you know the inductor relation v = L di/dt, the continuity of inductor current, and the RL step and natural responses from earlier chapters. It also assumes you can find a Thevenin resistance seen by an inductor. The goal is to explain what happens when a switch interrupts inductor current, and how to give that current somewhere to go.
The problem: current that cannot stop
An inductor's current is continuous. A switch can open in nanoseconds, but the inductor current cannot drop to zero in zero time. If it did, di/dt would be infinite and v = L di/dt would be infinite.
An ideal switch opening in series with an ideal inductor has no resolution in the model. In a real circuit, the inductor current forces itself through whatever path exists. That path is usually the stray capacitance across the switch contacts, the air gap, or the junction of a transistor. The voltage rises until something conducts. This may be an arc across the contacts or avalanche breakdown in a semiconductor.
The spike is not a mistake in the model. It follows directly from continuity: the inductor holds its current at I₀ at the instant of opening, and the circuit must accommodate that current.
A resistive path: the spike as a resistor voltage
Suppose the inductor has current I₀ and the switch moves it into a resistor R. The inductor current remains I₀ at t = 0⁺, so the resistor voltage is
v_R(0⁺) = I₀ R
with the sign set by the current direction through the resistor. The decay that follows is the RL natural response:
i(t) = I₀ e^(−t/τ), with τ = L/R
The size of the spike therefore depends on R alone. A large R gives a large voltage but a short time constant. A small R gives a small voltage but a long decay.
Take an example. A relay coil has L = 200 mH and carries 100 mA. It is switched into a 10 kΩ path.
- Initial voltage: 0.1 A × 10 000 Ω = 1000 V
- Time constant: 0.2 H / 10 000 Ω = 20 µs
A 5 V or 12 V coil produces a 1 kV pulse for a moment. That is enough to damage a transistor rated for 40 V.
Energy: where the stored energy goes
The inductor stores energy W = ½ L I₀². When the current path is interrupted, this energy has to be dissipated or transferred somewhere.
For the relay coil above:
W = ½ × 0.2 H × (0.1 A)² = 1 mJ
In the resistive path, all of this 1 mJ is dissipated in R during the decay. You can check this by integrating the power:
∫ i²R dt from 0 to ∞ = I₀² R × (τ/2) = I₀² R × L/(2R) = ½ L I₀²
The energy does not depend on R. Only the voltage and the duration change. When there is no designed path, the energy is dumped into the switch, which is the destructive case.
Flyback paths
A flyback path (also called a freewheeling or snubber path) is a deliberately provided route for inductor current when the switch opens. The most common one is a diode connected across the inductor.
The flyback diode
The diode is placed in reverse across the coil, so it does not conduct while the source drives the coil. Consider a source V_S, a switch, and an inductor with a diode across it.
- Switch closed: the coil voltage is +V_S. The diode is reverse-biased and carries no current.
- Switch opens: the coil current I₀ continues in the same direction. The coil voltage reverses polarity until the diode becomes forward-biased. The diode then conducts I₀.
With the diode in place, the coil voltage is clamped to about −VD, where VD is the diode forward drop, typically 0.7 V for a silicon diode. The voltage across the switch becomes VS + VD instead of a kilovolt-level spike.
Decay with a diode
While the diode conducts, the coil sees a loop made of the coil's own series resistance R_L and the diode drop. The coil voltage is
L di/dt = −RL i − VD
This is the natural response with a constant offset. For an ideal diode with VD = 0, the current decays with τ = L/RL. The coil's own resistance is typically small, so the decay is slow.
With a nonzero V_D, the current falls linearly at first and reaches zero in finite time. The current stops when it reaches zero, because the diode cannot conduct backward.
The trade-off: slow release
The diode clamps the voltage but slows the decay. For a relay, this delays release. For a solenoid valve, it can delay closing. A common fix is to add a resistor or a Zener diode in series with the flyback diode. This raises the clamp voltage to speed up the release while still limiting it.
| Flyback arrangement | Peak voltage across switch | Decay speed |
|---|---|---|
| No path | Very high (breakdown or arc) | Set by breakdown |
| Diode only | V_S + 0.7 V | Slowest |
| Diode + resistor R_f | V_S + 0.7 V + I₀R_f | Faster (τ = L/(R_L + R_f)) |
| Diode + Zener | V_S + V_Z + 0.7 V | Fastest, nearly linear current fall |
| RC snubber across switch | Limited by the RC network | Depends on R and C values |
Worked example: sizing a flyback resistor
A 12 V solenoid has L = 50 mH and R_L = 24 Ω. It carries I₀ = 12/24 = 0.5 A. You want the switch voltage to stay below 40 V.
- With a diode only, the switch sees about 12.7 V. This is safe.
- The decay time constant is τ = L/R_L = 50 mH / 24 Ω ≈ 2.1 ms. Five time constants take about 10 ms.
- To release faster, add Rf in series with the diode. The switch voltage is about VS + I₀Rf + 0.7 V. For a limit of 40 V, I₀Rf ≤ 40 − 12 − 0.7 = 27.3 V, so Rf ≤ 54.6 Ω. Choose Rf = 47 Ω.
- The new time constant is τ = L/(RL + Rf) = 50 mH / 71 Ω ≈ 0.70 ms. Release is about three times faster.
- The peak switch voltage is 12 + 0.5 × 47 + 0.7 = 36.2 V, under the limit.
You can check this numerically.
import math
L = 50e-3 # henries
R_L = 24.0 # coil resistance, ohms
R_f = 47.0 # series flyback resistor, ohms
V_S = 12.0
V_D = 0.7
I0 = V_S / R_L
tau_diode = L / R_L
tau_res = L / (R_L + R_f)
v_switch_peak = V_S + I0 * R_f + V_D
print(f"I0 = {I0:.3f} A")
print(f"tau (diode only) = {tau_diode * 1e3:.2f} ms")
print(f"tau (diode + R_f) = {tau_res * 1e3:.2f} ms")
print(f"peak switch voltage = {v_switch_peak:.1f} V")
# Current at t = 2 ms for the resistor case (V_D ignored for simplicity)
t = 2e-3
i = I0 * math.exp(-t / tau_res)
print(f"i(2 ms) = {i * 1000:.1f} mA")The example ignores VD in the decay for simplicity. This gives a small error, because the diode drop is small next to I₀(RL + R_f) = 35.5 V.
Common errors
- Using the source voltage as the limit. The switch voltage with a flyback path is V_S plus the clamp voltage, not just the clamp voltage.
- Putting the diode in the wrong direction. A forward-biased diode across the coil shorts the source whenever the switch is closed.
- Forgetting the release delay. A diode-only clamp can make a relay stay closed for several milliseconds.
- Ignoring stray capacitance. Without a diode, the switch's capacitance and the coil's inductance form a ringing circuit, not just a single spike.
- Using τ = L/R with the wrong R. After opening, R is the total resistance in the new loop, which includes any series flyback resistor.
Where this appears
The same mechanism is used on purpose in switching power supplies. A boost converter opens a switch on purpose, and the inductor's current is routed through a diode to a higher output voltage. In ignition coils, the spike is the goal, since it produces thousands of volts for the spark. The difference between a design that works and one that fails is whether the spike has a planned path.
Exercise
A motor winding has L = 20 mH and carries 2 A. A switch opens and the current is forced through a 500 Ω resistor in parallel with the winding. Find the initial voltage across the resistor, the time constant, and the energy dissipated in the resistor.
Show answer
The inductor current stays at 2 A at t = 0⁺, so the resistor voltage is 2 A × 500 Ω = 1000 V. The time constant is τ = L/R = 20 mH / 500 Ω = 40 µs. The energy dissipated equals the energy stored: ½ × 0.02 H × (2 A)² = 40 mJ.
Exercise
A 24 V relay coil has R_L = 120 Ω and L = 1 H. A silicon flyback diode (0.7 V drop) is connected across it. Estimate the voltage across the switch just after opening, and the time constant of the decay with the diode treated as ideal.
Show answer
The coil current is 24/120 = 0.2 A. After opening, the diode conducts this current, and the coil voltage is clamped near −0.7 V. The switch voltage is about 24 + 0.7 = 24.7 V. The time constant is L/R_L = 1 H / 120 Ω ≈ 8.3 ms.