Electromagnetism

The relay that lets go at a sixth of the current that closed it

Turn up the current in a relay's coil and nothing happens until, at one particular value, the armature snaps shut. Turn it down again and the relay does not open at that value: it holds, through a sixth of the current that closed it, and then snaps open all at once. Nothing in the iron is remembering anything. The pull of an electromagnet grows as one over the square of the gap it pulls across, and a spring's push hardly changes, so the closed relay is a different machine from the open one — which is also why a thin brass shim has to stop the iron from touching, why the coil's current dips at the instant of closing, and why an alternating-current relay needs a copper ring to stop it buzzing.

Assumes: The force read off a surface that touches nothing · The circuit that fights its own change

The data sheet of an ordinary 12-volt relay gives two voltages that look as if they should be the same. The must-operate voltage, typically about nine volts, is the coil voltage above which the relay is guaranteed to close. The must-release voltage, typically one or two volts, is the voltage below which it is guaranteed to open. Between them, from two volts to nine, the relay is guaranteed to do nothing at all: if it was open it stays open, and if it was closed it stays closed.

A gap of that size, a factor of five or six between the current that closes a relay and the current that lets it go, is easily taken for a property of the iron — the core staying magnetised once it has been magnetised, the way a paper clip stroked with a magnet becomes one. That is not what produces it. A relay with perfectly soft iron, which remembered nothing at all, would behave the same way, because the force between an electromagnet and the piece of iron it pulls depends on the distance between them in a way that makes the closed relay a different machine from the open one.

The pull of a gap

A relay’s coil is wound on an iron core, and the core is part of an almost closed loop of iron — the core, a bent frame called the yoke, and the hinged armature, a flap of iron that the coil pulls towards the core’s end. The only break in the loop is the air gap between the armature and the core. Current in the coil drives a magnetic flux round the loop — Ampère’s law, which the field that wraps a current wrote as the circulation of the field round any loop equalling the current threading it, here NN turns of it — and the loop behaves like a circuit: the coil’s ampere-turns NINI are the driving force, and the opposition is a reluctance, proportional to each part’s length divided by its permeability. Iron’s permeability is thousands of times that of air, so in a loop of four centimetres of iron and half a millimetre of air the air gap is almost all of the reluctance. The field across it is close to

B=μ0NIg+l/μr,B = \frac{\mu_0 N I}{g + l/\mu_r},

where gg is the gap, ll the length of the iron path and μr\mu_r its relative permeability; for the model relay here, l/μrl/\mu_r is twenty micrometres, the equivalent in air of the whole iron path.

The pull on the armature follows from the field in the gap alone. The force read off a surface that touches nothing found that Maxwell’s stress tensor gives the force on a body from the field on any surface around it, and that across an air gap the field pulls the two faces together with a pressure B2/2μ0B^2/2\mu_0 — at one tesla, four atmospheres. Over a pole face of area AA,

F=B2A2μ0=μ0A(NI)22 (g+l/μr)2.F = \frac{B^2 A}{2\mu_0} = \frac{\mu_0 A (NI)^2}{2\,(g + l/\mu_r)^2}.

At a fixed current, the force grows as one over the square of the gap, plus a small correction from the iron.

The magnet's pull grows as the gap closes, the spring's barely does. The pull of a small relay's electromagnet on its armature against the air gap, B²A/2μ0 with B = μ0NI/(g + l/μr), at the coil's working current of 30 mA, at the pull-in current and at the drop-out current, against the return spring. The pull rises as one over the gap squared: once the current lifts the spring's preload at full gap, 24.0 mA, nothing stops the armature until it hits its stop, where the same current pulls 17 N against a spring of 0.48 N. Shut, it holds until the current falls to 4.1 mA.
Fig. 1 The pull of a small relay’s electromagnet on its armature against the air gap, at the coil’s working current of 30 mA, at the pull-in current and at the drop-out current, against the return spring, on a logarithmic force axis. The pull rises as one over the gap squared: once the current lifts the spring’s preload at full gap, 24.0 mA, nothing stops the armature until it hits its stop, where the same current pulls 17 N against a spring of 0.48 N. Shut, it holds until the current falls to 4.1 mA.

