Relays, magnetic force, and stepper motor principle

A relay clicking shut, a printer's stepper motor ticking through a precise turn — both are the same physics wearing different clothes. A coil carries current, that current sets up a magnetic field, and the field pulls on a piece of iron to do mechanical work. This article takes the mmf-and-reluctance ideas from earlier in the unit and asks a very concrete question: how does a magnetic field turn into a push or a turn? Two devices carry the whole story. The relay uses the pull of an electromagnet on a spring-loaded armature to switch a separate, often much larger, circuit — the principle of isolation and amplification behind every automotive horn relay and industrial contactor. The stepper motor uses the same reluctance-minimising alignment, but repeated in sequence across several stator phases, to turn a shaft by exact, countable angles with no feedback sensor at all. Both ride on one qualitative force law, F∝B2AF \propto B^2A, which you will use — not derive — in this course.

The core insight

An energised coil's magnetic field pulls an iron armature (relay) or rotor pole (stepper motor) toward minimum reluctance with a force that scales as F∝B2AF \propto B^2A, and a stepper motor simply repeats this alignment step by step across sequentially excited stator phases to produce a countable rotation.

The core idea

Relay: isolation through an electromagnet. A coil wound on a soft-iron core is fed a small control current. The resulting field pulls a hinged, spring-restrained iron armature across an air gap toward the core; the armature's motion mechanically opens or closes a separate set of contacts, which can carry a far larger current than the coil itself ever sees. Cut the coil current and a return spring pulls the armature back to rest. The design payoff is that a weak control signal — from a microcontroller pin, say — can switch a heavy load (a motor, a heater, mains power) without the two circuits ever touching electrically.

Where the pull comes from. The air gap between armature and core stores magnetic field energy. As the gap narrows, reluctance drops and, for a fixed mmf, the arrangement "prefers" the lower-energy, lower-reluctance state — exactly as a compressed spring prefers to relax. That preference shows up as a mechanical pull on the armature. At this course's level the pull is stated qualitatively as

F∝B2AF \propto B^2 A

where: BB is the flux density in the air gap and AA is the pole face area presented to the gap. Two design facts follow directly. First, force is far more sensitive to flux density than to area — doubling BB roughly quadruples the pull, so relay cores are usually driven close to saturation to squeeze out maximum force for a given size. Second, at fixed BB, a larger pole face gives proportionally more pull. The full expression carries a factor of μ0\mu_0 from field-energy theory, but deriving it is outside this course; you only need the proportionality.

Stepper motor: the same alignment, repeated. A stepper motor has several separately wound stator phases arranged around a rotor. Energising one phase sets up a field in a fixed direction, and the rotor swings to align with it — minimising reluctance, just like the relay armature aligning to the core. Switching excitation to the next phase shifts the field direction by a fixed increment; the rotor follows, advancing by one step angle. Cycling through the phases in sequence therefore produces continuous rotation built from discrete, countable steps, with

θtotal=n×θstep\theta_{total} = n \times \theta_{step}

where: θtotal\theta_{total} is the total angle turned, nn is the number of drive pulses applied, and θstep\theta_{step} is the fixed angle turned per pulse. Because each pulse produces one known step, a controller can track shaft position purely by counting pulses — no separate position sensor is required, which is why stepper motors dominate open-loop positioning in printers, disk drives, and small robotic stages.

Figure
A relay coil pulling an armature across an air gap next to a stepper motor with four stator phases around a rotor advancing by equal step angles
Same principle, two devices: field pulls toward minimum reluctance relay coil armature air gap pull, F ∝ B²A contacts stepper motor rotor ph1 ph2 ph3 ph4 one step, angle theta_step
Derivation AScaling the relay pull force with flux density

A relay's electromagnet has a fixed pole face area of A=2 cm2=2×10−4 m2A = 2\,\text{cm}^2 = 2\times10^{-4}\,\text{m}^2; at the normal operating current the gap flux density is B1=0.8 TB_1 = 0.8\,\text{T}, giving a measured pull of F1=51 NF_1 = 51\,\text{N}, and the goal is to predict the new pull F2F_2 when the coil current is raised so the gap flux density increases to B2=1.2 TB_2 = 1.2\,\text{T} (still comfortably below saturation), using only the qualitative relation F∝B2AF \propto B^2A with AA held fixed throughout.

Step 1. Write the proportionality as a ratio so the unknown constant of proportionality (the one involving μ0\mu_0 that this course does not derive) cancels out entirely. Since AA does not change between the two cases,

F2F1=(B2B1)2\frac{F_2}{F_1} = \left(\frac{B_2}{B_1}\right)^2

