Relay Operation

A relay is an electrically operated switch that uses an electromagnet to open or close a separate electrical circuit. Rather than switching a circuit by hand, a relay allows a small electrical signal to control a much larger or more dangerous current without any direct connection between the two circuits. This makes relays invaluable in situations where safety, remote control, or signal amplification is required. They are found in everything from car starter motors and industrial machinery to alarm systems and early computers. The key principle behind relay operation is electromagnetism: when current flows through a coil of wire wound around a soft-iron core, a strong magnetic field is produced. This electromagnet attracts a spring-loaded metal armature, which physically moves to connect or disconnect contacts in a second, independent circuit. When the control current is switched off, the magnetic field collapses and a return spring pulls the armature back to its original position, opening or closing the contacts once more. Relays provide electrical isolation between the control circuit and the load circuit, meaning a low-voltage microcontroller can safely switch mains voltage equipment. They are a classic example of how electromagnetic principles translate directly into practical, real-world engineering solutions, bridging the fundamental physics of electromagnetism with everyday technology.

Key takeaways
  • The Control Circuit and Electromagnet
  • The Armature and Mechanical Switching
  • Normally Open and Normally Closed Contacts
  • The Flyback Diode — Protecting the Control Circuit
  • Practical Applications

The Control Circuit and Electromagnet

A relay has two electrically separate circuits. The control circuit carries a small current through a coil — often just a few milliamps from a battery or microcontroller. The coil is wound many times around a soft-iron core. By Ampere's law, each turn contributes to the total magnetic field inside the core, and soft iron amplifies this field greatly due to its high magnetic permeability. The result is a powerful electromagnet activated by a modest current.

The Armature and Mechanical Switching

Positioned close to the electromagnet is a flexible metal strip called the armature, held in its resting position by a return spring. When the electromagnet is energised, it exerts a magnetic force on the armature, pulling it towards the core. This mechanical movement causes the armature to bridge a pair of contacts, completing (or breaking) the load circuit. Think of it like a drawbridge: the electromagnet's pull is the winch that raises or lowers the bridge, allowing traffic (current) to pass.

Normally Open and Normally Closed Contacts

Relays can be configured in two ways. A normally open (NO) relay has contacts that are open (circuit broken) when the electromagnet is off and closed (circuit complete) when energised — like pressing a button. A normally closed (NC) relay does the opposite: the contacts are closed at rest and open when the coil is energised. Many relays provide both configurations on the same device, giving great flexibility in circuit design.

The Flyback Diode — Protecting the Control Circuit

When the control current is switched off, the magnetic field in the coil collapses rapidly. By Faraday's law of electromagnetic induction, this induces a large back-EMF voltage spike in the coil, which can damage sensitive components such as transistors or microcontrollers. A flyback diode (also called a freewheeling diode) is connected in reverse across the coil. It provides a safe path for the induced current to dissipate as heat, protecting the control circuit — a small but critical engineering detail.

Practical Applications

Relays are used wherever small signals must control large loads: car starter motors use relays so a thin dashboard wire can switch hundreds of amperes to the starter; household boilers use relays to switch heating circuits; industrial programmable logic controllers (PLCs) use banks of relays to automate machinery. Solid-state relays (SSRs) replace the mechanical armature with semiconductor switching, offering faster operation and longer life, though the electromagnetic relay remains common for its simplicity and complete electrical isolation.

The Key Equation

F=B2A2μ0F = \frac{B^2 A}{2\mu_0}
  • F — Magnetic attractive force (N (newtons)): The force exerted by the electromagnet on the soft-iron armature, which must overcome the return spring to close the relay contacts.
  • B — Magnetic flux density (T (teslas)): The strength of the magnetic field in the air gap between the electromagnet core and the armature. Increasing coil current or number of turns raises B.
  • A — Cross-sectional area of the air gap (m² (square metres)): The effective area over which the magnetic field acts on the armature face. A larger core area produces a greater total force.
  • \mu_0 — Permeability of free space (H/m (henries per metre)): A fundamental physical constant equal to 4π × 10⁻⁷ H/m, describing how well a magnetic field can be established in a vacuum (or air, as an approximation).

Worked Example

Problem. A relay has an electromagnet with a square core face of side length 1.2 cm. The magnetic flux density in the air gap is 0.15 T. Calculate the magnetic force pulling the armature towards the core. Take μ₀ = 4π × 10⁻⁷ H/m.

F≈1.29 NF \approx 1.29 \text{ N}

Answer. The magnetic force on the armature is approximately 1.29 N. This force must exceed the restoring force of the return spring for the relay to operate reliably.

Figure
Diagram
Relay Operation DiagramCoil(Control)Soft-ironcoregapArmature (spring-loaded)SpringContact AContact BLoadCircuitSmall control currentBatteryControl loopNO(open)
Origins · 1 minJoseph Henry and how this was discovered
JH
Joseph Henry
1797–1878 · American

Joseph Henry was the first to construct a practical electromagnetic relay, demonstrating in 1835 that an electromagnet could be used to trigger a second, more powerful electromagnet at a distance. This discovery directly enabled the development of the telegraph by Samuel Morse and established the principle upon which all electromagnetic relays operate. Henry also independently discovered electromagnetic induction (around the same time as Faraday) and made foundational contributions to the understanding of self-inductance. Henry once sent an electrical signal through over a mile of wire to ring a bell on the other side of his laboratory — an early demonstration of remote control and the direct ancestor of the electric telegraph.

  • Electromagnets — Relay operation depends entirely on the electromagnet: understanding how a current-carrying coil around a soft-iron core produces a controllable magnetic field is essential to understanding why relays work.
  • Magnetic Field Patterns — The shape and strength of the magnetic field produced by the relay coil determines the force on the armature; knowledge of magnetic field patterns around solenoids underpins relay design.
  • The Motor Effect — Like relays, electric motors exploit the force on a current-carrying conductor in a magnetic field — both are key electromechanical devices converting electrical energy into mechanical motion.
  • Electromagnetic Induction — The back-EMF spike generated when a relay coil is de-energised is a direct consequence of electromagnetic induction (Faraday's law), making this concept critical for safe relay circuit design.