Against that the armature has a return spring. A spring’s force changes linearly with how far it is compressed, and a relay’s spring is set with a preload, so that it pushes with 0.3 newtons when the armature is fully open and 0.48 newtons when it is fully closed, 0.45 millimetres further on. The spring barely cares where the armature is. The magnet cares enormously: between the open position, half a millimetre, and the closed position, where a thin shim stops the armature at fifty micrometres, the factor 1/(g+l/μr)21/(g + l/\mu_r)^2 grows by a factor of fifty-five.

Snap shut, hold on

Suppose the current is raised slowly from zero. At first the magnet’s pull at full gap is less than the spring’s preload, and the armature does not move. At 24.0 milliamps, for this relay, the pull reaches 0.3 newtons and the armature starts to move. The moment it moves, the gap shrinks, and the pull at the same current grows far faster than the spring’s push. There is no position partway across where the two balance; the force difference grows as the armature goes, and it crosses the gap in a few milliseconds and lands on its stop with seventeen newtons pressing it there.

A relay closes at one current and opens at a sixth of it. The armature's air gap against coil current for a small 12 V relay, with the current raised slowly and then lowered. Rising, nothing happens until 24.0 mA, when the armature snaps across 0.45 mm; falling, it stays shut until 4.1 mA, 17 per cent of the closing current, and then snaps open. Between the two the relay is in whichever state it was last put in. The magnetic circuit has no memory of its own here — the iron is taken as perfectly soft — and the hysteresis comes entirely from the force growing as one over the gap squared.
Fig. 2 The armature’s air gap against coil current for a small 12 V relay, with the current raised slowly and then lowered. Rising, nothing happens until 24.0 mA, when the armature snaps across 0.45 mm; falling, it stays shut until 4.1 mA, 17 per cent of the closing current, and then snaps open. Between the two the relay is in whichever state it was last put in. The iron is taken as perfectly soft; the hysteresis comes entirely from the force growing as one over the gap squared.

Now lower the current. The armature is shut, at a gap of fifty micrometres plus the twenty of the iron, and at that gap the magnet needs only enough current to beat 0.48 newtons. That happens at 4.1 milliamps. Above it the relay stays shut; at it, the armature leaves the stop, the gap opens, the pull falls faster than the spring’s push, and the armature snaps back across in turn. The drop-out current is the pull-in current multiplied by the ratio of the two gaps, seven to fifty-two, and by the square root of the ratio of the two spring forces:

IdropIpull=g0+l/μrgmax+l/μr Fs(g0)Fs(gmax)=0.17.\frac{I_\text{drop}}{I_\text{pull}} = \frac{g_0 + l/\mu_r}{g_\text{max} + l/\mu_r}\,\sqrt{\frac{F_s(g_0)}{F_s(g_\text{max})}} = 0.17.

That is the hysteresis loop of the picture, and it belongs to a very general class: a system whose restoring force is weaker than its driving force over the whole range, so that it has only two stable states and jumps between them. The curve that is really a staircase met the same structure at a much smaller scale, in the domain walls of a ferromagnet jumping from one pinning site to the next, and the magnet that reverses where its crystal is weakest met it in the reversal of a single grain. The relay’s version is the plainest of all, because the two forces can be written down and drawn on one page.

The loop is the point of the device. A relay with no hysteresis would chatter whenever its coil current was close to the threshold, opening and closing with every wobble of the supply, and its contacts, which arc a little each time they part, would wear out in hours. Because the thresholds are far apart, a relay driven by a slowly drifting signal changes state once and decisively. Thermostats built from bimetal strips use a magnet for the same reason, so that the contacts snap rather than creep, and the detent in a light switch is a mechanical spring doing the same job.

A bit of memory made of iron

A device with two stable states and a band of inputs in which it keeps whichever state it last had is a memory, and for half a century relays were the memory of the telephone network and of the first programmable computers. A relay can be made to hold itself: one of its own contacts, wired in parallel with the switch that energised it, keeps the coil supplied after the switch is released, and the relay stays closed until something breaks the holding circuit. That self-holding circuit is the electrical form of the loop in the second picture, and the automatic telephone exchanges of the twentieth century stored every dialled digit in banks of relays held this way. Konrad Zuse’s Z3 of 1941, the first working programmable computer, used about 2,600 relays, and the Harvard computer of 1944 that IBM built several thousand more, each one a bit.

