A relay is an electrically operated switch that uses a low-power electromagnet (the coil) to mechanically close or open high-power contacts. It provides galvanic isolation between your sensitive control logic—like a 3.3V ESP32 GPIO pin limited to 40mA—and a heavy load, such as a 120V AC, 10A water pump. While solid-state relays (SSRs) and MOSFETs handle high-speed switching, the standard electromechanical relay (EMR) remains the workhorse for general-purpose AC/DC load control due to its low on-resistance and high surge tolerance.

The Core Anatomy: Coil vs. Contact Side Wiring

To wire a relay correctly, you must treat it as two entirely separate circuits that share only a magnetic field. Mixing these up is the fastest way to destroy your microcontroller.

The Coil Side (Control Circuit)

The coil is an inductor. When you apply the rated DC or AC voltage across the coil pins (often labeled A1/A2 or simply +/-), current flows through the copper windings, generating a magnetic field that pulls the armature and moves the contacts. A standard 5V DC relay coil typically draws between 70mA and 90mA. Because this exceeds the safe continuous current of most microcontroller GPIO pins, you must drive the coil using a logic-level MOSFET (like a 2N7000) or a BJT (like a 2N2222) acting as a low-side switch.

CRITICAL: DC Coil Flyback Protection
Because the coil is an inductor, collapsing the magnetic field when you turn it off generates a massive reverse voltage spike (inductive kickback) that can easily exceed 50V and instantly fry your driving transistor or microcontroller. You must wire a flyback diode (e.g., 1N4007) in reverse bias across the coil pins: the cathode (stripe) connects to the positive coil pin, and the anode connects to the negative/ground pin. This clamps the spike to a safe ~0.7V. If you are switching an AC coil, use a bidirectional TVS diode or an RC snubber instead of a standard diode.

The Contact Side (Load Circuit)

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

  • COM (Common): The moving blade that connects to either NO or NC.
  • NO (Normally Open): Connects to COM only when the coil is energized. Use this for loads that should default to OFF.
  • NC (Normally Closed): Connects to COM when the coil is de-energized. Use this for safety interlocks or loads that default to ON.

Always wire your load through the COM and NO/NC pins. Never route control signals through the contacts while the coil shares a common ground reference with the load, as this defeats the purpose of galvanic isolation.

Decoding Relay Ratings: Which Column Governs Your Load?

The most common mistake hobbyists and junior technicians make is looking only at the maximum printed amperage on the relay cover (e.g., "16A 250VAC") and assuming it applies to all loads. That number is almost always the resistive rating. If you switch a motor or a transformer at that rating, the inrush current will weld the contacts shut or cause catastrophic arcing.

Below is a spec-sheet-table comparing real-world values for common 2026 market relays to show how drastically ratings change based on the load type.

Table 1: Electromechanical Relay Rating Matrix (Real-World Specs)
Relay Model Coil Voltage Resistive Rating Inductive / AC-15 Rating Motor / HP Rating Max Breaking Capacity
Omron G2R-1-E 12V DC 16A @ 250V AC 10A @ 250V AC 1/2 HP @ 120V AC 30A (Single shot)
Songle SRD-05VDC-SL-C 5V DC 10A @ 250V AC 7A @ 250V AC Not Rated (Avoid) 15A (Single shot)
TE OJT-SS-105DM 5V DC 16A @ 277V AC 8A @ 277V AC 1/2 HP @ 277V AC 40A (Single shot)
Finder 40.52 12V DC 8A @ 250V AC 3A @ 250V AC 1/4 HP @ 120V AC 16A (Single shot)

Which Rating Column Governs Your Load?

The governing column is dictated by the physics of your specific load. Use the following decision-tree-table to select the correct rating and derating factor.

