An electrical relay works by using a low-power electromagnet (the coil) to mechanically close or open high-power electrical contacts. This physically isolates your sensitive control circuit—like an Arduino, ESP32, or low-voltage thermostat—from the high-current or high-voltage load it is switching. You send a few milliamps through the coil, and the relay switches amps of mains power to a motor or heater.
The Core Mechanism: Coil Side vs. Contact Side
To wire and troubleshoot a relay, you must treat it as two completely separate circuits that share a magnetic bridge. Understanding this isolation is the key to safe bench and jobsite wiring.
The Coil Side (Control Circuit)
The coil is simply a spool of fine enameled copper wire wrapped around an iron core. When you apply the rated voltage (commonly 5V, 12V, 24V DC, or 120V AC) across the coil pins, current flows and generates a magnetic field. This field pulls a spring-loaded steel armature, which in turn moves the contact block. Coil pins are typically marked A1 and A2 on industrial relays, or 85 and 86 on automotive ISO mini relays.
The Contact Side (Load Circuit)
The contacts carry the actual load current. A standard Single Pole Double Throw (SPDT) relay has three contact terminals:
- COM (Common): The moving contact attached to the armature. Your load's hot/live wire usually connects here.
- NO (Normally Open): Connects to COM only when the coil is energized.
- NC (Normally Closed): Connects to COM when the coil is de-energized. Breaks the circuit when the relay clicks on.
On industrial relays, these are numbered sequentially (e.g., 11, 12, 14 for a single SPDT block, or 95/96 for NC and 97/98 for NO on overload relays).
Decoding the Datasheet: Which Rating Column Governs Your Load?
The most common mistake hobbyists and junior techs make is looking only at the maximum amperage printed on the relay's plastic shell (e.g., "10A 250VAC"). That number is almost always the resistive rating. If you use that 10A relay to switch a 9A compressor motor, the contacts will weld shut on the first startup. Here is how to read the actual datasheet, using the industry-standard Omron G2R series as a baseline.
| Datasheet Parameter | Example Value (G2R-1-E) | What It Actually Means |
|---|---|---|
| Coil Voltage / Resistance | 12VDC / 275 Ω | Nominal control voltage. Draws ~43mA. Ensure your driver can source this current. |
| Contact Rating (Resistive) | 16A @ 250VAC | Maximum rating for heating elements or incandescent bulbs. Unity power factor (cos φ = 1.0). |
| Contact Rating (Inductive) | 5A @ 250VAC (cos φ = 0.4) | The governing rating for solenoids, contactor coils, and transformers. Notice the severe derating. |
| Breaking Capacity | Max 30A @ 250VAC | The absolute fault current the relay can interrupt before catastrophic failure. |
Selection Decision Path by Load Type
Use this decision tree to determine which rating column governs your specific application:
| Load Type | Governing Datasheet Column | Derating Factor & Inrush Notes |
|---|---|---|
| Resistive (Heaters, Toasters) | Resistive / AC-1 | Use 80% of max rating for continuous duty. Inrush is negligible. |
| Inductive (Solenoids, Valves) | Inductive / AC-11 / cos φ = 0.4 | Derate by 50-70%. The magnetic field collapse causes severe arcing across contacts upon opening. |
| Motor (Pumps, Compressors) | Motor / HP / TV-5 / AC-3 | Motor inrush (Locked Rotor Amps) is 6x to 10x the Full Load Amps (FLA). The relay must survive this inrush without welding. |
Bench Testing: Dead and Live Diagnostics
When a circuit fails, you need to know if the relay is the culprit. Grab your multimeter and follow this diagnostic path.
Dead Testing (Power Removed)
Set your multimeter to Resistance (Ohms) mode.
- Test the Coil: Place probes across A1 and A2. A healthy 12VDC relay should read between 100 Ω and 400 Ω. If it reads OL (infinite), the internal coil wire is snapped. If it reads 0 Ω, the coil is shorted.
- Test NC Contacts: With the coil unpowered, place probes on COM and NC. It should read < 1 Ω. If it reads higher, the contacts are pitted or carbonized.
- Test NO Contacts: Probes on COM and NO should read OL. Now, apply the rated DC voltage to the coil (you should hear a distinct click). The COM to NO reading should immediately drop to < 1 Ω.
Live Testing (Energized Under Load)
Set your multimeter to Voltage mode (AC or DC matching the load).
- Measure Voltage Drop Across Contacts: With the relay energized and the load running, place your probes on the COM terminal and the NO terminal. A healthy relay will show a voltage drop of less than 50mV (0.05V). If you read > 0.5V, the contacts are degrading and generating excessive heat.
- Check Coil Supply Sag: Measure the voltage at A1 and A2 while the load is running. If it drops below 75% of the nominal coil voltage, the relay may drop out unexpectedly.
When to Repair vs. Replace
Never attempt to open and repair a sealed PCB relay, automotive cube relay, or any relay rated under 15A. The cost of a replacement (usually $3 to $15) is vastly lower than the risk of an electrical fire caused by misaligned armatures. If you are working with heavy-duty industrial contactors (e.g., Schneider TeSys or Eaton C440 series handling 50A+), you can replace the arc chutes and contact blocks. However, if you find welded contacts on any relay, do not just swap the part. Welded contacts mean the relay failed catastrophically; you must diagnose the root cause (usually an underrated inrush load or lack of a snubber circuit) before installing the new unit.
Frequently Asked Questions
How does an electrical relay work with a microcontroller like an ESP32?
An ESP32 GPIO pin can only safely source about 12mA, while a standard 5V relay coil requires 70mA to 90mA. You cannot wire the coil directly to the ESP32. You must use a logic-level N-channel MOSFET (like a 2N7000) or a Darlington driver IC (like the ULN2003) to act as a current amplifier. The ESP32 triggers the gate/base of the driver, and the driver switches the ground path for the relay coil. Always remember the flyback diode across the coil to protect the driver IC.
Why does my AC relay chatter or buzz loudly?
AC relays rely on a small copper loop called a "shading ring" embedded in the armature face to maintain the magnetic field during the zero-crossings of the AC sine wave. If the relay buzzes loudly, the shading ring is likely cracked or broken, causing the armature to rapidly vibrate at 120Hz (on a 60Hz supply). Alternatively, your control voltage might be sagging below the relay's 75% pull-in threshold, leaving the magnetic field too weak to fully seat the armature. In either case, replace the relay.
Can I use a DC relay to switch an AC load?
Yes, but with caveats. The contacts on a standard electromechanical relay do not care if they are switching AC or DC; in fact, AC is easier on contacts because the zero-crossing naturally helps extinguish the electrical arc. However, the coil is strictly rated for its control voltage. You cannot apply 120VAC to a 12VDC coil—it will instantly burn out. As long as you supply the correct control voltage to the coil, the contacts can switch the AC load, provided you adhere to the AC contact rating column in the datasheet.
What is the difference between a relay and a contactor?
While both operate on the same electromechanical principle, contactors are designed for high-power loads (typically >15A or fractional horsepower and up). Contactors feature dedicated arc chutes to extinguish the massive plasma arcs generated when interrupting heavy inductive motor loads, and they almost exclusively use Normally Open (NO) contacts to ensure failsafe operation. Relays are used for lower-power control circuits, signal routing, and loads under 15A, and frequently include Normally Closed (NC) contacts for interlocking logic.






