An electrical relay is an electromechanical switch where a low-power control circuit (the coil) magnetically actuates a high-power load circuit (the contacts). If you need to switch a 240V AC compressor drawing 15A using a 12V DC signal drawing just 75mA from a microcontroller or thermostat, a relay provides the galvanic isolation and current multiplication required to do it safely. Think of it like a hydraulic pilot valve: a tiny amount of control pressure opens a massive main valve to let the heavy flow through.

Before wiring anything, understand this critical distinction: a relay is a switch, not a protective device. Unlike a circuit breaker, a relay has no thermal or magnetic trip curve. It will happily attempt to hold a 100A dead short until the contacts weld shut or the upstream wiring catches fire. You must always pair a relay's load side with a properly sized fuse or breaker to handle fault currents.

Coil vs. Contact: Wiring the Two Halves of the Circuit

A standard electromechanical relay is physically divided into two isolated halves. Mixing these up is the most common cause of fried control boards on the bench.

The Coil Side (Control Circuit)

On a standard ISO-style automotive or industrial relay, the coil pins are typically labeled 85 and 86 (or A1 and A2 on DIN-rail contactors). The coil is simply an inductor—a spool of fine copper wire. Polarity does not matter for standard DC coils, but if your relay has an internal suppression diode, the positive must go to the designated pin (usually 86).

Warning: The DC Flyback Diode Requirement
When a DC coil de-energizes, the collapsing magnetic field generates a reverse voltage spike (often 10x to 50x the supply voltage). If you are driving a 12V relay directly from an ESP32 GPIO, an Arduino, or a ULN2003 Darlington array without a 1N4007 flyback diode wired in reverse-bias across pins 85 and 86, that inductive kickback will punch through the silicon and permanently brick your microcontroller. Always use a flyback diode for DC coils.

The Contact Side (Load Circuit)

The heavy-duty switching pins handle the actual load. Standard numbering dictates:

  • 30 (or COM): The common input, usually fed by your main power source.
  • 87 (or NO): Normally Open. Connects to 30 only when the coil is energized.
  • 87a (or NC): Normally Closed. Connects to 30 when the coil is de-energized, breaking when the coil pulls in.

Reading the Datasheet: Which Rating Column Governs?

Beginners often look at the big bold "30A" printed on the side of a relay and assume it can switch any 30A load. This is a fast track to melted terminals. Relay datasheets break capacity down by load type because inductive and motor loads generate massive arcing when contacts open.

Standard Relay Rating Table (Example: 30A Automotive/Power Relay)
Specification Typical Value What It Actually Means
Coil Voltage 12V DC / 24V DC / 120V AC The exact voltage required to pull the armature in. Must match your control signal.
Contact Rating (Resistive) 30A at 14V DC / 250V AC Maximum continuous current for purely resistive loads (heaters, incandescent bulbs). No inrush or inductive arcing.
Breaking Capacity (Inductive) 10A at 14V DC (L/R=7ms) The safe switching limit for solenoids and coils. Inductive loads arc heavily upon opening, pitting the contacts.
Motor / HP Rating 1 HP at 120V AC (LRA 15A) Governs motor loads. LRA (Locked Rotor Amps) accounts for the 5x-7x inrush current when a motor starts.

Which column governs your load? If you are switching a motor, the Motor/HP rating (specifically the LRA) governs. If you are switching a solenoid or transformer, the Inductive Breaking Capacity governs. Never use the Resistive column for anything with a winding.

Load-Type Decision Path: Sizing and Selection

Use this decision tree to size your relay contacts based on the physics of your specific load. For all scenarios below, assume a 25°C ambient environment and standard copper wiring.

Pro-Tip: The 80% Derating Rule
If your relay is enclosed in a sealed project box or mounted near other heat-generating components, derate the resistive contact capacity by 20%. A 30A relay in a hot box is effectively a 24A relay.

The Selection Decision Tree

