Arduino Uno Relay Module
This project demonstrates how to control a relay module using an Arduino Uno and monitor its status using the Serial Monitor.
A relay is an electrically operated switch that allows you to control high-power devices with a low-power signal.
Components Needed
- Arduino UNO
- Relay Module
- Jumper Wires
- Breadboard
Hardware Wiring Explanation:
Connect Relay Module to Arduino Uno:
Connect the signal input of the relay module to digital pin 7 on the Arduino.
Connect the VCC and GND of the relay module to the 5V and GND of the Arduino, respectively.
Wire up the relay module to the Arduino Uno as per the circuit setup section.
Software (Arduino IDE):
Open the Arduino IDE and create a new sketch.
Copy and paste the provided Arduino code into the sketch.
Project Operation:
Upload the code to the Arduino Uno.
Open the serial monitor with a baud rate of 9600.
Observe the messages indicating the state of the relay (ON or OFF).
Applications
Notes
Ensure the relay module is rated appropriately for the devices you intend to control.
Check the datasheet of your relay module for correct wiring and operational limits.
Use external power sources or relays with optocouplers for higher reliability and isolation.