The hysteresis is what made them reliable as memories. A relay held on its holding current does not care whether the supply droops by a third, because the closed relay needs a sixth of its pull-in current; noise on a line would have to drive the current below that before the bit was lost. The same margin is what a modern digital circuit gets from its transistors’ gain, and the Schmitt trigger, an electronic circuit built to have two thresholds a fixed distance apart, is a deliberate copy of the relay’s two currents.

Some relays go further and keep their state with no current at all. A latching relay puts a small permanent magnet in the magnetic circuit, sized so that its field alone can hold the armature shut across the small residual gap but cannot pull it shut across the large open one — the same 1/g21/g^2 asymmetry, now with a magnet supplying the ampere-turns. A pulse of current one way closes it, a pulse the other way cancels the magnet’s field and lets the spring open it, and in between it draws nothing. The magnet that has to fight its own field found that a permanent magnet’s working point depends on the gap it faces; a latching relay uses that dependence as its whole design, and electricity meters and battery-powered controllers use latching relays because a relay that holds without current costs nothing to leave on.

The shim that keeps iron from touching

Iron is not perfectly soft. A piece of ordinary electrical steel, magnetised and then released, keeps a remanent magnetisation, and a closed loop of it with no gap would keep nearly all of that — about a tesla in a typical steel. Nothing keeps a magnetisation for ever followed the same remanence in a permanent magnet, where it is the whole point. In a relay it is a hazard. If the armature closed iron on iron, the remanent field could hold it shut with no current at all, and the relay would stick.

What saves it is the gap. A remanent field in the iron has to return through the air gap, and the gap opposes it: the field in the gap, times its width, must be balanced by a reversed field in the iron, times the iron’s length. Soft iron cannot sustain a reversed field larger than its coercivity, the field at which its magnetisation gives way — about sixty amperes per metre for a soft core — so the remanent field is capped at about μ0Hcl/g\mu_0 H_c l / g, which falls as the gap opens.

Without a shim, the iron's memory would hold the armature shut. The pull that remains on a shut armature after the coil is switched off, from the iron's remanent magnetism, against the residual gap that a non-magnetic shim leaves, beside the spring force trying to open it. A gap g caps the remanent field at about μ0·Hc·l/g for soft iron of coercivity 60 A/m and a 40 mm path, so the pull falls as 1/g². Below about 0.014 mm the remanent pull beats the spring and the relay would stay shut with no current at all; the 0.05 mm shim leaves 0.036 N against 0.48. The same shim sets the drop-out current, which rises almost in proportion to it.
Fig. 3 The pull that remains on a shut armature after the coil is switched off, from the iron’s remanent magnetism, against the residual gap that a non-magnetic shim leaves, beside the spring force trying to open it, on logarithmic axes. A gap caps the remanent field at about μ0Hcl/g\mu_0 H_c l/g for soft iron of coercivity 60 A/m and a 40 mm path, so the pull falls as 1/g21/g^2. Below about 0.014 mm the remanent pull beats the spring and the relay would stay shut with no current at all; the 0.05 mm shim leaves 0.036 N against 0.48.

So every relay and contactor carries a residual gap that the armature cannot close: a thin brass shim on the pole face, a pip of non-magnetic metal, or a stop that holds the armature a fraction of a millimetre clear of the core. In the model relay the remanent pull would beat the spring below about fourteen micrometres; the fifty-micrometre shim leaves a remanent pull of 0.036 newtons against the spring’s 0.48, a thirteen-fold margin. Old telephone relays carried an adjustable residual screw for exactly this purpose, and a relay that sticks after years of service has usually worn its shim thin.

The shim sets more than the release. The drop-out current is proportional to the residual gap, so a thicker shim makes the relay release at a higher current, narrowing its hysteresis; a thinner one makes it hold to lower currents and risks sticking. The designer is choosing where on that curve to sit, and a relay that must release quickly when its coil is switched off — before the coil’s own stored energy has decayed — gets a thicker shim.

The current that dips

