Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Project Documentation

Arduino UNO Controlled Relay Switch with LCD Interface and RTC Integration

Image of Arduino UNO Controlled Relay Switch with LCD Interface and RTC Integration

Circuit Documentation

Summary

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.

Component List

Arduino UNO

  • Microcontroller board based on the ATmega328P
  • Provides digital and analog I/O pins
  • Powers and communicates with other components in the circuit

1-Channel Relay (5V 10A)

  • Electromechanical switch that allows control of a high-power circuit by a low-power signal
  • Used to control the AC gong

MKE-M07 LCD1602 I2C

  • Alphanumeric liquid crystal display with 16 characters and 2 lines
  • Uses I2C communication for displaying information

Rocker Switch

  • A simple on/off switch
  • Used to manually control the relay

RTC DS3231

  • A real-time clock module for timekeeping
  • Provides accurate time and date

AC Wall Plug Point

  • Provides AC power to the circuit
  • Connects to the relay to control the gong

Gong

  • An AC-powered device that produces a sound when activated
  • Controlled by the relay

Wiring Details

Arduino UNO

  • D4 connected to Relay signal pin
  • GND connected to common ground net
  • 5V connected to common 5V power net
  • SDA connected to I2C data line
  • SCL connected to I2C clock line

1-Channel Relay (5V 10A)

  • signal connected to Arduino UNO D4
  • ground connected to common ground net
  • power connected to common 5V power net
  • NC (Normally Closed) connected to rocker switch input
  • C (Common) connected to AC wall plug point N
  • NO (Normally Open) connected to rocker switch output

MKE-M07 LCD1602 I2C

  • GND connected to common ground net
  • 5V connected to common 5V power net
  • SDA connected to I2C data line
  • SCL connected to I2C clock line

Rocker Switch

  • input connected to Relay NC
  • output connected to Gong and Relay NO

RTC DS3231

  • GND connected to common ground net
  • VCC connected to common 5V power net
  • SDA connected to I2C data line
  • SCL connected to I2C clock line

AC Wall Plug Point

  • N connected to Relay C
  • L connected to Gong

Gong

  • Connected to AC wall plug point L and rocker switch output

Documented Code

Arduino UNO - sketch.ino

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

}

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

}

Arduino UNO - documentation.txt

(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.)