relay module circuit diagram
This is a free printable relay module circuit diagram: download the diagram as SVG or open it and print to paper or PDF.
A relay module circuit diagram shows the fundamental relay circuit architecture: a low-current control signal (from a switch, sensor, or logic circuit) triggering an electromagnet that mechanically switches high-current power circuits. The diagram identifies: control input signal (typically 5-12V), relay coil inductance creating magnetic field when energized, mechanical armature pivoting to open or close switch contacts, and the high-current switched circuit (load power). Relay modules (PCB-mounted assemblies) integrate multiple relays with supporting circuitry: RC snubber networks protecting contacts from arcing, LED indicators showing relay state, and logic inputs accepting multiple triggering sources. The diagram shows how a 100mA control signal can switch 30A load current through the same relay, enabling compact controller designs without large-current switching capability. Automotive relay modules include built-in fuses, diodes for back-EMF suppression, and connectors facilitating plug-and-play installation. Understanding relay module circuits enables proper supply voltage selection, load circuit protection sizing, and troubleshooting of intermittent switching failures.
How to wire relay module circuit diagram
- Identify module type and trigger logic Determine whether your relay module is active-high or active-low before writing control code or wiring the control input. Test by connecting the control input to GND — if the relay clicks on, it is active-low. If it needs 5 V to trigger, it is active-high. Most blue-PCB single-channel modules from Chinese suppliers are active-low.
- Separate control and load power supplies Power the relay coil and module from a dedicated 5 V supply. Do not power a relay module that will switch mains voltage from the same 5 V rail supplying your microcontroller. Voltage spikes and ground bounce from relay operation on a shared supply cause microcontroller resets and I2C/SPI communication errors.
- Connect the control input Connect the microcontroller GPIO output to the IN pin of the relay module through the optocoupler input. For an active-low module, the GPIO must be set HIGH by default and pulled LOW to activate the relay. Confirm the GPIO output voltage matches the module's VCC level — a 3.3 V GPIO driving a 5 V input may not trigger reliably without a level shifter.
- Wire the load circuit to the relay terminals The relay has three load terminals: COM (common), NO (normally open), and NC (normally closed). For a standard switch-on circuit, connect the load supply to COM and the load to NO. The circuit completes only when the relay is energised. For a fail-safe circuit that should be on by default, use NC.
- Install a snubber for AC inductive loads For AC motor or solenoid loads, add a snubber network (100 Ω resistor in series with a 100 nF / 400 V capacitor) across the relay load terminals. This suppresses contact arcing on AC inductive loads, which otherwise pits the relay contacts and reduces the number of switching cycles significantly.
- Test the switching action With the load circuit de-energised, test the relay switching action by setting the control GPIO. Listen for the relay click and measure continuity between COM and NO with a multimeter. Then energise the load circuit and test functional operation. Always test relay operation before connecting a mains-voltage load.
- Enclose if switching mains voltage Any relay module switching 220–240 V mains must be mounted inside an enclosure that prevents accidental contact with live terminals. Relay modules on bare PCBs with mains voltage present are a lethal shock risk. Use a project enclosure with cable glands for mains entry and a separate low-voltage section for the control wiring.
Frequently asked questions
What is a relay module circuit and how does it work?
A relay module circuit uses a low-power control signal (typically 5 V or 3.3 V from a microcontroller) to switch a high-power load circuit through an electromagnetic relay. The control signal energises the relay coil via a transistor driver and optocoupler for isolation, allowing a microcontroller GPIO to safely switch mains voltage or high-current DC loads.
What is the difference between an active-high and active-low relay module?
An active-high relay module triggers the relay when the control input receives a HIGH signal (3.3–5 V). An active-low relay module triggers when the control input receives a LOW signal (0 V or GND). Many commonly available single-channel relay boards are active-low, meaning the relay is ON when the control pin is grounded — the opposite of what many beginners expect.
Do I need to isolate the relay module power supply from the microcontroller?
For switching mains voltage loads, yes. Use a relay module with an optocoupler-isolated control input, and power the relay coil from a separate 5 V supply rather than from the microcontroller's supply rail. This prevents voltage spikes from the relay coil back-EMF feeding into the microcontroller and causing unexpected resets or damage.
What does the flyback diode on a relay module do?
When the relay coil is de-energised, the collapsing magnetic field generates a voltage spike (back-EMF) that can reach hundreds of volts for a brief moment. The flyback diode, connected in reverse parallel across the coil, provides a path for this spike current to circulate through the coil itself, clamping the spike and protecting the transistor driver.
What is the maximum load I can switch with a typical SRD-05VDC-SL-C relay module?
The SRD-05VDC-SL-C relay used on most low-cost modules is rated at 10 A / 250 V AC or 10 A / 30 V DC. In practice, derate this to 70% for continuous inductive loads — so 7 A continuous on AC and 7 A on DC for relay and load longevity. The PCB trace on cheap modules is often the real limiting factor, not the relay specification.
Related diagrams
- 12v relay module circuit diagram
- 5 wires universal power supply module circuit diagram
- relay circuit diagram
- relay circuit diagram 12v
- 1 to 4 demultiplexer circuit diagram
- 11 pin relay wiring diagram