Solenoids & Coils
Part of Electrical Theory
How to design, wind, and use electromagnetic coils for actuators, relays, generators, motors, and transformers.
Why This Matters
A coil of wire is the most fundamental electromagnetic component. Wound correctly and energized with current, it becomes an electromagnet, a motor winding, a generator coil, a transformer, a relay, or a solenoid valve. Every electrical machine is built from coils in one form or another.
Understanding coil theory means you can design coils to specification — calculating turns, wire gauge, and core geometry to achieve the inductance, force, or voltage transformation you need. This moves you from winding coils by intuition to winding coils by design, critical when building generators and motors for a rebuilding community.
What Makes a Coil Work
A coil of wire carrying current produces a magnetic field. The field from each turn adds to the fields from all other turns when wound in the same direction, creating a concentrated field along the coil axis. The strength of this field depends on:
- Ampere-turns (AT): N × I — turns times current. Doubling either doubles the field.
- Core permeability: Iron core multiplies the field compared to air by the relative permeability (typically 1,000–10,000).
- Geometry: Long thin coil vs. short fat coil affects field uniformity and leakage.
The solenoid equation: H = N × I / L (in amperes per meter) B = μ₀ × μᵣ × H (in tesla)
Where H is the magnetic field intensity, B is the flux density (what actually exerts force).
Types of Coils and Their Functions
Solenoid actuator: A coil pulls a soft iron core into itself when energized. Used to operate valves, latches, brakes, and mechanical switches. Force is greatest when core is partially inserted (fringe field effect). Force ∝ N² × I² (doubling turns or current quadruples force).
Relay coil: A small current in the coil electromagnet pulls a moveable armature, closing or opening separate, heavier-duty contacts. Allows a weak signal circuit to control a powerful circuit.
Transformer winding: Two coils sharing a common iron core. Voltage ratio equals turns ratio; current ratio is inverse. Primary coil creates AC flux; secondary coil has flux cutting through it, inducing AC voltage.
Motor/generator winding: Coils whose conductors move through magnetic fields (generators) or sit in magnetic fields and carry current to experience force (motors). The rotational arrangement converts between electrical and mechanical energy.
Choke/filter inductor: A coil designed to present high reactance to AC while allowing DC to pass freely. Used in power supply filters.
Winding a Coil: Step-by-Step
Materials needed:
- Magnet wire (enamel-insulated copper wire)
- Core: air, ferrite rod, iron rod, or E/I lamination stack
- Winding form (bobbin or temporary cardboard tube)
- Shellac, varnish, or lacquer for securing
Procedure:
-
Determine core geometry. Measure core cross-section area A and magnetic path length l (the distance the flux travels through the core material).
-
Calculate required turns for target inductance L: N = √(L × l / (μ₀ × μᵣ × A))
Example: L = 1H, iron core μᵣ = 2000, A = 4cm² = 0.0004m², l = 20cm = 0.2m N = √(1 × 0.2 / (4π×10⁻⁷ × 2000 × 0.0004)) = √(0.2 / 0.001) = √200 ≈ 14 turns
Iron cores concentrate flux so effectively that very few turns achieve large inductance.
-
Choose wire gauge. Wire must carry the design current without overheating. Use the current capacity tables; give extra margin for enclosed coil winding (can’t radiate heat as well as open wire).
-
Wind the first layer tightly and evenly, each turn adjacent to the last, in one direction. This is critical for uniform inductance and avoids capacitance between distant turns.
-
Insulate between layers if winding multiple layers. Tissue paper, baking parchment, or shellac between layers prevents shorts.
-
Wind subsequent layers in the same direction as first, starting from where the previous layer ended. Continue until all turns are wound.
-
Secure the coil with shellac, varnish, or cloth tape. For iron-core coils, the bobbin is then installed on the core.
-
Test inductance using the resonance method (see below).
Calculating Coil Parameters
For air-core solenoid: L = μ₀ × N² × A / l
A = cross-section area in m², l = coil length in m
Example: 100 turns, air core, 3cm² area, 5cm long: L = (4π×10⁻⁷) × 100² × 0.0003 / 0.05 L = (4π×10⁻⁷) × 10000 × 0.006 L = 75.4 × 10⁻⁶ H = 75 μH
Wire length needed: Total wire length = N × (circumference of one turn) Circumference = 2π × (core radius + half the winding depth) For a rough estimate: L_wire ≈ N × 2π × r_average
Account for lead lengths, add 20% safety margin. Weigh a sample of wire per meter to calculate how much a given mass of wire provides.
Wire resistance: R = ρ × L_wire / A_wire For copper: ρ = 1.72×10⁻⁸ Ω·m
This resistance determines heating and affects efficiency. Larger wire = lower resistance = less heat, but more space, fewer turns for same winding area.
Relay Construction
A relay is an electromagnetic switch. To build one:
Components:
- Coil: wound on a ferromagnetic core (iron bolt, nail, or lamination stack)
- Armature: a thin steel spring or flat bar, pivoted at one end
- Contacts: copper or brass strips that make/break contact when armature moves
- Return spring: ensures armature returns to rest position when coil de-energized
Design considerations:
- Coil ampere-turns must produce enough force to pull armature against spring tension
- Typical relay: 200–1000 AT (e.g., 500 turns at 0.5A = 250 AT, or 200 turns at 1A = 200 AT)
- Armature gap must be small enough for the field to exert adequate force at working distance
- Contact gap must be large enough to prevent arcing when contacts open under load
Protection from back-EMF: Place a diode across the coil (for DC relays) to prevent the voltage spike at switch-off from damaging the driving transistor or creating arcs.
Solenoid Valve Construction
A solenoid valve uses electromagnetic force to hold a valve open or closed against fluid pressure. Key considerations:
Hold vs. pull force: The pull force (air gap large) is much less than the hold force (core nearly seated). Design for sufficient pull force at maximum gap. Increasing turns and current helps; reducing spring tension allows weaker coils to operate.
Pressure-force balance: Hydraulic force trying to open valve = P × A_valve (pressure times valve seat area) Magnetic force closing valve = (μ₀ × N² × I² × A_core) / (2 × g²) approximately
Where g = air gap. As gap closes, force increases — beneficial for self-latching.
Testing and Measuring Coils
DC resistance test: Connect ohmmeter. Should read wire resistance (relatively low). Very high resistance = open circuit (broken wire). Zero = short circuit.
Inductance by resonance:
- Connect coil in parallel with a known capacitor C
- Connect to an AC signal source with variable frequency
- Sweep frequency and find resonant peak (voltage maximum)
- At resonance: f = 1/(2π×√(L×C))
- Solve for L: L = 1/(4π²×f²×C)
Example: Resonance at 1000 Hz with C = 10μF: L = 1/(4π²×1000²×0.00001) = 2.53 mH
Continuity test with battery and lamp: Coil in series with lamp and battery. Lamp glows → coil has continuity. Varies in brightness → shorted turns reducing inductance (the lamp in a motor or transformer context may glow brighter with shorted turns — a fault indicator).
Mastering coil winding and design enables you to build every electromagnetic machine needed for a functioning electrified community — from simple relays controlling water pumps to large generators producing kilowatts of power.