TExcelTAD
Home › EE Foundations: Units, Measurement, Safety & the Lab Notebook › Magnetism, Induction and Inductance

Magnetism, Induction and Inductance

A relay clicks off and the microcontroller that drove it resets. The cause is not software: when the current in the relay's coil was cut, the coil produced a voltage spike of hundreds of volts for a microsecond. That is induction at work, the same physics that runs every transformer, motor and generator. This lesson refreshes magnetic fields, forces on currents, Faraday's and Lenz's laws and inductance, with the numbers that matter on a bench. For depth see the school lessons on the field of a straight wire, the force on a current, Faraday's law and Lenz's law.

Magnetic field and force

Currents make magnetic fields. The flux density BB is measured in tesla (T); useful reference values are the Earth's field (about 50 μT50\ \mu\text{T} at mid latitudes), a fridge magnet (a few mT at its surface) and a strong neodymium magnet (several tenths of a tesla at its surface). A long straight wire with current II makes circles of field around it:

B=μ0I2πr,μ0≈4π×10−7 T⋅m/A (≈1.2566×10−6)B = \frac{\mu_0 I}{2 \pi r}, \qquad \mu_0 \approx 4\pi \times 10^{-7}\ \text{T} \cdot \text{m/A} \ (\approx 1.2566 \times 10^{-6})

A wire of length LL carrying II at an angle θ\theta to a field BB feels a force

F=BILsin⁡θF = B I L \sin\theta

which is how motors and loudspeakers turn current into motion. The lab uses its default values: 0.8 T0.8\ \text{T}, 5 A5\ \text{A}, 15 cm15\ \text{cm} at 90∘90^\circ, so F=0.8⋅5⋅0.15=0.60 NF = 0.8 \cdot 5 \cdot 0.15 = 0.60\ \text{N}, pushing the wire up. Sweep θ\theta and watch FF follow sin⁡θ\sin\theta.

NBIθF = 0.60 NSFleming's left handB FirstI seCondF thuMb

Flux, Faraday and Lenz

The magnetic flux through a loop of area AA is Φ=BAcos⁡α\Phi = BA\cos\alpha (in webers, 1 Wb=1 T⋅m21\ \text{Wb} = 1\ \text{T} \cdot \text{m}^2), where α\alpha is the angle between the field and the loop's normal. When the flux through a coil of NN turns changes, an emf appears:

E=−NdΦdt\mathcal{E} = -N \frac{d\Phi}{dt}

The minus sign is Lenz's law: the induced current opposes the change that caused it. Push a magnet's N pole into a coil and the coil's near end becomes an N pole, pushing back. The lab shows the flux and the emf; try "slow" and "fast" and different turn counts. Faster motion means a larger dΦ/dtd\Phi/dt, so a larger but shorter pulse; doubling NN doubles the emf.

SNflux not changing: no induced currentG0 mVΦ (mWb)t0.147moving inmoving outℰ (mV)t137−137moving inmoving out

Inductance

A coil's own current makes flux through its own turns. The ratio is the inductance, in henries:

L=NΦI,vL=Ldidt,W=12LI2L = \frac{N\Phi}{I}, \qquad v_L = L \frac{di}{dt}, \qquad W = \frac{1}{2} L I^2

For a long air-cored solenoid of NN turns, length ℓ\ell and cross-section AA, L=μ0N2A/ℓL = \mu_0 N^2 A/\ell; a magnetic core multiplies it by its relative permeability μr\mu_r (hundreds to thousands for ferrite and iron), until the core saturates.

The middle formula is the one that resets microcontrollers. An inductor's current cannot change instantly: try to stop it in a short time and vL=L di/dtv_L = L\,di/dt becomes very large. A relay coil switched off by a transistor sees its voltage spike until something breaks down. The cure is a flyback diode across the coil, which gives the current a path to decay slowly.

+12 V0 V coil 100 mH240 ohm flyback diode switch(transistor) I

Worked example: the relay spike

Given: a relay coil with L=100 mHL = 100\ \text{mH} and R=240 ΩR = 240\ \Omega on 12 V12\ \text{V}; the transistor cuts the current in about Δt=1 μs\Delta t = 1\ \mu\text{s}. Find: the coil current, its stored energy and the voltage that the switching would try to produce without a diode. Solve:

I=12 V240 Ω=50 mA,W=12⋅0.100 H⋅(0.050 A)2=125 μJvL≈LΔiΔt=0.100 H⋅0.050 A1×10−6 s=5000 V\begin{aligned} I &= \frac{12\ \text{V}}{240\ \Omega} = 50\ \text{mA}, \qquad W = \tfrac{1}{2} \cdot 0.100\ \text{H} \cdot (0.050\ \text{A})^2 = 125\ \mu\text{J} \\ v_L &\approx L \frac{\Delta i}{\Delta t} = 0.100\ \text{H} \cdot \frac{0.050\ \text{A}}{1 \times 10^{-6}\ \text{s}} = 5000\ \text{V} \end{aligned}

Check: H⋅A/s=(V⋅s/A)⋅A/s=V\text{H} \cdot \text{A/s} = (\text{V} \cdot \text{s/A}) \cdot \text{A/s} = \text{V}. In reality the voltage never reaches 5 kV: the transistor breaks down at its rated voltage (often 40 to 60 V) and absorbs the 125 µJ, which can destroy it over many cycles, and the fast edge couples into nearby wiring. With the diode, the voltage stays one diode drop (about 0.7 V) above 12 V and the current decays with τ=L/R≈0.42 ms\tau = L/R \approx 0.42\ \text{ms}.

