Relays are a great way to control high-voltage or high-current devices like lamps, motors, or appliances with a low-power microcontroller like an Arduino. In this post, I’ll show you how to get started with a relay, a button, and an Arduino.
Whether you're just starting out or adding a relay to your DIY automation project, this guide is perfect for beginners.
What is a Relay?
A relay is an electrically operated switch. It allows one circuit (like your Arduino) to control another circuit (like a lamp or fan) without direct electrical connection. This is useful when the controlled circuit operates at a different voltage or current level than the Arduino.
What You Need
| Component |
Description |
| Arduino (Uno, Nano, etc.) |
Your microcontroller brain |
| Relay Module |
1-channel 5V relay |
| Push Button |
To trigger the relay |
| 10kΩ Resistor |
Used for button pull-down |
| Jumper Wires |
For connections |
| Breadboard |
for prototyping |
Schematic