Electricity and Low Voltage, lesson 6 of 12
Relays
Lesson 5 used contacts that a door or a finger moves. A relay is a set of contacts moved by electricity instead. It lets a tiny signal from a controller or sensor switch a lock, a siren or a gate motor, and it keeps the two circuits completely apart while doing so. It is the part that joins security systems to each other and to the hardware they control.
Inside a relay
Pick a situation, then play or step through. Watch the coil on the left move the contacts on the right.
The everyday picture
When you turn the key in a car, your hand moves a small switch on the steering column. That switch could never carry the huge current the starter motor needs. It does not have to. It sends a small current to a heavy-duty switch beside the motor, and that switch connects the battery to the starter.
The small circuit gives the order. The big circuit does the work. The two never touch. The part in between is a relay, and the same idea lets a controller's small output run a door lock.
The parts of a relay
- Coil Many turns of fine wire around an iron core. When current flows through it, it becomes a magnet. When the current stops, the magnetism goes.
- Armature A hinged piece of iron held away from the coil by a spring. The magnet pulls it in, and the spring pulls it back. This is the click you hear.
- Contacts The armature moves a changeover contact with the three terminals from lesson 5: C, NO and NC. They belong to a separate circuit and have no electrical connection to the coil.
A relay with current in its coil is energized. With none, it is de-energized, which is its resting state. NO and NC are named for that resting state, as in lesson 5. De-energized, C is joined to NC. Energized, C is joined to NO.
The coil side is the control circuit. The contact side is the load circuit, and whatever the contacts switch is the load. The only link between the two sides is a magnetic pull across a small gap.
Four reasons to use one
- A small signal switches a large load. A sensor output that can supply a few milliamps can operate a relay whose contacts carry several amps.
- The two circuits stay apart. The control side can be 12 volts DC from one system and the load side 24 volts AC from another. Neither system's power reaches the other. The trade calls this isolation.
- A powered output becomes a dry contact. Lesson 5 ended with this. An output that supplies voltage drives the coil, and the relay's contact gives the next system the dry contact it expects.
- One signal does several jobs, or the opposite job. A relay with two poles switches two separate circuits at once. Choosing NC instead of NO turns "close on signal" into "open on signal".
You have already met relays without opening one. The lock output on an access controller is a relay on the circuit board. So are the alarm output of a motion sensor and the "trouble" output of a power supply.
Check yourself
A relay has no power on its coil. Which two terminals are joined?
Two sets of numbers
A relay's data sheet has two halves, one for each side. Read them separately.
| Side | Figure | What it means | Typical of a small relay |
|---|---|---|---|
| Coil | Coil voltage | The voltage the coil is made for, and whether it is AC or DC | 12 or 24 volts DC |
| Coil | Coil current or resistance | What the coil draws from whatever drives it | Tens of milliamps |
| Contacts | Arrangement | Poles and throws, as in lesson 5 | SPDT or DPDT |
| Contacts | Contact rating | The most current the contacts may switch, at a stated voltage and kind of load | A few amps. Read the sheet. |
The coil voltage must match the signal that drives it, in the same way any device must match its supply. A 24-volt coil on a 12-volt signal may not pull in, or may chatter. A 12-volt coil on 24 volts overheats.
The contact rating needs care. It is usually given more than once, because contacts cope with some loads better than others. Switching DC is harder on them than switching AC, and switching a coil such as a lock is harder than switching a plain resistance such as a heater. Each time contacts open on a coil load, a small spark jumps the gap and erodes the metal. Use the rating that matches your kind of load, and leave a margin. Lesson 7 shows the small part that tames the spark.
| Electromechanical relay | Solid-state relay | |
|---|---|---|
| How it switches | Metal contacts moved by a coil | Electronic parts, nothing moves |
| Sound and wear | Clicks. Contacts wear with use. | Silent. No contacts to wear. |
| When off | A true open gap | A tiny leakage current still passes |
| Load | AC or DC, within the rating | Made for AC or for DC. Check which. |
| Contacts offered | NO, NC and changeover | Usually NO only |
Check a relay for a job
Three questions decide whether a relay suits a job. Change the figures and see which question fails.
Will this relay do?
- Coil voltage matches the signal
- Output can drive the coil
- Contacts can carry the load
Think about the resting state
A relay rests when its coil has no current. That happens when the controller decides so. It also happens when the controller loses power, a fuse opens or a wire to the coil breaks. The relay cannot tell these apart.
So for every relay, ask: what should the load do when everything upstream is dead? Then wire the load to the contact that gives that result at rest. A lock that must stay locked without the controller goes where rest means locked. An alarm signal goes where rest means "report", so that a dead device is noticed. The third situation in the scene at the top shows a door surviving the loss of its controller.
This is a design choice about security. Getting out is a separate matter that must never depend on a relay being energized. The Access Control lesson "Getting out: egress and life safety" covers those rules.
Three examples
Simple: a small output and a loud siren
A sensor has an alarm output that can supply 50 mA at 12 volts. The siren it should sound draws 1 amp. The output drives a relay whose 12-volt coil draws 30 mA. The relay's NO contact, rated well above 1 amp, connects the siren to its own supply. The sensor gives the order and the relay does the work.
Medium: the door that would not relock
A door with an electric strike on a relay's NO contact stays unlocked now and then until someone taps the cabinet. The relay is a small signal type and the strike draws 0.6 amps. Each release ended with a spark across the opening contacts. After a year of sparks, the pitted contacts stick together.
The strike is a coil, and no suppressor had been fitted at it. The fix is a relay rated for the strike's current as a coil load, with a suppressor at the strike. The Access Control lesson "Electric locks" describes that part.
Advanced: one event, two systems
When a door is forced, a controller output goes to 12 volts. The site wants two things to happen: a 12-volt sounder at the door should sound, and the intrusion panel should receive an alarm on one of its zones. The zone needs a dry contact that rests closed. A first attempt joins the sounder and the zone to the same contact, which puts sounder voltage onto the panel's zone wiring. The zone reads nonsense.
The answer is a relay with two poles, DPDT. The controller output drives the coil. The first pole's NO contact switches the sounder's power. The second pole's C and NC terminals go to the panel zone: closed at rest, open on alarm. The poles are separate, so the sounder's voltage never meets the zone.
Now check the resting state. If the wire to the zone breaks, the loop opens and the panel reports it. If the controller dies, the relay rests, the zone stays closed and the sounder stays quiet, so a dead controller needs its own trouble signal. Asking the question in advance is how you find that gap on paper and not on site.
From the field
- Listen for the click. A click with no result points to the contact side or the load. No click points to the coil side or the signal.
- Buy relay modules with an indicator light where you can. The light shows the coil state at a glance.
- Use relays in sockets on jobs you will maintain. A worn relay then changes in seconds without touching a wire.
- Label both sides. Write what drives the coil and what the contacts switch, on the relay or beside it.
- Leave anything above low voltage to a qualified electrician. A relay may be rated to switch 120 volts, but connecting that wiring is licensed work in most places.
Common mistakes
- Choosing a relay by its contact rating and forgetting to check the coil voltage.
- Driving a coil from an output that cannot supply the coil's current.
- Reading the largest number on the case as the rating for every kind of load.
- Forgetting that a dead controller and a controller saying "off" look the same to the relay.
- Joining the coil circuit and the contact circuit at a shared terminal, which throws away the isolation the relay was fitted to provide.
Summary
- A relay is a switch moved by a coil. A small current in the coil operates contacts in a separate circuit.
- De-energized, C is joined to NC. Energized, C is joined to NO.
- Relays switch large loads from small signals, keep circuits apart and turn powered outputs into dry contacts.
- Match the coil voltage to the signal. Keep the load within the contact rating for that kind of load.
- Decide what the load should do when the coil has no power, and wire for that.
Exercises
Answer each one yourself first, then open the answer.
Exercise 1. A relay's coil is rated 12 volts and has a resistance of 400 ohms. What current does it draw, and what power does it use?
Show answer
Exercise 2. A magnetic lock must hold all the time and release when the controller grants access. Which two relay terminals carry its power, and why?
Show answer
Exercise 3. An output can supply 25 mA. The relay you have draws 40 mA. What do you do?
Show answer
Exercise 4 (think, don't memorize). A controller board fails completely during the night. One door has an electric strike on NO. Another has a magnetic lock on NC. The lock power supply is still working. What state is each door in, and what does that tell you?