Fields and inductors in Python

python · try it yourself
import numpy as np

mu0 = 4e-7 * np.pi
for I, r in [(10, 0.01), (10, 0.10), (1, 0.01)]:
    B = mu0 * I / (2 * np.pi * r)
    print(f"wire {I:2d} A at {r*100:4.0f} cm: B = {B*1e6:7.1f} uT ({B/50e-6:5.2f} x Earth's field)")

# air-cored solenoid: 200 turns, 2 cm long, 5 mm radius
N, length, radius = 200, 0.02, 0.005
L = mu0 * N**2 * np.pi * radius**2 / length
print(f"solenoid L = {L*1e6:.0f} uH")

Lr, Rr, V = 0.100, 240.0, 12.0
I = V / Rr
print(f"relay: I = {I*1e3:.0f} mA, W = {0.5*Lr*I**2*1e6:.0f} uJ, tau = L/R = {Lr/Rr*1e3:.2f} ms")
wire 10 A at    1 cm: B =   200.0 uT ( 4.00 x Earth's field)
wire 10 A at   10 cm: B =    20.0 uT ( 0.40 x Earth's field)
wire  1 A at    1 cm: B =    20.0 uT ( 0.40 x Earth's field)
solenoid L = 197 uH
relay: I = 50 mA, W = 125 uJ, tau = L/R = 0.42 ms

Since 2019 μ0\mu_0 is a measured constant (1.256 637 061 27×10−6 N/A21.256\,637\,061\,27 \times 10^{-6}\ \text{N/A}^2, CODATA 2022), equal to 4π×10−74\pi \times 10^{-7} within a part in 10910^9, so the old value is fine for engineering. The solenoid figure uses the long-solenoid formula; a coil only twice as long as its diameter really has roughly 20 % less (Nagaoka's correction). A 10 A cable a centimetre from a compass or magnetometer gives four times the Earth's field, which is why sensor boards keep power wiring away from them, and why the two conductors of a supply cable are run together: their opposite fields almost cancel.

Guided lab: induction with a small coil

Hand calculation. A coil of N=300N = 300 turns and 2.5 cm2.5\ \text{cm} radius sees a magnet whose flux through each turn rises from 0 to about 0.1 mWb0.1\ \text{mWb} in 0.2 s0.2\ \text{s}: E≈300⋅10−4/0.2=0.15 V\mathcal{E} \approx 300 \cdot 10^{-4}/0.2 = 0.15\ \text{V}. Pull it out at the same speed and the sign reverses.

Simulation. The induction lab above uses a similar coil; compare its emf peaks for "slow" and "fast" at the same NN, then halve NN.

What you would measure. Connect a coil of a few hundred turns (a small spool of enamelled wire, or a 12 V relay coil) directly to a multimeter on the 200 mV DC range, or better to an oscilloscope at 50 mV/div and 100 ms/div. Move a small neodymium magnet in and out by hand. Expect pulses of tens to a few hundred millivolts, opposite in sign for in and out, larger for faster motion. A hand-held magnet's speed is not repeatable, so expect 20 to 50 % scatter between pulses; the sign pattern is the reliable result. For the flyback effect, drive a 12 V relay from a current-limited bench supply (12 V, 100 mA limit) through a switch, with the scope across the coil: with the diode fitted, the turn-off shows only a small overshoot.

Hazards and safe setup: do not touch the coil's terminals while switching it without a diode (a sharp but low-energy sting is possible); neodymium magnets pinch fingers and wipe cards, so keep them apart and away from pacemakers; nothing here comes near mains.

Pitfalls

  • Confusing BB and Φ\Phi: flux is field times area; a big field through a tiny loop gives little flux.
  • Forgetting Lenz's sign: the induced current always opposes the change.
  • Switching inductive loads without a path for the current: relays, solenoids and motors need a flyback diode or snubber.
  • Assuming LL is constant: iron- and ferrite-cored inductors lose inductance as they saturate at high current.

Practice

  1. Find BB at 5 mm5\ \text{mm} from a wire carrying 2 A2\ \text{A}.
  2. A 50-turn coil's flux per turn falls from 2 mWb2\ \text{mWb} to 0 in 10 ms10\ \text{ms}. Find the average emf.
  3. How much energy does a 10 mH10\ \text{mH} inductor store at 3 A3\ \text{A}?
Answer
  1. B=4π×10−7⋅2/(2π⋅0.005)=80 μTB = 4\pi \times 10^{-7} \cdot 2/(2\pi \cdot 0.005) = 80\ \mu\text{T}.
  2. E=50⋅2×10−3/10−2=10 V\mathcal{E} = 50 \cdot 2 \times 10^{-3}/10^{-2} = 10\ \text{V}.
  3. W=12⋅0.010⋅32=45 mJW = \tfrac{1}{2} \cdot 0.010 \cdot 3^2 = 45\ \text{mJ}.

Test yourself

The field of a long straight wire at distance rr is proportional to…

  1. rr
  2. 1/r1/r
  3. 1/r21/r^2
  4. r2r^2

Lenz's law says that the induced current…

  1. always flows clockwise
  2. opposes the change in flux that produced it
  3. is always zero in copper
  4. adds to the change in flux

Why is a diode placed across a relay coil?

  1. To make the relay faster to switch on
  2. To give the coil current a path when the switch opens, limiting the voltage spike
  3. To rectify AC
  4. To light up when the relay is on

Doubling the number of turns of an air-cored solenoid (same length and area) multiplies its inductance by…

  1. 2
  2. 4
  3. 0.5
  4. 1