This circuit is designed to interface an Arduino UNO with a 1-Channel Relay, an MKE-M07 LCD1602 I2C display, an RTC DS3231 real-time clock, and a rocker switch to control an AC-powered gong. The Arduino UNO serves as the central microcontroller, managing the interactions between the relay, the display, the real-time clock, and the switch. The relay is used to control the power to the gong, while the LCD and RTC provide a user interface and timekeeping functionality, respectively.
D4
connected to Relay signal pinGND
connected to common ground net5V
connected to common 5V power netSDA
connected to I2C data lineSCL
connected to I2C clock linesignal
connected to Arduino UNO D4
ground
connected to common ground netpower
connected to common 5V power netNC
(Normally Closed) connected to rocker switch input
C
(Common) connected to AC wall plug point N
NO
(Normally Open) connected to rocker switch output
GND
connected to common ground net5V
connected to common 5V power netSDA
connected to I2C data lineSCL
connected to I2C clock lineinput
connected to Relay NC
output
connected to Gong and Relay NO
GND
connected to common ground netVCC
connected to common 5V power netSDA
connected to I2C data lineSCL
connected to I2C clock lineN
connected to Relay C
L
connected to GongL
and rocker switch output
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
(No additional documentation provided for the code)
(Note: The actual functionality of the code is not provided in the input, so the code section only includes the template for an Arduino sketch. Additional code would be needed to control the relay, read the time from the RTC, and display information on the LCD.)