Load Type Characteristics Sizing Rule Concrete Example
Resistive Heating elements, incandescent lighting. Steady state current, minimal arcing. Size at 100% of the nominal load current. 10A heater requires a relay rated for at least 10A resistive.
Inductive Solenoids, valves, contactor coils. High inrush, severe opening arc. Size at 30% to 50% of the resistive rating. 5A solenoid requires a relay with a 15A+ resistive rating.
Motor Compressors, pumps, fans. Massive LRA inrush, inductive opening arc. Check the relay's specific HP/LRA rating. Usually 1/6th of resistive rating. 1/2 HP pump (approx 6A FLA, 15A LRA) requires a 1HP rated relay.

Terminating the Decision: The Concrete Pick

If you are building a DIY smart sump pump controller or an automated HVAC damper and need a reliable, board-mountable power relay to switch a 120V AC 1/2 HP motor load using a 12V DC ESP32/Arduino control signal, do not buy generic unbranded "30A" automotive cubes.

Default Pick: Use the Omron G7L-2A-BUB. It features a 12VDC coil, DPST-NO contacts, a 25A resistive rating, and crucially, a verified 1 HP motor rating at 120VAC. It is designed with high dielectric strength to handle the inductive kickback of motor windings without internal arcing. Pair it with a 1N4007 flyback diode across the coil pins, and it will outlast the pump itself.

Bench Testing: Dead and Live Diagnostics

When a circuit fails, you need to know if the relay is the culprit. Grab your digital multimeter (DMM) and follow this diagnostic path.

Dead Testing (Power Removed)

  1. Test the Coil: Set your DMM to Ohms (Ω). Place probes across pins 85 and 86 (or A1/A2). A healthy 12V DC relay coil typically reads between 100Ω and 400Ω. If it reads OL (open), the internal wire is broken. If it reads near 0Ω, the coil is shorted.
  2. Test the Contacts (De-energized): Place one probe on COM (30) and the other on NO (87). The meter should read OL. Move the second probe to NC (87a). The meter should read < 1.0Ω. If NO reads continuity while de-energized, the contacts are welded shut.

Live Testing (Under Load)

Resistance checks don't tell the whole story. A relay might show 0.5Ω on the bench, but under a 15A load, that half-ohm will dissipate over 100 watts of heat, melting the plastic housing.

  1. Apply the control voltage to the coil. You should hear a sharp, definitive click.
  2. With the load actively running, set your DMM to AC or DC Volts.
  3. Place your probes directly across the COM and NO pins.
  4. The Threshold: A healthy, clean relay will show a voltage drop of < 0.1V. If you measure a voltage drop > 0.2V across closed contacts under load, the internal contacts are severely pitted or carbonized. The relay is failing and must be replaced.

Repair vs. Replace: When to Bin a Burnt Relay

There is an old, dangerous myth in hobbyist circles that you can open a relay and "clean" the contacts with a nail file or sandpaper. Never do this.

Modern power relays use contacts plated with Silver Tin Oxide (AgSnO2) or Silver Cadmium Oxide (AgCdO). These materials are specifically engineered to resist welding and quench arcs. When a relay switches an inductive load hundreds of times, the surface beads and pits, which is normal. If you sand or file the contacts, you strip away this specialized oxide layer, exposing raw silver or copper underneath. On the very next switching cycle, the raw metal will arc, melt, and weld the contacts permanently together, potentially causing a fire or destroying your load.

When to Replace:

  • The coil reads open (OL) or shorted (< 5Ω).
  • NO contacts show continuity when the relay is de-energized (welded shut).
  • Live voltage drop across closed contacts exceeds 0.5V.
  • The plastic housing shows any brown heat discoloration or smells of ozone/burnt plastic.

The Verdict: Relays are consumable components, not repairable ones. When a relay fails its diagnostic tests, bin it. Replacing a $5 Omron or Finder relay takes two minutes and guarantees the next 100,000 switching cycles will be safe. For deeper reference on relay specifications and material science, consult the Macromatic Relay Guide or the classic All About Circuits chapter on relays.