Step 2. Substitute the two flux densities and simplify the ratio inside the brackets before squaring, since B2/B1=1.2/0.8=1.5B_2/B_1 = 1.2/0.8 = 1.5 is a clean number that makes the arithmetic easy to check by eye.

F2F1=(1.5)2=2.25\frac{F_2}{F_1} = (1.5)^2 = 2.25

Step 3. Multiply back through by the known force F1=51 NF_1 = 51\,\text{N} to recover the new force in newtons.

F2=2.25×51=114.75 NF_2 = 2.25 \times 51 = 114.75\ \text{N}

A 50% rise in flux density has more than doubled the pull, because force tracks B2B^2 rather than BB. This B2B^2 sensitivity is exactly why practical relay coils are driven close to the core's saturation limit — every extra bit of achievable flux density buys a disproportionate amount of holding force for the same core size.

Worked example

A simple stepper motor has 4 stator phases, and each single-phase energisation step rotates the rotor by a fixed step angle of θstep=1.8∘\theta_{step} = 1.8^\circ. The motor must complete exactly 5 full revolutions. (a) How many step pulses are required? (b) If the driving pulse rate is a constant 200 pulses per second, how long does the motion take?

Step 1. Convert the required rotation into a total angle in degrees, since the step angle is given in degrees and one revolution is 360∘360^\circ: θtotal=5×360∘=1800∘\theta_{total} = 5 \times 360^\circ = 1800^\circ.

Step 2. Divide the total angle by the step angle to get the pulse count, using θtotal=nθstep\theta_{total} = n\theta_{step} rearranged for nn: n=1800∘1.8∘=1000 pulsesn = \dfrac{1800^\circ}{1.8^\circ} = 1000\ \text{pulses}.

Step 3. Divide the pulse count by the pulse rate to get the time taken: t=npulse rate=1000200=5 st = \dfrac{n}{\text{pulse rate}} = \dfrac{1000}{200} = 5\ \text{s}.

The motor needs 1000 pulses and completes the 5 revolutions in 5 seconds. This pulse-counting relationship — a fixed, known angle per pulse — is exactly why stepper motors are chosen for open-loop position control: the driving controller only has to count pulses sent, with no separate shaft encoder needed, provided the motor never "misses" a step under load.

Common traps

  • Assuming relay pull scales linearly with BB — it scales as B2B^2, so a modest rise in flux density produces a much larger rise in force than intuition suggests.
  • Confusing the small coil (control) current that creates the field with the much larger contact (load) current the relay switches — the entire point of a relay is that these two circuits are electrically isolated.
  • Believing a stepper motor needs continuous position feedback like a servo motor — its defining feature is open-loop operation, valid only as long as no steps are lost (lost synchronism under excessive load or speed).
  • Trying to derive the full field-energy formula F=B2A/2μ0F = B^2A/2\mu_0 or detailed stepper drive-sequencing and torque behaviour — both are explicitly out of scope; this course requires only the qualitative relation and the step-counting idea.

Ask the tutor: Curious how the field-energy method actually derives F=B2A/2μ0F = B^2A/2\mu_0, or want a worked comparison of a permanent-magnet versus a variable-reluctance stepper rotor?

Why does a relay coil get driven close to saturation instead of just using a bigger coil current?

Because pull force depends on flux density squared, F∝B2AF \propto B^2A, gains beyond a certain current level become tiny once the iron core nears saturation — flux density stops rising much even as current keeps increasing. Designers instead choose a core size and pole area so that the rated operating current already pushes BB close to that saturation knee, extracting close to the maximum achievable pull for that amount of iron and copper, rather than wastefully over-driving the coil for little extra force.

If a stepper motor has no feedback, what stops it from silently losing position?

Nothing built into the basic open-loop principle stops it — that is the real limitation, not a flaw hidden by clever design. If the load torque or acceleration demanded exceeds what the magnetic pull between stator and rotor can supply for a given step, the rotor can fail to reach the next pole position before the next pulse arrives, a fault called lost synchronism or a missed step. Because the controller has no sensor, it keeps counting pulses as if every step succeeded, and the shaft's true position silently drifts from the assumed one. Precision applications either keep well within the motor's rated torque and speed or add an encoder for closed-loop correction — both are beyond this course's scope.

Is the relation F proportional to B squared A something I need to derive for this course?

No. This first-year treatment asks you to know and apply F∝B2AF \propto B^2A for scaling problems — for example, finding a new force when flux density changes — but explicitly does not require deriving it from field-energy principles. The full result, F=B2A/(2μ0)F = B^2A/(2\mu_0), comes from differentiating the magnetic energy stored in the air gap with respect to gap length, which belongs to a later course. Here, treat the proportionality as a given tool and practise using it in ratio form, as in the worked derivation above.

Before this

Where this leads