ChatDiagram
arduino · relay-control

Arduino Relay Module Control

An Arduino relay interface lets a low-current microcontroller output switch a separate load circuit. In this example, the Arduino output drives a 5 V relay module and the relay contact switches a 12 V lamp supply. Keeping the load supply separate makes the control and load roles clear, while the relay contact provides the switching boundary. A diode across a bare DC relay coil reduces the turn-off voltage spike; ready-made relay modules often include this protection already. Do not use a breadboard relay circuit for mains wiring. For larger DC loads, confirm the contact rating, wire gauge, fuse, and the need for a flyback diode across the load itself.

Type Circuit schematicStandard IEEE Std 315 / ANSI Y32.2Engine schematex-circuitUpdated 9/24/2026
Arduino Relay Module Control
Drawing preview
The request

“Draw an Arduino Uno controlling a 5 V relay module from a 5 V logic supply, with the relay switching a separate 12 V lamp load and a coil diode.”

Then tryChange the lamp to a 12 V fan.Add a pushbutton input to the Arduino.
What is in this drawing

Read the decisions behind it.

01Logic

Keep the Arduino on its 5 V control supply.

02Switching

Use relay contacts for the separate 12 V load.

03Protection

Suppress the relay coil voltage spike.

Use for an Arduino project that switches a low-voltage DC load through a relay.

More like this

Other examples in this family.

Browse all circuit diagram templates →

FAQ

Common questions

Why use a relay with an Arduino?

A relay lets a low-current logic output switch a separate higher-voltage or higher-current circuit.

Does a relay module need a diode?

Bare relay coils do; many relay modules include a transistor driver and diode on the module.

Can this switch mains voltage?

Use properly rated, enclosed hardware and qualified installation for mains circuits; this example is a low-voltage load.