A relay operates by passing current through a low-power copper coil to generate a magnetic field, which pulls a spring-loaded ferrous armature to physically close or open a separate, high-power contact circuit. This electromechanical isolation allows a microcontroller GPIO pin or a small transistor to safely switch mains voltage or high-current DC loads without the two circuits ever sharing an electrical connection.
While solid-state relays (SSRs) are gaining ground in high-cycle applications, standard electromechanical relays (EMRs) remain the bench and jobsite standard due to their low on-state resistance, minimal heat generation, and forgiving voltage tolerances. To use them reliably, you need to understand the physical divide between the coil side and the contact side, and more importantly, how to read the datasheet so your contacts don't weld themselves shut on the first inrush spike.
The Core Mechanics: Coil Side vs. Contact Side
Think of an EMR as a heavy vault door operated by a small electric motor. The motor (the coil) requires very little power to run, but it controls access to the vault (the contacts), which handles the heavy traffic. These two systems are physically separated by an air gap and insulating materials.
The Coil Side (The Electromagnet)
When you apply the rated voltage (e.g., 12V DC or 120V AC) across the coil terminals (usually labeled A1 and A2, or simply + and -), current flows through thousands of turns of fine enameled copper wire wrapped around an iron core. This creates a magnetic flux. The magnetic force overcomes the tension of a return spring, pulling the armature—a hinged piece of iron—toward the core. The armature is mechanically linked to the contact side.
The Contact Side (The Switch)
The armature pushes or pulls the movable contacts. Relays are categorized by their pole and throw configurations:
- SPST (Single Pole, Single Throw): A simple on/off switch. Often designated as Form A (Normally Open) or Form B (Normally Closed).
- SPDT (Single Pole, Double Throw): A changeover switch (Form C). The common terminal (C) switches between a Normally Open (NO) and a Normally Closed (NC) terminal.
- DPDT (Double Pole, Double Throw): Two completely isolated SPDT switches operated by the same coil.
Reading the Spec Sheet: Which Rating Governs Your Load?
The most common reason a relay fails prematurely is selecting a part based on its resistive contact rating, then using it to switch a motor or a transformer. Inductive and motor loads generate massive inrush currents and severe flyback voltage spikes that will pit, carbonize, or weld standard contacts. According to Omron's relay application guidelines, you must derate the contact capacity based on the load type.
Here is a spec-sheet-table comparing real-world ratings for common 10A-16A class PCB and plug-in relays to illustrate how drastically the governing rating changes based on the load:
| Relay Series (Example) | Coil Voltage | Resistive Rating (Governs Heaters/Incandescent) | Inductive Rating (Governs Solenoids/Transformers) | Motor / LRA Rating (Governs Compressors/Fans) | Max Breaking Capacity |
|---|---|---|---|---|---|
| Omron G2R-1-E | 12V DC | 16A @ 250V AC | 5A @ 250V AC (cos φ=0.4) | 1/2 HP @ 120V AC | 4,000 VA |
| Panasonic JW2SN | 24V DC | 10A @ 250V AC | 3A @ 250V AC (cos φ=0.4) | 1/4 HP @ 120V AC | 2,500 VA |
| Finder 40.52 | 120V AC | 8A + 8A @ 250V AC | 3A + 3A @ 250V AC | Not Recommended | 2,000 VA per pole |
| Songle SRD-05VDC | 5V DC | 10A @ 125V AC | ~3A @ 125V AC (Estimated) | Not Rated | 1,250 VA |
The Load Decision Path
When selecting a relay, follow this decision tree to determine which datasheet column governs your application:
- Is the load purely resistive? (e.g., ceramic heater, toaster, incandescent bulb). Use the Resistive column. Note that incandescent bulbs have a cold-filament inrush of 10x to 15x their steady-state current; derate by 20% to be safe.
- Is the load inductive? (e.g., solenoid valve, contactor coil, transformer). Use the Inductive column (often noted with a power factor like cos φ=0.4). The breaking capacity is severely limited because the magnetic field collapse creates an arc that is hard to extinguish.
- Is the load a motor? (e.g., HVAC blower, air compressor). Use the Motor or Locked Rotor Amps (LRA) rating. Motors draw 500% to 700% of their running current for the first few hundred milliseconds. If the datasheet lacks a specific motor rating, derate the resistive capacity to 20% of its stated value.
AC voltage crosses zero 120 times a second (in a 60Hz system), which naturally helps extinguish the electrical arc when contacts open. DC voltage never crosses zero. A relay rated for 10A at 250V AC might only be rated for 1A or 2A at 30V DC. Always check the specific DC contact rating on the datasheet before switching DC loads like solar strings or battery banks.
Wiring the Coil and Contacts (and Protecting the Driver)
Wiring a relay requires treating the coil and the contacts as two entirely separate circuits that share only a mechanical linkage.
Wiring the Contact Side
For an SPDT relay, you will see three terminals on the contact side: Common (C), Normally Open (NO), and Normally Closed (NC).
- Line/Power Source: Connect to the Common (C) terminal.
- Load: Connect to either NO (if you want the load to turn ON when the coil is energized) or NC (if you want the load to turn OFF when the coil is energized).
Bench Tip: For high-current AC loads, ensure your wire ferrules are crimped tightly and the terminal screws are torqued to the manufacturer's spec (usually around 0.5 to 0.8 Nm). Loose connections on the contact side cause localized heating that will melt the relay housing long before the coil fails.
Wiring the Coil Side and the Flyback Diode Requirement
The coil is simply an inductor. For AC coils, polarity does not matter. For DC coils, polarity technically doesn't matter for the magnetic field, unless the relay has an internal status LED or an internal suppression diode, in which case you must match the + and - markings.
When you de-energize a DC relay coil, the collapsing magnetic field induces a massive reverse-voltage spike (often 10x to 50x the supply voltage). If your ESP32 GPIO pin, Arduino, or driving BJT/MOSFET is connected directly to the coil, this spike will instantly punch through the semiconductor junction and destroy your microcontroller.
The Fix: Always place a flyback diode (like a standard 1N4007) in reverse bias directly across the DC coil terminals. The cathode (stripe) goes to the positive side of the coil, and the anode goes to the negative side. This gives the inductive spike a safe recirculation path. For more on protecting driver circuits, see this guide on relay coil suppression.
Testing Dead and Live, and the Repair vs. Replace Verdict
Relays are wear items. The mechanical spring fatigues, and the contacts erode from arcing. Knowing how to test them and when to throw them in the bin is a core troubleshooting skill.
How to Test a Relay Dead (Bench Testing)
Remove the relay from the circuit and set your digital multimeter (DMM) to the resistance (Ω) or continuity setting.
- Test the Coil: Place probes across the coil terminals (A1/A2). You should read a specific resistance. For a standard 12V DC relay (like the Omron G2R-1), expect roughly 275Ω. For a 5V DC relay, expect around 70Ω. If it reads infinite (OL), the internal copper wire is broken. The relay is dead.
- Test the Contacts (Unenergized): Place probes across Common (C) and Normally Closed (NC). You should read near 0.0Ω (continuity). Place probes across C and Normally Open (NO). It should read infinite (OL).
- Test the Contacts (Energized manually): If it's a plug-in relay, apply the rated coil voltage from a bench supply. You should hear a distinct "click." Re-measure C to NO (should be 0.0Ω) and C to NC (should be OL).
How to Test a Relay Live (In-Circuit Voltage Drop)
Continuity tests on a DMM use milliamps of current. A pitted, carbonized contact might pass a DMM continuity test but completely fail under a 5A load. To test under real conditions, use the voltage drop method.
- Energize the relay so the contacts close and the load runs.
- Set your DMM to DC or AC Voltage (matching the load).
- Place one probe on the Common terminal and the other probe on the NO terminal.
- The Verdict: A healthy closed contact will show a voltage drop of less than 50 millivolts (0.05V). If you read greater than 1.0V across the closed contacts, the internal silver-alloy plating is severely pitted or carbonized. The relay is dropping voltage, generating internal heat, and must be replaced.
When to Repair vs. Replace
The short answer: Always replace. Electromechanical relays are manufactured as sealed or semi-sealed units.
A dangerous myth in older trade circles is that you can open a relay and "clean" the contacts with a file or sandpaper. Never do this. Relay contacts are not solid metal; they are plated with specific alloys (like silver-cadmium oxide or silver-tungsten) designed to resist arc welding and material transfer. Filing or sanding the contacts removes this micro-thin plating, exposing the base brass or copper. The relay will weld itself shut on the very next switching cycle, potentially causing a fire or destroying the connected load.
Replace the relay immediately if:
- The coil reads open (infinite resistance).
- The live voltage drop across closed contacts exceeds 1.0V.
- The contacts are welded shut (continuity remains when the coil is de-energized).
- There is any visible melting, discoloration, or a burnt ozone smell emanating from the relay housing.






