Inductors and Practical Magnetics
Predict inductor current behaviour, recognise the flyback problem in any switched inductive load, and read the saturation and DCR specs that actually decide a part choice.
Two ways in. Work the material, or if you already know this, go straight to the project and prove it.
Where this sits
- Prerequisites
- Capacitors and RC Behaviour
How this skill is structured
- 1. Concepts — the ideas stated plainly, with the equations worth memorising.
- 2. Worked example — one real problem solved end to end, numbers included.
- 3. Tool demonstration — do the thing in a real open-source tool.
- 4. Resources — the specific free readings and videos, and what part of each to use.
- 5. Project — built alone, producing something a reviewer can check.
- 6. Competence checklist — what you must be able to do. This is also the audit rubric.
1. Concepts
Read these first. Tick each one when you could explain it to someone else without notes.
2. Worked example
Protecting a MOSFET switching a 12 V relay
ProblemA relay coil is 12 V, 30 mA, with 200 mH of inductance. You switch it low-side with a MOSFET rated 60 V. What happens without a flyback diode, and what diode do you need?
- 1Coil resistance R = 12 V / 30 mA = 400 ohm. LR time constant = 0.2 / 400 = 500 us.
- 2Energy stored at full current: 0.5 x 0.2 x 0.03^2 = 90 uJ. Small, but the voltage is the problem, not the energy.
- 3The MOSFET turns off in, say, 100 ns. If the current were forced to zero in that time: V = L x dI/dt = 0.2 x 0.03 / 100e-9 = 60,000 V.
- 4In reality the MOSFET avalanches at its 60 V rating and absorbs the energy itself. Repeated avalanche shortens its life and is outside its datasheet's guaranteed operating area.
- 5Add a diode across the coil, cathode to +12 V, anode to the drain. When the MOSFET opens, coil current freewheels through the diode.
- 6Diode requirements: reverse voltage > 12 V (choose 100 V for margin), forward current >= the coil current of 30 mA continuous during decay. A 1N4148 (100 V, 200 mA) is more than adequate; a 1N4007 also works.
- 7Decay time with the diode: current decays with tau = L/(R_coil + R_diode_dynamic) ~ 500 us, so the relay releases in a few milliseconds. If faster release is needed, add a Zener in series with the diode to clamp higher and dissipate faster — at the cost of a higher voltage on the MOSFET.
Answer1N4148 across the coil, cathode to +12 V. Without it the MOSFET is driven into repeated avalanche at 60 V. With a Zener-plus-diode clamp you trade MOSFET voltage stress for faster relay release.
3. Tool demonstration
See the flyback spike, then see the diode remove it.
4. Resources
Free and, wherever possible, openly licensed. The note tells you which part to actually use — do not read them cover to cover.
5. Project — build this on your own
About 2.5 hours. This is the artifact that proves the skill. Work it without a walkthrough.
Specify the protection and the inductor for two inductive loads: a 12 V/30 mA relay switched by a MOSFET at 1 Hz, and a 5 V brushed DC motor drawing 800 mA stall, switched by PWM at 20 kHz.
Deliverables
Acceptance criteria — how you know it is good enough
If you want to push further
- Add a Zener-plus-diode clamp to the relay simulation and quantify the release-time improvement versus the extra MOSFET voltage stress.
- Model the inductor's DCR in the buck calculation and estimate the conduction loss and the resulting efficiency hit.
6. Competence checklist
Tick these honestly. If you are auditing this skill, this is your rubric — you should be able to demonstrate every line from the project you just built.