In electrical terms, magnetism is the physical force generated by moving charges (current) that creates a magnetic field, which can then induce voltage in nearby conductors or exert mechanical pull on ferromagnetic metals. If you are searching for a practical magnetism course that skips abstract quantum mechanics and gets straight to why your MOSFETs keep exploding or why your transformer is humming, you need a bench-focused curriculum. In a real circuit or installation, magnetism introduces inductance, which resists changes in current, stores energy in magnetic fields, and generates destructive voltage spikes when a switch opens. Beginners commonly confuse magnetic field strength ($H$, measured in Amps/meter) with magnetic flux density ($B$, measured in Tesla), or they mistake static permanent magnetism for the dynamic electromagnetism that actually governs AC/DC circuit behavior.
The Core Syllabus: What Actually Matters on the Bench
When you study electromagnetism for practical electronics, you can ignore the esoteric math and focus on three core principles that dictate how your components behave. While a university MIT-level electricity and magnetism course will spend weeks on vector calculus, a maker only needs to internalize these physical realities:
- Ampere's Law (Current creates fields): Any time current flows through a wire, it generates a concentric magnetic field. Coil the wire, and the fields stack, creating an electromagnet. The strength depends strictly on the current and the number of turns, not the wire gauge.
- Faraday's Law (Changing fields create voltage): A static magnetic field does nothing to a nearby wire. But if the field changes (either by moving a magnet or by turning an electromagnet on/off), it induces a voltage in any conductor it intersects. This is the basis of transformers, generators, and inductive kickback.
- Magnetic Saturation (The limit of iron): Ferromagnetic cores (iron, ferrite) amplify magnetic fields by aligning their internal domains. Once all domains are aligned, the core is 'saturated.' Adding more current no longer increases flux density; instead, the inductor effectively loses its inductance and acts like a dead short, drawing massive current until something melts.
Worked Numeric Example: Calculating the Inductive Kick
Let's look at the most dangerous consequence of Faraday's Law on the workbench: the inductive voltage spike (back-EMF). When you open a switch to stop current flowing through an inductor, the collapsing magnetic field tries to keep the current moving. It will generate whatever voltage is necessary to force that current across the gap.
The governing equation is:
Let's use real bench values. You have a relay coil with an inductance ($L$) of 50 mH (0.05 Henries). It is drawing a steady state current of 100 mA (0.1 Amps). When your microcontroller switches off the MOSFET controlling it, the current drops from 100 mA to 0 A in just 1 microsecond ($1 \times 10^{-6}$ seconds).
- $di$ (change in current) = 0.1 A
- $dt$ (change in time) = 0.000001 s
- $L$ = 0.05 H
$V = 0.05 \times \left(\frac{0.1}{0.000001}\right) = 0.05 \times 100,000 = \mathbf{5,000 \text{ Volts}}$
You just generated a 5,000V spike on a 12V circuit. As detailed in the All About Circuits inductor textbook, this is exactly why flyback diodes are mandatory. The diode provides a safe, low-resistance path for the collapsing field to dissipate its energy back into the coil, clamping the voltage to a safe ~0.7V above the supply rail.
Where You Meet This in Practice
You don't need to design electromagnets to deal with magnetism. It manifests in almost every major component category:
- Transformers & Power Supplies: Mutual inductance allows AC voltage to step up or down across an isolation barrier. The primary coil creates a changing flux in the iron core, which induces a proportional voltage in the secondary coil.
- Motors & Solenoids: The Lorentz force dictates that a current-carrying wire inside a magnetic field experiences a physical push. In a DC motor, the commutator constantly flips the current direction to keep the rotor spinning. In a solenoid valve, the field simply pulls a steel plunger inward.
- EMI Chokes & Ferrite Beads: High-frequency noise on a DC power rail is essentially a rapidly changing current ($di/dt$). A ferrite bead acts as a frequency-dependent resistor; its magnetic properties absorb high-frequency AC energy and dissipate it as trace amounts of heat, while letting DC pass unimpeded.
- Relays & Contactors: The electromagnetic coil pulls the mechanical contacts closed. The physical air gap between the armature and the core determines the initial inrush current, which drops once the gap closes and reluctance decreases.
Scenario Walkthrough: Frying an ESP32 with a 12V Relay
To understand why magnetic theory matters for digital logic, let's walk through a classic bench failure.
The Setup: A maker is building an automated greenhouse vent. They use an ESP32 DevKit v1. GPIO 25 is wired through a 1kΩ gate resistor to the gate of an IRLZ44N logic-level MOSFET. The MOSFET's drain is connected to the coil of a Songle SRD-12VDC-SL-C relay, and the source goes to ground. The relay switches a 12V water pump. To save board space, the maker omits the flyback diode across the relay coil, assuming the 12V supply is 'low voltage' and safe.
The Numbers: The relay coil draws 75 mA. According to Georgia State University's HyperPhysics engine, a coil of this physical size typically holds about 40 mH of inductance. The IRLZ44N is a fast switch, turning off in roughly 500 nanoseconds ($0.5 \mu s$).
The Outcome: The code runs perfectly for three cycles. On the fourth cycle, when the ESP32 pulls GPIO 25 LOW to close the vent, the ESP32 instantly brownouts and reboots. After the reboot, GPIO 25 permanently reads 0V, regardless of the software state. The microcontroller's internal silicon is fried.
What Went Wrong: When the MOSFET turned off in 500ns, the 40 mH coil generated a massive back-EMF spike: $V = 0.04 \times (0.075 / 0.0000005) = \mathbf{6,000 \text{ Volts}}$. While the bulk of this spike arced across the relay's physical contacts or broke down the MOSFET's drain-source junction, a portion of it capacitively coupled through the MOSFET's Miller capacitance ($C_{gd}$) directly back into the ESP32's GPIO pin. The 3.3V logic gate was hit with a high-frequency transient far exceeding its absolute maximum ratings, punching through the gate oxide and permanently shorting the pin to ground.
Frequently Asked Questions
Q: Does using thicker wire in an electromagnet make it stronger?
A: No. Magnetic field strength is determined by Ampere-turns (current multiplied by the number of loops). Thicker wire simply has lower resistance, which allows you to push more current through it without melting the insulation, or allows you to wind more turns in the same physical space. The copper itself has no magnetic properties.
Q: Why do transformer cores overheat if there is no load on the secondary?
A: Even with an open secondary, the primary coil draws 'magnetizing current' to establish the flux in the core. Because the core is made of conductive iron, the changing magnetic field induces tiny circulating currents inside the metal itself, known as eddy currents. These currents generate $I^2R$ heat. This is why transformer cores are made of thin, insulated laminations rather than a solid block of iron—the insulation breaks the path of the eddy currents.
Q: Can I use a standard rectifier diode (like a 1N4007) for high-frequency PWM motor snubbing?
A: A 1N4007 works fine for a relay that switches a few times a second. But if you are PWM-switching a motor at 20 kHz, the 1N4007's slow reverse recovery time ($\sim 30 \mu s$) means it will conduct backwards and short your supply during part of the cycle. For high-frequency inductive snubbing, use a fast-recovery diode or a Schottky diode (like a 1N5819), which has near-zero reverse recovery time.






