Electrical · Core · Investigate
Switching off a coil
Switching the valve off destroys the transistor. Why, when off is the safe direction? What across the coil protects it, and what does each choice cost?

The bench
A controller switches a TIP41A transistor, and the transistor switches a 24 V solenoid valve on a water line: on for a set time, then off. Switched on, the transistor keeps 0.3 V for itself and the coil has the rest. It is rated for 60 V from collector to emitter, and to take 62.5 mJ from a coil if that is ever exceeded. The valve pulls in once its coil carries 0.48 A and drops out when the current has fallen to 0.20 A; its plunger takes 3 ms to move. The job allows 10 ms from switch-off to the water stopping. The scope shows the collector's voltage on CH1 and the coil's current on CH2, the whole cycle above and the switch-off zoomed below. Everything is slowed down so it can be watched.
What you do
Controls
- Valve held on for (ms): 10 to 150
- Zener (V): 5 to 56
- Resistor (Ω): 10 to 200
- Scope zoom (ms per division): 0.5 to 10
Buttons
- Run one cycle
Stockroom
- Across the coil: Nothing · Diode · Diode and zener · Resistor
Predictions
- At the moment of switch-off, the voltage across the coil…
- Fit something that makes the current die faster. The energy the coil's field gives up at switch-off is…
To work out
- What is the coil's inductance? (H)
- What is the highest zener voltage that keeps the collector under the transistor's 60 V? (V)
Results kept
- Cycles: Across the coil, Current at switch-off (A), Rise, 10 to 90 % (ms), Coil, after switch-off (V), Collector peak (V), Field gave up (mJ), Water stopped after (ms), Valve
What you find
- At switch-off the collector went above the supply. The coil's voltage had reversed: the coil was now driving its own current.
- The higher the voltage the coil is held at while its current dies, the sooner it is gone: the current falls at (that voltage + iR) ÷ L amps a second. The collector has to stand the supply plus that voltage.
What is simplified
One inductance is used for everything, the data sheet's figure at 120 Hz with the plunger out: in a real valve it rises as the plunger pulls in and is smaller for fast changes, and eddy currents in the iron hold the field up after the current has gone. The coil is cold, at 30 Ω. The transistor breaks down at exactly its 60 V rating and fails at exactly its 62.5 mJ rating; a real one has some margin that nobody promises, and may fail on its tenth switch-off and not its first. The diode and zener hold flat voltages, and the zener comes in every whole volt. The coil's stray capacitance and core loss, and the valve's pull-in, drop-out, travel time and the 10 ms allowed, are chosen round numbers. The supply never sags. Everything is slowed down 50 times and more. This is for understanding. It is not a design guide.
Topics
inductor, inductance, time constant, rl circuit, transient, switching transient, inductive kick, back emf, flyback diode, freewheeling diode, snubber, zener clamp, transient suppressor, avalanche breakdown, solenoid valve, relay driver, transistor switch, stored energy, rise time, circuits