A relay module bridges low-voltage DC logic (3.3V or 5V from an ESP32, Arduino, or Raspberry Pi) and high-voltage or high-current AC/DC loads. For a standard 120V AC, 10A resistive load, a 5V DC coil module with a 10A/250VAC contact rating (like the ubiquitous Songle SRD-05VDC-SL-C) is the baseline. However, inductive loads require severe derating, and misunderstanding the isolation between the coil and contact circuits is the leading cause of bricked microcontrollers and melted terminal blocks on the workbench.

Spec Sheet: Decoding Relay Module Ratings

The bold '10A' printed on the side of a cheap blue relay is a best-case scenario for a purely resistive load at unity power factor. When you introduce inductance or motor startup currents, that rating collapses. The spec sheet below compares common hobbyist and industrial relays to show how drastically real-world breaking capacity differs from nominal resistive ratings.

Table 1: Common Relay Module Specifications and Breaking Capacities
Module / Relay Model Coil Voltage Coil Resistance Nominal Contact Rating (Resistive) Max Breaking Capacity (Inductive/Motor)
Generic 1-Ch (Songle SRD-05VDC-SL-C) 5V DC ~70 Ω 10A @ 250VAC / 15A @ 125VAC ~3A @ 250VAC (Derated)
Generic 1-Ch (Songle SRD-12VDC-SL-C) 12V DC ~400 Ω 10A @ 250VAC / 15A @ 125VAC ~3A @ 250VAC (Derated)
Omron G2R-1-E (Industrial Grade) 24V DC 1150 Ω 16A @ 250VAC 5A @ 250VAC (Inductive)
Panasonic TQ2-5V (Signal/Low Power) 5V DC 357 Ω 2A @ 250VAC (Resistive) 0.5A @ 250VAC

Which rating column governs this load? The Max Breaking Capacity for your specific load type governs the circuit, never the nominal resistive rating. If you are switching a 4A inductive solenoid on a 120V AC line, the Songle SRD-05VDC is technically undersized despite its '10A' silkscreen, and the contacts will pit and weld shut within a few hundred cycles. You must step up to an Omron G2R or a dedicated contactor.

Coil vs. Contact: Wiring the Control and Load Sides

A relay module contains two entirely separate electrical circuits: the coil side (low-voltage control) and the contact side (high-voltage load). Understanding the boundary between them is critical for safety and signal integrity.

The Coil Side (Control Circuit)

The control header typically features three pins: VCC, GND, and IN. When the IN pin is pulled low (active-low) or driven high (active-high, depending on the module), an internal transistor saturates, allowing current to flow through the electromagnetic coil. This generates a magnetic field that pulls the mechanical armature, closing the contacts.

Flyback Diode Protection (Mandatory for DC Coils): A relay coil is an inductor. When the driving transistor turns off, the collapsing magnetic field generates a massive reverse voltage spike (inductive kickback). If you are wiring a bare relay to a microcontroller, you must wire a flyback diode (like a 1N4148) in reverse bias across the coil pins. Most pre-built modules include this diode on the PCB, but always verify it with a multimeter's diode-test mode before connecting it to a sensitive ESP32 GPIO.

The JD-VCC Jumper and Optocouplers: High-quality modules use a PC817 optocoupler to provide galvanic isolation between your microcontroller and the relay coil. To use this isolation, you must remove the 'JD-VCC' jumper on the module and supply the relay's VCC from a separate 5V power supply, leaving only the GND and IN pins connected to your microcontroller. This prevents high-voltage transients from the load side from feeding back through the coil supply and frying your dev board.

The Contact Side (Load Circuit)

The load terminals are marked COM (Common), NO (Normally Open), and NC (Normally Closed).

  • COM: The moving armature. Connect your AC Line (Hot) or DC Positive here.
  • NO: Connects to COM when the coil is energized. Connect your load here for standard 'turn on when triggered' logic.
  • NC: Connects to COM when the coil is de-energized. Used for fail-safe circuits (e.g., a heater that must turn off if the microcontroller crashes and drops the GPIO signal).

Load Selection Decision Tree: Resistive, Inductive, and Motor

Selecting the right relay requires matching the load's electrical characteristics to the relay's breaking capacity. Use the decision tree below to determine which rating column governs your specific application.

Table 2: Load Type Decision Path and Derating Rules
Load Type Characteristics Governing Rating Column Derating Rule Example Application
Resistive Unity power factor, minimal inrush current. Nominal Contact Rating (Resistive) None (100% of nominal rating) 10A space heater on a 10A relay.
Inductive Lagging power factor, high voltage kickback on open. AC Breaking Capacity (Inductive) Derate to 30% - 50% of nominal 3A AC solenoid valve requires a 10A relay.
Motor Extremely high Locked Rotor Amps (LRA) on startup. Motor HP Rating or FLA/LRA specs Derate to 20% or use a contactor 1/4 HP sump pump requires a 20A+ contactor.
Lamp (Tungsten) Cold filament has 10x-15x inrush current. TV-Rating or Tungsten Inrush spec Derate to 10% - 20% of nominal 500W incandescent bank needs a heavy-duty relay.
Protective Device Coordination: Do not treat fuses and breakers as interchangeable when protecting relay contacts. A fast-acting fuse (like a glass M205 ceramic fuse) clears short-circuit faults in milliseconds, protecting the relay from catastrophic let-through current and preventing contact welding. A thermal-magnetic breaker, however, has an inverse-time trip curve designed for wire overload protection; it may trip too slowly to save a relay contact from welding shut during a dead short. Always coordinate your upstream protection with the relay's let-through energy limits.

Bench Testing and Troubleshooting: Dead, Live, and End-of-Life

Relays are mechanical wear items. The contacts physically strike each other, causing arcing, pitting, and eventual failure. Here is how to test a relay module on the bench to determine its health.

Testing Dead (Unpowered)

  1. Coil Resistance: Set your multimeter to resistance (Ω). Measure across the coil pins (or VCC and GND on the module header). A healthy 5V Songle relay will read approximately 70Ω. If it reads OL (open), the coil wire is broken. If it reads near 0Ω, the coil is shorted.
  2. Contact Continuity: Measure across COM and NO. It should read OL (infinite resistance). Measure across COM and NC; it should read less than 0.5Ω. If COM-NC reads high resistance, the contacts are already pitted or welded open.

Testing Live (Energized)

  1. Voltage Drop Test: Wire the relay to a safe, low-voltage load (e.g., a 12V DC motor or a 120V AC incandescent bulb). Energize the coil. Set your multimeter to AC or DC voltage (matching the load) and place the probes directly on the COM and NO terminal screws.
  2. Evaluate the Drop: A healthy, closed relay contact is essentially a short circuit. You should read a voltage drop of less than 0.1V. If you read 2V, 5V, or higher across the closed contacts, the contacts are severely carbonized and pitted. The relay is dissipating power as heat (P = V × I) and is a fire hazard.

When to Repair vs. Replace

For hobbyist PCB relay modules (the blue Songle or Omron G5V types encased in plastic), always replace the entire module. The relays are typically soldered directly to the board, and the plastic cases are epoxy-sealed. You cannot safely file down pitted contacts or rewind a burnt coil on a $3 module.

For industrial plug-in relays (like the Omron LY2 or MY2 series mounted in a DIN-rail socket), the contact block and coil are sometimes modular, but the labor cost of diagnosing and replacing internal components far exceeds the cost of a new $15 plug-in unit. The only field-repairable action on an industrial relay is cleaning the exterior contact prongs with contact cleaner and replacing the upstream fuse.