The same physics shows in the coil’s current. A coil’s inductance is the flux linkage per ampere, and with a magnetic circuit it is L=μ0N2A/(g+l/μr)L = \mu_0 N^2 A/(g + l/\mu_r): the gap that sets the force also sets the inductance. In the model relay it is 0.54 henries with the armature open and four henries with it shut. The coil is an inductance that changes by a factor of seven when the armature moves.

The current dips at the instant the armature arrives. The coil current of the model 12 V relay after the voltage is switched on, with the armature's gap dashed. With the gap open the coil's inductance is 0.54 H and the current rises with a time constant of 1.4 ms; the armature lifts at 24.0 mA, the current peaks at 27.0 mA as it gathers speed, the inductance climbs towards 4.0 H, and the back-voltage of a growing flux linkage drives the current down to 6.1 mA at the moment it lands, 6.4 ms in. The current then climbs again over tens of milliseconds to its final 30 mA. The dip is how a controller can tell that a valve or relay has actually moved.
Fig. 4 The coil current of the model 12 V relay after the voltage is switched on, with the armature’s gap dashed. With the gap open the coil’s inductance is 0.54 H and the current rises with a time constant of 1.4 ms; the armature lifts at 24.0 mA, the current peaks at 27 mA as it gathers speed, and the back-voltage of a growing flux linkage drives the current down to 6.1 mA at the moment it lands, 6.4 ms in. The current then climbs again over tens of milliseconds to its final 30 mA.

When twelve volts are applied, the current rises as in any inductor, with a time constant L/RL/R of 1.4 milliseconds. It passes the pull-in current, and the armature starts across. As the gap closes the flux linkage LILI tries to grow, and by Faraday’s law that growth demands a voltage; the circuit that fights its own change found the coil opposing any change in its own flux, and here the change is driven by motion rather than by the supply. The opposing voltage takes so much of the twelve volts that the current falls — from 27 milliamps to six, at the instant the armature lands — and then, with the armature still, climbs again towards its final thirty milliamps on the closed coil’s longer time constant of ten milliseconds.

The dip is not a curiosity. It is the signature that industrial controllers use to tell whether a solenoid valve has actually moved, without any sensor on the valve: a stuck valve’s current rises smoothly, a working one’s dips, and the time of the dip gives the time of travel. Fuel injectors in engines are monitored the same way, because injection timing to a tenth of a millisecond matters and the dip gives the moment of opening directly. The energy that went into the armature’s motion and into the closed circuit’s larger stored field came from the supply during the dip, when the coil was taking more voltage than its resistance needed.

The large margin of the closed relay has another use. Once shut, the armature needs only 4.1 milliamps to stay shut and is carrying thirty, so the coil is dissipating fifty times more power than holding requires. Drivers for contactors and large solenoid valves exploit it with a “hit and hold” scheme: full current for a few tens of milliseconds to close, then a holding current of a third or less, set by switching the coil on and off rapidly. Since heat goes as current squared, a third of the current is a ninth of the heat, and coils that would otherwise run hot all day run cool.

On alternating current the pull vanishes

A relay meant for alternating current has a further problem, and it comes from the same square. The force goes as B2B^2, and on mains current the field passes through zero twice in every cycle. At those instants the magnet is not pulling at all, and the spring, which never stops pushing, starts the armature away from its seat.

On alternating current the pull falls to nothing a hundred times a second. The pull on an AC relay's armature over one cycle of 50 Hz mains, as a fraction of its mean. The force goes as the square of the flux, so with a plain pole it falls to zero every 10 ms and the spring pushes the armature off its seat a hundred times a second — the buzz of a faulty contactor. A copper shading ring round half the pole carries an induced current that delays that half's flux, here by 60°, and the two halves' pulls then never vanish together: the total never falls below 0.50 of the mean, above a spring set at 0.4.
Fig. 5 The pull on an AC relay’s armature over one cycle of 50 Hz mains, as a fraction of its mean. The force goes as the square of the flux, so with a plain pole it falls to zero every 10 ms and the spring pushes the armature off its seat a hundred times a second. A copper shading ring round half the pole carries an induced current that delays that half’s flux, here by 60°, and the two halves’ pulls then never vanish together: the total never falls below 0.50 of the mean, above a spring set at 0.4.

