Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

Arduino-Controlled Relay Switch for AC Bulb with RTC Synchronization

View and Edit Project In Cirkit DesignerImage of Arduino-Controlled Relay Switch for AC Bulb with RTC Synchronization

Circuit Documentation

Summary

The circuit in question is designed to control an AC bulb using a 1-Channel Relay module, which is interfaced with an Arduino UNO microcontroller. The Arduino UNO also communicates with an RTC DS3231 module to keep track of real-time. A 5V Adapter provides power to the circuit. The relay module enables the Arduino to switch the high-voltage AC bulb on and off. The RTC module allows for time-based control if programmed accordingly.

Component List

Arduino UNO

1-Channel Relay (5V 10A)

AC Bulb

Power 220v

RTC DS3231

5V Adapter

Wiring Details

Arduino UNO

1-Channel Relay (5V 10A)

AC Bulb

Power 220v

RTC DS3231

5V Adapter

Documented Code

Arduino UNO Code (sketch.ino)

void setup() {
  // put your setup code here, to run once:

}

void loop() {
  // put your main code here, to run repeatedly:

}

The provided code is a template with empty setup() and loop() functions. The setup() function is intended for initialization code that runs once at the start, while the loop() function contains the main code that runs repeatedly. Actual functionality must be implemented within these functions to control the relay and interact with the RTC module.