ARDUINO

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.

UPDATED 2026-09-24
EXAMPLEArduino Relay Module Control
Make this diagram your own.

Open it in the AI editor with a prompt pre-filled — keep what works, change what doesn't.

CASE ANALYSIS

Scenario

Arduino-controlled isolated load

Key decisions

  • Logic: Keep the Arduino on its 5 V control supply.
  • Switching: Use relay contacts for the separate 12 V load.
  • Protection: Suppress the relay coil voltage spike.

When to reuse this

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

FAQ

Frequently asked questions

Why use a relay with an Arduino?01
A relay lets a low-current logic output switch a separate higher-voltage or higher-current circuit.
Does a relay module need a diode?02
Bare relay coils do; many relay modules include a transistor driver and diode on the module.
Can this switch mains voltage?03
Use properly rated, enclosed hardware and qualified installation for mains circuits; this example is a low-voltage load.
Open this example in the editor →

Tweak it with chat, export PNG/SVG, or fork it for your own use case.