The armature then rattles on its stop a hundred times a second on fifty-hertz mains, the buzz of a failing contactor, and the contacts it carries open and close in sympathy. The hum at twice the mains found the same doubling in a transformer, whose laminations are squeezed by the same B2B^2 stress a hundred times a second; in a contactor the squeeze is not merely audible but undoes the contact.

The cure is a single turn of copper, the shading ring, set into a slot in the pole face so that it encircles part of the pole. The changing flux in that part induces a current in the ring, and by Lenz’s law the current opposes the change, so the flux through the shaded part lags the flux through the rest. It is the same induced current that the ring that jumps because its current is late found throwing an aluminium ring off the end of a coil; here the lateness is the point, and the ring is held in place. With two parts of the pole whose fluxes are out of step, their pulls reach zero at different instants. With half the pole shaded and a sixty-degree lag, the total pull never falls below half its mean, and if that minimum stays above the spring the armature never leaves its seat. Equal pulls exactly a quarter-cycle apart would give a perfectly steady force — the square of a sine plus the square of a cosine — but a single shorted turn cannot produce a full ninety-degree lag, so real designs settle for what their ring and pole proportions allow.

A broken shading ring is the commonest cause of a contactor that suddenly starts buzzing loudly; the relay still closes, because the mean pull is unchanged, but it no longer holds still.

What the model leaves out

The magnetic circuit used here has no leakage and no fringing: all the flux crosses the gap, and it crosses it straight. A real gap has flux bulging out round its edges, which makes the effective area larger at large gaps, softening the 1/g21/g^2 law when the armature is open, and a real coil has leakage flux that never reaches the armature at all. Both make the force at full gap smaller than the formula, and real relays’ pull-in currents are correspondingly higher. The iron is taken as unsaturated, which in the closed relay at full current is marginal: the model’s gap field there is about 1.6 tesla, close to where silicon steel saturates, and a real relay’s closed force would level off rather than continuing to rise.

The armature is a mass on a single spring, with no contact springs, no bounce and no friction in its hinge. Real relays have contact springs that engage part-way through the travel and make the spring force a broken line rather than a straight one, and the armature bounces several times on landing, which shows as ripples in the current after the dip. The remanence model takes a rectangular demagnetisation curve and a single coercivity, which for real steel is an upper-bound estimate; it shows the scale of the shim needed, not the exact thickness. And the shading-ring figure takes the lag and the split as given rather than computing them from the ring’s resistance and the pole’s reluctance, which is where a real design starts.

Still open: how small a relay can be

Relays are not disappearing; they are shrinking. Micro-electromechanical relays a few hundred micrometres across, switched electrostatically rather than magnetically, are made on silicon wafers, and their designers meet the same structure in a sharper form. An electrostatic actuator’s force also grows as one over the gap squared, and its spring is a cantilever, so it snaps shut at a pull-in voltage — reached when the gap has closed by a third, for a parallel-plate actuator against a linear spring — and releases at a much lower one. At those scales, though, the closed contact is held as much by adhesion between the touching surfaces as by the actuator, and a contact that will not open because its surfaces have welded or stuck is the main failure. How to make contacts that switch billions of times without sticking, and whether the adhesion can be controlled rather than merely fought with stiffer springs, is the question that limits the technology.

The pull of a relay’s magnet across its gap is μ0A(NI)2/2(g+l/μr)2\mu_0 A (NI)^2 / 2(g + l/\mu_r)^2, rising fifty-five-fold as the armature closes from 0.5 to 0.05 mm while the spring’s push rises from 0.30 to 0.48 N — so the relay snaps shut at 24.0 mA and holds until 4.1 mA, 17 per cent of it, with no memory in the iron at all. The brass shim keeps the remanent field below the spring, the changing gap makes the coil’s current dip at the moment of closing, and on alternating current the same square sends the pull to zero a hundred times a second unless a copper ring delays part of the flux.

Part 10 of 10

This essay is one argument about Magnetism. The others:

The objects named here

The third axis, after the field and the reading path: the things themselves, and every essay that touches each one.

BistabilityHysteresisInductanceLenz's lawMagnetic circuitMagnetic pressureRemanence