Inside a relay
A relay is a switch worked by an electromagnet. A coil is wound on an iron core. Above it, a hinged iron armature is held up by a spring, and the armature carries the moving contact, called COM. With no coil current the spring holds COM against the normally closed contact, NC. Pass current through the coil and the core becomes a magnet, pulls the armature down against the spring, and COM moves over to the normally open contact, NO.
Reading the circuit symbol
On a circuit diagram the coil is a rectangle with two terminals, usually A1 and A2, labelled with the relay’s name, such as K1. The contacts are drawn as a switch: a blade at COM that rests on NC and can move to NO. A dashed line from the coil to the blade means they are one part, linked mechanically rather than electrically.
Contacts are always drawn in their de-energized position, so NC is shown closed and NO open.
- A1, A2: the coil terminals
- COM: common, the moving contact
- NC: normally closed, joined to COM while the coil is off
- NO: normally open, joined to COM only while the coil is energized
Coil current and pull-in
The coil is a resistance, so its current follows Ohm’s law. The armature moves only once that current makes enough magnetic force to beat the spring: the pull-in current. Below it nothing happens, however close you get; above it the armature snaps over.
I_coil = V_coil / R_coil energized when I_coil ≥ I_pull-in I_load = V_load / R_load (through NO, only while energized)
Why use a relay
The coil circuit and the contact circuit are electrically separate. A few milliamps from a 5 V microcontroller, through a transistor, can switch a 230 V mains load with no electrical connection between the two. A diode is fitted across the coil in practice, because the coil’s inductance kicks back a high voltage when it is switched off.
Worked example (the simulator’s default values)
- V_coil = 5 V, R_coil = 400 Ω, pull-in 20 mA; the load is 12 V across 100 Ω, wired through NO.
- I_coil = 5 / 400 = 12.5 mA, below 20 mA: the relay stays de-energized, COM rests on NC and no load current flows.
- To pull in, the coil needs at least 20 mA × 400 Ω = 8 V.
- At 12 V: I_coil = 30 mA, the armature pulls in, COM closes onto NO and I_load = 12 / 100 = 0.12 A.
Common mistakes
- Reading NO and NC from a powered relay. Normally open and normally closed describe the contacts with no coil current, which is also how they are drawn.
- Driving a relay coil straight from a microcontroller pin. Most coils need more current than a pin can give, and the switch-off spike can damage it; use a transistor and a flyback diode.
- Expecting it to release at the pull-in current. Real relays let go at a lower drop-out current, which stops them chattering; the simulator uses one threshold for both.
Common questions
How does a relay work?
Current through the coil magnetizes an iron core, which pulls a hinged armature against a spring. The armature moves the common contact from NC to NO. Cut the current and the spring pulls it back.
What do NO and NC mean on a relay?
NO (normally open) connects to COM only while the coil is energized. NC (normally closed) connects to COM while the coil is off. Both names describe the relay at rest.
What is relay pull-in current?
The smallest coil current that makes enough magnetic force to pull the armature over. With a coil resistance R, it sets the minimum coil voltage, I_pull-in × R.