Magnetism is a fundamental physical force generated by moving electrical charges that exerts an attractive or repulsive pull on magnetic materials and other moving charges. In electrical and electronics engineering, we don't just care about permanent magnets sticking to steel; we care about how this force stores energy in coils, opposes changes in current, and violently releases that energy when a circuit opens. Understanding how magnetic fields interact with conductors is the dividing line between a circuit that works on the bench and one that survives in the field.

What Magnetism Changes in a Real Circuit

When direct current flows through a straight wire, it generates a circular magnetic field around the conductor. When you wind that wire into a coil, the individual magnetic fields combine and concentrate into a single, powerful axial field. This is the basis of inductance. According to All About Circuits, inductance is the property of an electrical conductor by which a change in current through it induces an electromotive force (EMF) in both the conductor itself and in any nearby conductors.

The Flywheel Analogy
Think of an inductor as a mechanical flywheel in a drivetrain: it takes heavy torque to get it spinning (current building up against the magnetic field), but once it is moving, it violently resists being stopped (inductive kickback when the circuit opens).

What it changes in your installation: Magnetism forces the circuit to resist any change in current. If you try to ramp current up, the magnetic field expands and absorbs energy, slowing the rise. If you try to interrupt the current instantly, the collapsing magnetic field dumps its stored energy back into the circuit as a massive voltage spike (back-EMF) to force the current to keep flowing. This is why opening a switch on an inductive load causes arcing, and why switching it with a semiconductor can instantly destroy the silicon junction.

What people commonly confuse it with: Hobbyists frequently confuse magnetism (inductance) with electrostatic fields (capacitance). Capacitance stores energy in an electric field between two insulated plates and resists changes in voltage. Inductance stores energy in a magnetic field around a coil and resists changes in current. Mixing these up leads to fundamentally flawed snubber and filter designs.

The Math: A Worked Numeric Example of Inductive Kickback

To see why magnetism is a destructive force if ignored, we need to calculate the voltage spike generated when a magnetic field collapses. The formula for inductive kickback voltage is:

V = L × (di / dt)

Where L is inductance in Henrys, di is the change in current, and dt is the time it takes for the current to change.

The Scenario: You are driving a standard 12V DC automotive relay using a microcontroller and an IRF520 MOSFET. The relay coil has an inductance (L) of 50 mH (0.05 H). At steady state, it draws 100 mA (0.1 A) of current.

  • Case A: Mechanical Switch (Slow)
    If a human flips a mechanical toggle switch, the contacts might take 1 millisecond (0.001 s) to fully separate and extinguish the arc.
    V = 0.05 × (0.1 / 0.001) = 5V
    The total voltage across the switch is the 12V supply plus the 5V spike, totaling 17V. This is entirely harmless.
  • Case B: MOSFET Switching (Fast)
    If your microcontroller sends a PWM signal that turns off the MOSFET in 1 microsecond (0.000001 s), the magnetic field collapses almost instantly.
    V = 0.05 × (0.1 / 0.000001) = 5,000V
    The total voltage across the MOSFET's drain and source is now 5,012V. The IRF520 has a maximum drain-source breakdown voltage (Vdss) of just 100V. The 5,000V spike will instantly punch through the silicon, permanently shorting the MOSFET and potentially frying your microcontroller's GPIO pin via ground bounce.
Bench Tip: This is exactly why Fluke's engineering guides emphasize that measuring inductance with an LCR meter is just as critical as measuring resistance when troubleshooting motor drives and relay boards.

Where You Meet This in Practice

You will encounter the practical effects of magnetism in almost every power and control system you build. The most common benchmarks include:

  1. Relays and Contactors: The coils are pure inductors. Without a flyback diode, the contactor's own mechanical switch will arc heavily, degrading the contacts over time, or the driving transistor will fail.
  2. Solenoids and Valves: Industrial 24V pneumatic solenoids store significant magnetic energy. When de-energized, they require robust TVS (Transient Voltage Suppression) diodes or RC snubbers to protect the PLC output cards.
  3. Switch-Mode Power Supplies (SMPS): Buck, boost, and flyback converters rely entirely on magnetism. They deliberately store energy in an inductor's magnetic field during the 'on' cycle and transfer it to the output capacitor during the 'off' cycle.
  4. Electric Motors: Brushed DC, BLDC, and stepper motors are essentially giant, rotating inductors. The wiring harness between a motor driver (like a DRV8825 or ODrive) and the motor acts as a secondary inductor, compounding the back-EMF.

Decision Path: Selecting Flyback Protection and Core Materials

When magnetism is a problem, you must provide a safe path for the collapsing field's energy to dissipate. Use this decision tree to select the exact protection component for your inductive load.

Application Scenario Switching Speed / Frequency Protection Requirement Concrete Part Pick
Slow mechanical relay or low-frequency contactor (<10 Hz) Slow (Milliseconds) Standard rectifier diode. Speed is irrelevant; high surge current handling is key. 1N4007 (1A, 1000V)
High-frequency PWM motor control or audio solenoid (>20 kHz) Fast (Microseconds) Ultra-fast recovery diode. Standard diodes stay 'on' too long and short out the PWM signal. UF4007 (1A, 1000V, 50ns trr)
High-current industrial solenoid with sensitive PLC outputs Fast / High Energy Clamp the voltage to a specific threshold rather than dropping it to 0.7V. Prevents slow release times. 1.5KE15A TVS Diode + 100Ω/100nF RC Snubber
Switch-mode power supply (Buck/Boost) high-frequency switching node Extremely Fast (Nanoseconds) Schottky diode for near-zero reverse recovery time and low forward voltage drop. SS34 or MBR2045CT (Schottky)
The Default Recommendation:
If you are switching any inductive load with a semiconductor (MOSFET, BJT, or microcontroller GPIO) and you do not have the exact transient profile calculated, default to an UF4007 ultra-fast diode placed in reverse bias across the coil (cathode to positive, anode to negative). It handles 1A continuous, blocks 1000V, and its 50ns reverse recovery time ensures it won't slow down your PWM switching or cause shoot-through in H-bridge motor drivers like a standard 1N4007 would.

Frequently Asked Questions

Q: Is magnetic field strength (H) the same as magnetic flux density (B)?
A: No. Magnetic field strength (H, measured in Amperes per meter) is the magnetizing force you apply via current. Magnetic flux density (B, measured in Tesla) is the actual magnetic field that results in the core material. The relationship is B = μ × H, where μ is the permeability of the core. This is why adding a ferrite core to an air-wound coil massively increases its inductance; you are increasing μ.

Q: Why does my ferrite core inductor get hot even with low DC resistance wire?
A: You are likely experiencing core saturation or hysteresis loss. If you push too much DC current through an inductor, the magnetic domains in the ferrite align completely (saturation). Once saturated, the core acts like air, inductance plummets, and current spikes. Additionally, in AC or switching circuits, the constant reversal of the magnetic field causes friction at the molecular level (hysteresis), generating heat. For high-current DC applications, switch from standard ferrite to an iron-powder core (like Micrometals -26 material), which features a distributed air gap that resists saturation.

Q: Does a flyback diode slow down my relay's release time?
A: Yes, significantly. A standard flyback diode clamps the coil voltage to roughly 0.7V, allowing the magnetic field to decay slowly. This keeps the relay armature pulled in longer, which can cause contact welding in high-current AC switching. If you need fast release times, place a Zener diode (e.g., a 15V BZX55C15) in series with the flyback diode. This forces the collapsing magnetic field to dissipate its energy at 15V rather than 0.7V, dropping the current to zero much faster while still protecting your driving transistor.