Build it step by step
0 of 7 doneWire the coil
Connect the relay coil, the button and the batteries so the relay clicks when pressed.
Add the LED
Wire the LED and resistor backwards across the coil as in the table.
Press and release
Watch for a brief flash at the moment of release only.
Look at it on a scope
If you have one, probe terminal B to ground and see the spike on release.
Add the diode
Fit the 1N4007 across the coil, cathode to the battery side.
Repeat
The LED no longer flashes and the spike is gone.
Compare a coil
Try the 1 mH inductor in place of the relay and see a smaller spike.
How do you build an inductor back-EMF lab?
Switch off a relay coil and see the voltage spike with a reverse-connected LED, then tame it with a flyback diode. You need Relay 5 V SPDT (sugar cube), Inductor 1 mH, Rectifier Diode 1N4007, LED 5 mm red, Resistor 330 Ω, Tactile push button 6 mm, Battery holder 4 × AA with switch, AA alkaline battery × 3 and Breadboard 830 Tie Points. It takes 7 steps and about 45 minutes.
- Level
- Intermediate
- Time
- About 45 min
- Parts
- 9
Parts list
- SwitchesBuy
- PassivesBuyInductor 1 mH × 1
- SemiconductorsBuy
- SemiconductorsBuyLED 5 mm red × 1
- PassivesBuyResistor 330 Ω × 1
- SwitchesBuy
- PowerBuy
- BatteriesBuy
- PrototypingBuy
Tick what you already own. It saves to My Garage, so “Build with what I have” knows.
Wiring
| From | To | Why |
|---|---|---|
| 3 AA cells + (4.5 V, one holder slot bridged with a wire) | Relay coil terminal A | Supply |
| Relay coil terminal B | Button, then 3 AA cells - | Switched side of the coil |
| Red LED anode | Relay coil terminal B (the button side) via a 330 Ω resistor | Spike indicator |
| Red LED cathode | Relay coil terminal A (the battery + side) | Reverse of the normal polarity |
| 1N4007 (later) | Cathode to coil terminal A, anode to coil terminal B | Flyback diode |
No code needed
No code. The LED is connected the opposite way to the supply, so it is reverse-biased while the coil is on and stays dark. When you release the button, the coil current has to go somewhere, and the voltage at terminal B spikes high enough to push a brief current through the LED, which flashes. The spike can reach tens of volts but carries little energy; still, keep your fingers off the coil terminals while switching. Use only 3 AA cells (4.5 V) for a 5 V coil, fitting a wire link in the unused fourth holder slot.
Test checklist
What you should see at each check. If a reading is far off, stop and use the troubleshooting list.
| Check | Expected |
|---|---|
| Button pressed | Relay clicks and the LED stays dark |
| Button released, no diode | LED flashes briefly |
| Button released, with diode | No flash |
| Scope on the switch node | Large spike without the diode, clamped to about 0.7 V above the supply with it |
If it does not work
LED never flashes
Try a bright red LED and a dim room, or check it is reversed relative to the supply.
LED stays lit while pressed
It is the wrong way round. Reverse it.
Relay will not click
Use fresh batteries and check the coil terminals.
Diode makes the relay buzz
It is the wrong way round. The band goes to the supply side.
Still stuck? Find the fault step by step with your multimeter →
Common questions
What parts do I need for the inductor back-EMF lab?
Relay 5 V SPDT (sugar cube), Inductor 1 mH, Rectifier Diode 1N4007, LED 5 mm red, Resistor 330 Ω, Tactile push button 6 mm, Battery holder 4 × AA with switch, AA alkaline battery × 3 and Breadboard 830 Tie Points.
How long does the inductor back-EMF lab take to build?
About 45 minutes for a intermediate maker, in 7 steps.
How do I know the inductor back-EMF lab works?
Button pressed: Relay clicks and the LED stays dark. Button released, no diode: LED flashes briefly. Button released, with diode: No flash.
LED never flashes: what should I check?
Try a bright red LED and a dim room, or check it is reversed relative to the supply.
LED stays lit while pressed: what should I check?
It is the wrong way round. Reverse it.
Relay will not click: what should I check?
Use fresh batteries and check the coil terminals.
Diode makes the relay buzz: what should I check?
It is the wrong way round. The band goes to the supply side.
