Relay Module
Module
A pre-assembled PCB with one or more relays plus drive transistors, flyback diodes, and optocouplers. Lets a 3.3V or 5V microcontroller safely switch 10A mains or 24V DC loads with a single logic pin.
Schematic symbol
Relay
How relay module appears in a circuit diagram.
Types & variants
Key specs
Switching capacity
ATypically 10A at 250VAC or 30VDC. Bigger modules handle 16A or 30A.
Coil voltage
V5VDC (Arduino), 12VDC, 24VDC. Module VCC pin must match.
Trigger current
mA5–15mA per channel via optocoupler. MCU pin can drive directly.
Trigger level
—Active-low (common) or active-high. Check module docs carefully.
Isolation
—Optocoupler isolation rated 5000Vrms. JD-VCC jumper separates logic and coil supplies.
Markings
Channel count printed on PCB (1/2/4/8). Relay markings: e.g. SRD-05VDC-SL-C (5V coil, 10A). Terminal blocks labeled NO (normally open), COM (common), NC (normally closed). Headers: VCC, GND, IN1, IN2…
Standard values
Common modules: 1-ch (5V active-low), 4-ch (5V active-low), 8-ch (5V active-low). Relay: SRD series (10A) or SLA series (16A). JD-VCC jumper connects logic VCC to relay VCC by default.
How to choose
1) Match coil voltage to your supply (5V for Arduino, 3.3V for Pi — use 5V relay with transistor or level shifter). 2) Active-low is most common but check. 3) Pick channel count for number of loads. 4) Opto-isolate if switching mains. 5) For frequent switching, consider SSR module instead.
Pinout & package
1-channel relay module — control header
Check first: Most cheap modules are active-LOW: the relay pulls in when IN is driven to 0 V. The switched side is the screw terminal block — NO, COM and NC — which must stay isolated from the logic wiring.
PCB with 3-pin control header per channel (VCC, GND, IN). Power header (JD-VCC, VCC, GND) for relay supply. Output: 3-way screw terminal per channel (NO, COM, NC). Status LEDs show power and per-channel activation.
Example circuits
- Arduino controls a table lamp via 1-channel relay module
- ESP8266 WiFi smart switch with 4-channel relay module
- Raspberry Pi garden irrigation (4 solenoid valves on 4-channel module)
- Home automation mains distribution (8-channel module for whole-room control)
- Solid-state relay module for PID-controlled heater (frequent switching)
Common failures
Relay contacts weld shut from inductive loads (motors, solenoids) switched without flyback/snubber. Coil transistor burns out from overcurrent. Optocoupler fails from ESD. Mains wiring mistakes cause fires — always insulate and double-check before powering.
How to test
Power VCC + GND. Apply trigger (HIGH or LOW per module spec) to IN pin. You should hear a click and see the status LED light. Multimeter continuity: COM-NO closes when triggered, COM-NC opens. For mains, never test with power on until wiring is verified.
Substitutes
Bare relay + transistor + diode circuit (DIY equivalent). MOSFET module for DC-only low-voltage loads. Solid-state relay for silent AC switching. Contactor for industrial currents.