Relay Module Project
The Relay Module project demonstrates how to control a relay using an Arduino Mega. The relay can be used to control high-power devices like lights, fans, or other electronic devices by switching them on or off.
Components Needed
- Arduino Mega
- Relay Module
- Jumper Wires
- Power Supply for the device controlled by the relay
- Breadboard
- Power Supply
Block Diagram
Circuit Setup
Connecting the Relay Module to Arduino Mega:
Connecting the Device to the Relay:
Instructions
Code Upload:
Open the Arduino IDE and create a new sketch.
Copy and paste the provided Arduino code into the sketch.
Upload the code to the Arduino Mega.
Testing:
Open the Serial Monitor in the Arduino IDE (set to 9600 baud) to monitor the output.
Observe the relay turning on and off every 2 seconds, controlling the connected device.