How to Connect a Relay in a Circuit: Types of Relays and Uses
Relay races are a common event at our house. No—not the type of relay race where a real athlete runs really fast and hands the baton to the next really fast athlete. Instead, our relays have a slightly different format and happen almost daily.
“I don’t want to do clean out the dishwasher! It’s her turn to set the table. I’ll trade vacuuming for feeding the cat.” We never know who will win these relays, but the handoffs are simply stunning to observe.
In PCB design, we never turn down the opportunity to do a task. Today, we’ll take a look at relays and—more specifically—how to connect relays into a circuit.
Back to the Basics: Circuit Relays
Relays range from electromagnetic and reed relays to solid-state, hybrid, and thermal relays. A standard AC or DC electromagnetic relay consists of an electromagnet that receives an electric signal and converts the signal into the mechanical action of a switch that opens and closes the circuit. A reed relay features a pair of magnetic strips (the reed) sealed within a glass tube. Applying a magnetic field to the coil causes the reeds to act as an actuator and a contact blade while switching occurs.
Any increase in ambient temperature from the limit causes the contacts of a thermal relay to switch from one position to another as it protects a motor or other device from an overload condition. In contrast to electromagnetic, reed, and thermal relays, solid state relays have no moving parts. The different types of solid state relays include reed relay-coupled relays, transformer coupled relays, and photo-coupled relays. Hybrid relays combine electromagnetic relays with electronic components.
Applications for relays include consumer electronic devices, industrial machinery, control panels, medical and scientific equipment, communications equipment, and transportation. Consumer devices ranging from cellular phones to ovens and stoves include relays as part of control circuitry. In the automotive industry, relays control doors, automatic breaking systems, the power steering, power windows, and sunroofs. Conveyor belts, elevators, and lifts also rely on relays.
We can classify relays by contacts, mounting type, construction, or function. Depending on the application, relays may either utilize contacts or may not have any contacts. As an example, contact forms for electromagnetic relays include the single-pole single throw, double-pole single throw, and double-pole double throw relays.
An electromagnetic relay at work
Specific types of boards may require discrete mounting relays or surface mount relays. In terms of construction, some applications may use sealed relays while others require flux protection relays. Single-side relays turn on or turn off after receiving an input signal. In contrast, latching relays remain on or off after receiving an input signal.
Electromechanical and Reed Relays
Electromechanical and reed relays used for switch resistive and inductive loads for the power management of control systems. The relays mount directly to a PCB and fit a compact standard relay package. An electromechanical PCB relay includes a coil, an armature, and contacts. Applying power to the coil forms a magnetic field that causes the armature to move and the contacts to open or close. Electromechanical relays have excellent contact ratings and a wide range of form, fit, and functions for different applications.
Reed relays consist of a coil wrapped around a sealed glass tube that contains the reeds and contacts. Applying power to a reed relay coil forms a magnetic field that causes the reeds to move and the contacts to close. Given the type of construction, reed relays have a long mechanical and electrical life and feature fast switching times in the 0.45 to 1.00 microsecond range.
PCB Mount Solid State Relays
Commercial and industrial applications such as professional food equipment, medical equipment, and renewable energy systems require devices with smaller footprints and often require relays constructed within single-in-line packages (SIP) or dual-in-line packages (DIP). Solid state relays (SSR) provide the advantages of long service life expectancy, no contact bounce or arching, zero-crossing capability, low power input, and high resistance to shock and vibration. In addition, the SIP and DIP PCB mount solid state relays provide space savings and have specific power requirements.
Decisions about connecting a relay to a PCB involve the operating conditions, construction, and the mounting type. Conditions including the load current, surge current, airflow and ambient temperature impact the size and spacing of solid state relays. A PCB mount solid state relay that carries five amps of load current and dissipating approximately five watts of power requires additional spacing because of the need for heat dissipation. Without 30 mil or more separation, the heat from one solid state relay impacts the operation of a second solid state relay.
Unsealed, Sealed, and Flux Protection Relays
When mounting electromagnetic relays to a PCB, check whether the relay is unsealed, sealed, or is a flux-protection relay. Because an unsealed relay lacks any protection against flux or cleaning solvents from penetrating the internal mechanism, the relays require manual soldering and cannot withstand immersion cleaning. When mounting an unsealed relay, separate the terminals from the PCB surface and position the contacts away from the base.
Sealed relays prevent flux and cleaning solvents from penetrating the relay housing. As with sealed relays, the design of flux-protection relays prevents flux from moving into the relay housing. Flux-protection relays direct solder onto the PCB and cannot withstand immersion cleaning.
Relay Pin Terminals
Another step for connecting a relay to the PCB covers the pin terminals and configuration of the relay. The standardized approach shown in the table identifies the terminals of electromagnetic relays.
Terminal |
Terminal Description |
_COIL |
One end of the coil – voltage connects to the terminal to supply power to the coil |
COIL |
One end of the coil – voltage connects to the terminal to supply power to the coil |
NO – Normally Open |
Connects to device that the relay will power when the coil receives sufficient voltage to energize. Device remains off when the relay has no power and switches on when the relay receives power. |
NC – Normally Closed |
Terminal connects to device to power when relay receives no power. Device remains on when the relay has no power and switches off when the relay receives power. |
A reed relay has a positive and a negative terminal. Solid state relays have input terminals, load terminals, and an output terminal. Thermal relays connected in series with a motor have two terminals.
PCB Design Requirements for Electromagnetic Relays
The demand for compact devices has pushed the development of smaller electromagnetic relays that solder directly onto a PCB. Even with the availability of smaller relays, the physical process of mounting a relay requires attention to soldering, heat application, and washing. If the internal mechanism of an electromagnetic relay becomes distorted, the relay will not perform as needed. Manufacturers recommend glass-epoxy or paper-epoxy PCB materials and a thickness of 1.6 millimeters for mounting relays. PCB relays require a standard conductor thickness of 35µm and 70µm.
Knowing how relays work can greatly affect the capacity for you to use them
Electromagnetic and thermal relays perform differently when exposed to magnetic fields and heat. As you design your PCB, position relays away from transformers, semiconductors, or other devices that generate heat. The mechanical design of a product also must protect relays from shock or vibration. Mount the relay so that any shock or vibration applies at right angles to the operating direction of a relay armature.
Cadence’s suite of design tools can turn any layout or analytical function you need for your circuit design into a breeze. Cadence’s Allegro PCB Designer specifically can certainly equip you with all the necessary functions and tools for any level of design.
If you’re looking to learn more about how Cadence has the solution for you, talk to us and our team of experts.