What is a relay in electronics? A relay is an electrically operated switch that uses a low-power electromagnet (the coil) to mechanically close or open a separate, higher-power circuit (the contacts). It provides galvanic isolation between your sensitive control logic—like an Arduino, ESP32 GPIO pin, or PLC output—and the heavy load, such as a 120V AC motor or a 12V DC solenoid. For example, a 5V, 72mA microcontroller signal can safely trigger a 10A, 250V AC heater through a standard Songle SRD-05VDC-SL-C relay without exposing the low-voltage silicon to mains hazards.

Anatomy and Wiring: Coil Side vs. Contact Side

A relay is fundamentally two electrically isolated circuits housed in a single package. Understanding the strict separation between the coil side (control) and the contact side (load) is critical for safe wiring.

The Coil Side (Control Circuit)

The coil is an inductor wound around an iron core. When you apply the rated DC or AC voltage across the coil pins (typically labeled A1 and A2 on DIN-rail relays, or pins 2 and 5 on a standard 5-pin PCB relay), it generates a magnetic field that pulls the armature, moving the contacts.

WARNING: DC Coil Flyback Protection
If you are driving a DC relay coil with a semiconductor (like a 2N2222 NPN transistor or a ULN2803 Darlington array), you must wire a flyback diode (e.g., 1N4007) reverse-biased across the coil pins (cathode to positive, anode to negative). When the coil de-energizes, the collapsing magnetic field generates a high-voltage inductive kickback. Without the diode to recirculate this current, the voltage spike will instantly punch through and destroy your driving transistor or microcontroller pin.

The Contact Side (Load Circuit)

The contacts carry the load current. A standard Single Pole Double Throw (SPDT) relay features three contact terminals:

  • COM (Common): The moving contact attached to the armature. Your load's power source usually connects here.
  • NO (Normally Open): Connects to COM only when the coil is energized. Use this for loads that should turn ON when triggered.
  • NC (Normally Closed): Connects to COM when the coil is de-energized. Use this for safety circuits or loads that must remain ON until a fault triggers the relay.

Decoding Relay Ratings and Load Selection

Beginners often look at the "10A 250VAC" stamp on a relay cover and assume it can switch any 10-amp load at 250 volts. This is a fast track to welded contacts and melted plastic. To answer the most common bench question: which rating column governs this load? The contact rating and breaking capacity govern the load side limits, but those limits change drastically based on the load's impedance characteristics.

Relay Rating Table: Coil vs. Contact Specifications
Parameter Governs Typical PCB Relay Value (e.g., Omron G2R-1-E) Failure Mode if Exceeded
Coil Voltage Control Side 5V DC, 12V DC, or 24V DC (±10% tolerance) Coil burnout, failure to pull in, excessive heat
Contact Rating (Resistive) Load Side (Heaters, Resistors) 10A at 250V AC / 10A at 30V DC Thermal melting of contact springs
Breaking Capacity Load Side (Inductive/Motor) Often derated to 2A-3A for inductive loads Arcing, pitted contacts, welded NO contacts
Dielectric Strength Isolation between Coil & Contacts 5,000 VAC for 1 minute Mains voltage bleeding into low-voltage logic

Selection Decision Path by Load Type

Use this decision tree to select the correct relay amperage based on your specific load. Inrush currents dictate the breaking capacity requirement, not the steady-state running current.

Load Type Selection Decision Tree
Load Type Examples Inrush Multiplier Relay Selection Rule
Resistive Space heaters, incandescent bulbs (steady state), power resistors 1x (No inrush) Relay Contact Rating ≥ Load Steady-State Current
Inductive Solenoids, transformer primaries, AC contactor coils 2x to 5x Relay Contact Rating ≥ 3x Load Steady-State Current
Motor (AC/DC) HVAC fans, compressors, power tools, pumps 6x (Locked Rotor Amps) Use a relay explicitly rated for "Motor Loads" (e.g., 1/2 HP) or derate standard relays by 80%
Tungsten / Lamp Halogen arrays, large incandescent banks 10x to 15x Relay Contact Rating ≥ 10x Load Steady-State Current