Table 2: Load Type Selection Decision Path
Load Type Common Examples Governing Column Derating Rule & Protection Action
Resistive Kanthal heaters, incandescent bulbs, dummy loads Resistive (e.g., 16A) Use 80% of max rating for continuous (24/7) duty to prevent thermal creep.
Inductive Solenoids, contactor coils, transformers, ballasts Inductive / AC-15 Derate to 30% of resistive rating. Action: Add an RC snubber across the load to suppress arc-back.
Motor Pumps, compressors, HVAC fans, conveyors Motor / HP / LRA Derate to 20% of resistive rating. Action: Ensure the Locked Rotor Amps (LRA) do not exceed the relay's Max Breaking Capacity.
Capacitive LED drivers, switching power supplies, battery banks TV Rating / Inrush Derate heavily. Action: Use a zero-crossing SSR or add an NTC thermistor to limit inrush current.
Protection Device Curves: Fuses vs. Breakers
Do not treat fuses and circuit breakers as interchangeable when protecting relay contacts. A fast-acting semiconductor fuse clears a dead short in milliseconds, protecting your relay contacts from catastrophic arc-welding. A standard thermal-magnetic breaker has an inverse-time curve; it may allow a 50A fault to persist for 100ms or more—long enough to melt your relay's NO contact shut and create a fire hazard. Always pair relays with fast-blow fuses sized to the derated contact rating, not the upstream breaker rating.

Testing, Troubleshooting, and Replacement

Relays are mechanical devices, meaning they wear out. Contact bounce, carbon tracking, and coil degradation are inevitable. Here is how to diagnose them on the bench and in the field.

How to Test a Relay Dead (De-energized)

Remove the relay from the circuit or ensure all power is disconnected. Set your multimeter to the Ohms (Ω) setting.

  1. Test the Coil: Place probes across the coil pins. A healthy 5V DC relay should read between 50Ω and 150Ω. A 12V relay will read 200Ω to 500Ω. If the meter reads OL (Open Loop), the internal copper wire has snapped; the relay is dead. If it reads 0.0Ω, the coil is shorted internally.
  2. Test the Contacts: Place probes across COM and NC. It should read < 1Ω. Place probes across COM and NO. It should read OL. If COM-NO reads a low resistance while de-energized, the contacts have arc-welded together.

How to Test a Relay Live (Energized Under Load)

Apply the rated coil voltage. You should hear a distinct, sharp "click." If it hums or buzzes (on AC coils) or fails to pull in, the coil voltage is sagging, or the armature is fouled with dust.

With the load running, switch your multimeter to AC or DC Volts (matching your load) and place the probes directly on the COM and NO pins. A healthy relay will show a voltage drop of less than 0.05V. If you measure a voltage drop greater than 0.1V to 0.2V across the closed contacts, the silver-alloy contact surface is pitted and carbonized. This resistance generates heat (P = I²R), which will eventually melt the relay housing.

When to Repair vs. Replace

The decision to repair or replace comes down to the relay's form factor and cost.

  • Sealed PCB Relays (e.g., Omron G2R, Songle): Always replace. These cost between $2 and $8. Attempting to pry open the plastic housing to file down pitted contacts destroys the environmental seal and alters the armature tension, leading to unpredictable contact resistance. Discard and solder in a new unit.
  • Industrial Plug-in Relays (e.g., Omron MY4, Finder 55): Replace. While you can physically open these and burnish the contacts with a fiberglass pen, the cost of labor exceeds the $10-$15 replacement cost. Keep a stock of spares.
  • Heavy-Duty Contactors (e.g., Eaton, Schneider Electric): Inspect and Repair. For units costing $100+, you can replace the contact blocks or the coil independently. If the main contacts are deeply pitted but the arc chutes are intact, replacing just the contact cartridge is standard industrial practice.

By respecting the difference between resistive and inductive ratings, enforcing flyback protection on your DC coils, and testing for voltage drop under load, you will eliminate 95% of the relay failures that plague DIY automation and control panels. For deeper physics on contact arcing, refer to the Omron Relay Technical Guide or the foundational chapters on electromagnetism at All About Circuits.