Magnetism is the physical force mediated by magnetic fields that causes certain materials to attract or repel, generated fundamentally by the motion of electric charges. In a real circuit or installation, magnetism is the invisible architect that dictates inductance, governs transformer coupling, generates motor torque, and causes the destructive voltage spikes (flyback) that fry your MOSFETs. The most common mistake hobbyists make is confusing magnetic field strength (the effort you put in via current) with magnetic flux density (the actual result you get in the core), or assuming static electricity and static magnetism behave by the same rules.
The Core Physics: Field Strength vs. Flux Density
To build reliable inductors, motors, or relays, you have to separate the cause from the effect. According to the All About Circuits DC textbook, these are represented by two distinct variables:
- Magnetic Field Strength (H): Measured in Amperes per meter (A/m). This is your input. It is determined strictly by the current flowing through your wire and the number of turns in your coil. It doesn't care what material is inside the coil.
- Magnetic Flux Density (B): Measured in Tesla (T) or Gauss. This is your output. It represents the actual concentration of magnetic field lines in a given area. 1 Tesla = 10,000 Gauss.
The bridge between H and B is the material's permeability ($\mu$). In a vacuum, this relationship is perfectly linear, governed by the permeability of free space ($\mu_0$). While the 2019 SI redefinition shifted $\mu_0$ from an exact defined constant to an empirically measured value (roughly $1.2566 \times 10^{-6}$ T·m/A per NIST CODATA), for 99% of bench work, the classic approximation holds perfectly.
Worked Numeric Example: Sizing an Actuator Coil
Let’s calculate the theoretical magnetic flux density ($B$) inside a DIY solenoid actuator meant to pull a heavy contactor. We will use the standard linear formula: $B = \mu_0 \cdot \mu_r \cdot (N / l) \cdot I$.
- Core Material: Mild steel bolt, relative permeability ($\mu_r$) = 2,000.
- Dimensions: Magnetic path length ($l$) = 0.1 m (10 cm).
- Windings: $N$ = 400 turns of 24 AWG magnet wire.
- Current ($I$): 0.75 A from a bench power supply.
First, find the turn density ($n = N/l$): $400 / 0.1 = 4,000$ turns/m.
Now, plug in the values:
$B = (1.2566 \times 10^{-6}) \times 2000 \times 4000 \times 0.75$
$B = 7.54 \text{ Tesla}$
If you look at a standard B-H magnetization curve for mild steel, you will immediately spot the flaw in this linear math. Mild steel physically saturates at roughly 1.6 to 1.8 Tesla. It is physically impossible to push 7.54 T through that bolt. This discrepancy between linear math and physical reality is where most DIY electromagnets fail.
Where You Meet Magnetism in Practice
You don't just meet magnetism in intentional components like motors; it shows up as a parasitic effect that can ruin a design if ignored.
- Inductive Kickback (Flyback): When you cut power to a relay coil, the collapsing magnetic field induces a massive reverse voltage spike ($V = -L \cdot di/dt$). Without a flyback diode, this spike will punch through the depletion region of your driving transistor, destroying it instantly.
- Transformer Inrush Current: When you first switch on a toroidal transformer, if the AC cycle hits at the zero-crossing, the core can momentarily saturate. The primary winding loses its inductive reactance, acting like a dead short and drawing massive current, which frequently blows fast-acting fuses.
- PCB Trace Crosstalk: High-frequency digital signals (like SPI or I2C clock lines) generate rapidly changing magnetic fields. If a sensitive analog trace runs parallel and close to it, mutual inductance will couple noise directly into your ADC readings.
Real-World Scenario Walkthrough: The Melted Relay Coil
The Setup: A builder is winding the 400-turn coil on the 10cm mild steel bolt (from our math example above) to create a custom heavy-duty relay. They power it with 0.75A from a bench supply, expecting a massive pulling force based on the 7.54 T calculation.
The Numbers: 24 AWG copper wire has a resistance of about 25.7 ohms per 1,000 feet. 400 turns on a 10cm bolt (assuming a 1cm diameter) uses roughly 12.5 meters (41 feet) of wire. Total resistance is roughly 1 ohm. At 0.75A, the coil is dissipating $I^2R = (0.75)^2 \times 1 = 0.56$ Watts of heat. This seems perfectly safe.
The Outcome: The bolt pulls the contactor arm successfully. However, after 4 minutes of continuous duty, the enamel insulation on the magnet wire blisters, melts, and shorts out. The bench power supply trips its over-current protection.
What Went Wrong: Magnetic saturation. Think of the core's magnetic domains like a 4-lane highway. Sending 100 cars (current) doesn't mean 100 cars reach the destination per minute if the bottleneck only allows 50. The extra cars just idle and burn fuel. The steel core saturated at ~1.6 Tesla. The remaining current didn't create more magnetism; it just generated excess $I^2R$ heat because the builder used wire that was too thin and pushed too much current to chase a theoretical number that the material couldn't support. The fix: Use a larger cross-section core (like a laminated silicon steel E-core) to increase the saturation threshold, or drop the current and increase the turns using thinner wire to maintain the Ampere-turns while reducing thermal mass issues.
Common Confusions on the Workbench
Confusion 1: Electric vs. Magnetic Shielding. Many beginners try to shield a sensitive circuit from a nearby power transformer by wrapping it in copper foil. Copper is an excellent electric shield (Faraday cage), but it is virtually transparent to low-frequency magnetic fields. To block 50/60Hz magnetic flux, you need a high-permeability material like Mu-metal or thick steel to provide a low-reluctance path that diverts the field lines around your circuit.
Confusion 2: Static Charge vs. Static Magnetism. A static electric charge sits on a surface and creates an electric field. A static magnet has no 'magnetic charge' (monopoles don't exist); its field is the result of aligned electron spins and orbital motions. You cannot 'ground' a magnet to drain its field the way you ground a capacitor to drain its charge.
FAQ: Magnetism in DIY Electronics
Can I use a neodymium magnet to wipe my EEPROM or flash memory?
No. Modern solid-state memory (EEPROM, Flash, SRAM) stores data as trapped electrical charges in floating gates, not as magnetic domains. You would need a magnetic field strong enough to physically shatter the silicon die (well over 10+ Tesla at close range) to cause damage. Old spinning hard drives (HDDs), however, use magnetic platters and can be corrupted by strong neodymium magnets.
Why does my multimeter read near 0 ohms across a large transformer primary?
A multimeter measures DC resistance. A large transformer primary is made of very thick copper wire with only a few hundred turns, resulting in a DC resistance of less than 1 ohm. Its current-limiting property comes from inductive reactance ($X_L = 2\pi f L$), which only exists when AC voltage is applied and the magnetic field is actively expanding and collapsing.
Does the direction I wind a coil matter?
For a simple inductor or resistor-wound heater, no. But for transformers, motors, and coupled inductors, the winding direction (clockwise vs. counter-clockwise) dictates the phase relationship of the magnetic flux. If you wind a transformer secondary in the opposite direction of the primary without adjusting your circuit, the output voltage will be 180 degrees out of phase, which will destroy push-pull or bridge rectifier circuits.