Bench Testing: Dead and Live Diagnostics

When troubleshooting a malfunctioning circuit, you must verify the relay systematically. Here is how to test it dead and live using a standard digital multimeter (DMM).

1. Dead Testing (Power Removed)

Coil Test: Set your DMM to resistance (Ohms). Place probes across the coil pins (A1/A2). A healthy 5V DC relay (like the Songle SRD-05VDC) will typically read between 65Ω and 75Ω. A 12V relay will read roughly 270Ω to 400Ω. If the meter reads "OL" (Open Loop), the internal coil wire is broken. If it reads near 0Ω, the coil is shorted.

Contact Test: Set your DMM to continuity or resistance. With the coil de-energized, measure COM to NC: it should read less than 1Ω. Measure COM to NO: it should read "OL". If COM to NC reads high resistance (e.g., 50Ω), the contacts are heavily pitted or oxidized from arcing.

2. Live Testing (Energized)

Pull-in Test: Apply the rated DC voltage to the coil. You should hear a distinct, sharp click. If it hums or buzzes continuously (common in AC relays with a damaged shading coil or DC relays supplied with rippled AC), the armature is not seating properly.

Voltage Drop Test: With the relay energized and the load running, switch your DMM to DC or AC Voltage (matching the load). Place the probes directly on the COM and NO terminals. A healthy, clean contact will show a voltage drop of less than 50mV (0.05V) at rated current. If you measure a drop greater than 200mV, the contacts are degraded, generating internal heat, and the relay must be replaced.

Repair vs. Replace: When to Toss a Welded Relay

A common question on the bench is whether to open a relay and file down pitted contacts. The decision hinges entirely on the physical scale and cost of the component.

When to Replace: For 99% of electronics work—including PCB-mount relays (Omron G5V, Songle), DIN-rail modules (Finder 40-series, Phoenix Contact), and automotive cube relays—always replace the entire unit. These are sealed, consumable components. Filing contacts alters the precise mechanical gap, leading to immediate failure or dangerous arcing. A replacement PCB relay costs $0.50 to $2.00; the labor to "repair" it is never justified, and the fire risk of a compromised enclosure is severe.

When to Repair: Repair is only viable for heavy-duty industrial contactors and large NEMA-rated motor starters (e.g., a $400 Allen-Bradley or Schneider Electric unit). These are designed with modular, field-replaceable contact blocks and separate coil assemblies. If the contacts weld on a 50A industrial contactor, you unbolt the contact block, swap in a $40 OEM replacement kit, and reuse the frame. Never attempt this on sealed electromechanical relays.

Frequently Asked Questions

What is the difference between a relay and a contactor in electronics?

While both use electromagnets to switch loads, the distinction lies in capacity and arc suppression. Relays are typically rated for control circuits or lighter loads up to 15A-20A. Contactors are designed for heavy power loads (20A to hundreds of amps), feature dual-break contacts to extinguish massive arcs, include arc chutes, and often have auxiliary contacts for PLC feedback. If you are switching a 5HP, 480V 3-phase motor, you use a contactor; if you are switching the contactor's coil from an ESP32, you use a relay.

Why does my relay click but the load doesn't turn on?

A click confirms the coil is energized and the armature is moving, but it does not guarantee electrical continuity. The most common cause is heavily oxidized or carbon-scored contacts that fail to pass current. Test the voltage drop across the COM and NO terminals under load. If the drop is high (or reads full line voltage), the contacts are dead. Another possibility is that the load itself is open (a blown fuse, broken wire, or dead motor), so verify voltage at the load terminals directly.

Can I use a DC-rated relay to switch an AC load?

You can, but you must strictly observe the AC voltage and current limits printed on the relay, which are often different from the DC limits. More importantly, DC relays sometimes lack the specific arc-quenching geometry optimized for the zero-crossing nature of AC power. Conversely, using an AC-rated relay to switch a DC load is highly dangerous; DC arcs do not self-extinguish at zero-crossings and will rapidly weld the contacts together. Always match the relay's specific AC/DC contact ratings to your load type.