A relay in electronics is an electrically operated switch that uses an electromagnet to mechanically isolate and control a high-power load circuit with a low-power control signal. Whether you are driving a 12V DC solenoid from an ESP32 GPIO pin or switching a 120V AC mains heater with an Arduino, the fundamental physics remain identical. However, misreading the datasheet or ignoring load-specific derating will result in welded contacts, fried driver transistors, or premature failure. This guide breaks down the exact parameters you need to select, wire, and test electromechanical relays on the bench.
Decoding Relay Ratings: Coil vs. Contact Side
The most common mistake beginners make is conflating the coil specifications with the contact specifications. A relay features two entirely isolated circuits: the coil side (control) and the contact side (load). Galvanic isolation between these two sides is what makes the relay in electronics so valuable for protecting sensitive microcontrollers from high-voltage transients.
When reading a datasheet for a standard component like the Omron G2R-1-E or the ubiquitous Songle SRD-05VDC-SL-C, you must evaluate two distinct sets of ratings:
| Parameter | Circuit Side | Typical Values | What It Dictates |
|---|---|---|---|
| Coil Voltage | Control (Coil) | 5VDC, 12VDC, 24VDC, 120VAC | The exact voltage required to generate enough magnetic force to pull the armature and close the contacts. |
| Coil Resistance | Control (Coil) | 70Ω (5V), 400Ω (12V) | Determines the current draw from your driver circuit (I = V/R). A 5V/70Ω coil draws ~71mA. |
| Contact Rating | Load (Contacts) | 10A @ 250VAC, 10A @ 30VDC | The maximum continuous steady-state current the contacts can carry without overheating. |
| Breaking Capacity | Load (Contacts) | Max switching voltage/current | The maximum energy the relay can safely interrupt without sustaining an internal arc. |
When wiring the coil side of a DC relay, you must install a flyback diode (e.g., 1N4007 or 1N4148) in reverse bias across the coil pins. When the driving transistor turns off, the collapsing magnetic field in the coil induces a massive reverse voltage spike (often exceeding 100V). Without a diode to recirculate this current, the spike will instantly destroy your driving BJT, MOSFET, or microcontroller GPIO pin. AC coils do not require this specific diode protection, though they may use RC snubbers.
Load-Type Selection Decision Path
A relay rated for "10A at 250VAC" cannot universally switch 10A of any load type. The governing rating column changes entirely based on the physics of the load you are switching. Inductive and motor loads generate severe arcing upon contact opening, while tungsten lamps draw massive inrush currents upon closing. Use the decision tree below to determine which rating column governs your specific application and how to derate the nominal contact specification.
| Load Type | Governing Rating Column | Derating Factor | Physical Behavior & Edge Cases |
|---|---|---|---|
| Resistive (Heaters, Resistors) | Nominal Contact Rating | None (Use 100% rating) | Current is in-phase with voltage. No inrush, no inductive kick. Easiest load to switch. |
| Inductive (Solenoids, Contactors) | Breaking Capacity (DC/AC) | Derate by 30% - 50% | Collapsing magnetic field causes high-voltage arcing when contacts open. Requires AgSnO2 (Silver Tin Oxide) contact material for arc resistance. |
| Motor (Pumps, Fans, Compressors) | Motor Load Rating (FLA/LRA) | Derate by 70% - 80% | Locked Rotor Amps (LRA) can be 6x the Full Load Amps (FLA). Contacts must withstand massive closing inrush and opening inductive arcs. |
| Tungsten / Lamp | Inrush / Lamp Rating | Derate by 80% - 85% | Cold filament resistance is extremely low. Inrush current is 10x to 15x the steady-state operating current, risking contact welding on closure. |
Reference: For deeper application guidelines on contact materials and load derating, consult the Omron Global Relays technical documentation or standard electromechanical switching theory.
Bench Testing: Dead and Live Diagnostics
Before soldering a relay to a custom PCB or wiring it into a control panel, you must verify its mechanical and electrical integrity. Here is the exact procedure for testing a relay dead (unpowered) and live (under operating conditions).
1. Dead Testing (Multimeter in Ohms/Continuity)
- Test the Coil: Set your multimeter to resistance (Ω). Place probes across the coil pins (usually A1 and A2, or the two isolated pins on a PCB relay). A healthy 5VDC Songle relay will read approximately 70Ω. A 12VDC Omron G2R will read around 400Ω. If the meter reads "OL" (Open Loop), the internal coil wire is broken. The relay is dead.
- Test the Contacts (NC/COM): With the coil unpowered, measure between the Common (COM) and Normally Closed (NC) pins. The reading must be less than 1Ω (ideally <0.2Ω).
- Test the Contacts (NO/COM): Measure between COM and Normally Open (NO). The meter must read "OL". If it reads continuity, the contacts are welded shut from a previous over-current event.
2. Live Testing (Voltage and Load Drop)
- Verify Coil Actuation: Apply the nominal DC coil voltage (e.g., 5.0V from a bench power supply). You should hear a distinct, sharp mechanical "click". If you hear a buzz or chatter, your coil voltage is too low, or you are accidentally feeding AC into a DC coil.
- Measure Contact Voltage Drop: Wire a known load (e.g., a 12V 5A halogen lamp) through the COM and NO contacts. While the relay is energized and the load is running, set your multimeter to DC millivolts (mV). Place the probes directly on the COM and NO solder terminals. A healthy relay will show a voltage drop of <50mV. If the drop exceeds 200mV, the internal contacts are pitted, carbonized, or oxidized, causing excessive heat generation.
3. When to Repair vs. Replace
Electromechanical relays in electronics are non-serviceable components. If the coil is open, or if the contacts are welded, pitted, or exhibiting high resistance, replace the entire relay. A common and dangerous myth is that you can open the plastic relay housing and "clean" or file the contacts with sandpaper. Filing removes the engineered silver-alloy plating (like AgCdO or AgSnO2), exposing the base brass or copper. This will cause the relay to fail catastrophically and potentially catch fire on the next high-current switching cycle. Always discard and replace.
Relay in Electronics: Frequently Asked Questions
Why is my relay in electronics chattering or buzzing loudly?
Chattering usually stems from three distinct issues. First, if you are using an AC coil relay, a missing or damaged copper shading ring on the armature core will cause the magnetic field to drop to zero 120 times a second (on a 60Hz grid), resulting in a loud 120Hz mechanical buzz. Second, if using a DC coil relay driven by a microcontroller PWM or a poorly filtered power supply, AC ripple on the DC coil voltage can cause the armature to rapidly oscillate near the dropout voltage threshold. Third, mechanical resonance from the mounting surface can amplify normal operating noise. Ensure your DC coil supply is clean and regulated, and verify the shading ring is intact on AC variants.
Can I use a 12V DC relay in electronics to switch 120V AC mains?
Yes, provided the contact side ratings explicitly permit it. The coil voltage (12V DC) has absolutely no electrical relationship to the contact switching voltage (120V AC). However, you must verify two things: first, that the contact rating covers 120V AC at your required amperage; second, that the physical relay package provides adequate creepage and clearance distances (typically >6mm for mains isolation) between the coil pins and contact pins on the PCB footprint. If the spacing is too tight, a mains transient can arc across the PCB and destroy your low-voltage microcontroller.
Solid state relay vs electromechanical relay in electronics: which to choose?
Choose an electromechanical relay (EMR) when you need a near-zero voltage drop across closed contacts (minimizing heat dissipation), when you need to switch both AC and DC loads with the same component, or when budget is a primary constraint. Choose a Solid State Relay (SSR) when you need to switch loads at high frequencies (like PWM heating control), when the environment has high mechanical vibration, or when you require silent operation. Be aware that SSRs suffer from a forward voltage drop (typically 1.2V to 1.5V for AC triac-based SSRs), which generates significant heat at high currents and almost always requires a dedicated heatsink.






