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

ESP32-Controlled Time-Triggered Relay System with LCD Feedback

Image of ESP32-Controlled Time-Triggered Relay System with LCD Feedback

Circuit Documentation

Summary of the Circuit

This circuit appears to be designed for timekeeping and control applications, featuring an ESP32 microcontroller, an RTC DS3231 for real-time clock functionality, a 4-channel 5V relay module for controlling external devices, two buzzers for audio signaling, and an LCD screen with I2C interface for display purposes. The circuit also includes a 7805 voltage regulator, a 12V to 5V step-down power converter, and various resistors for voltage/current adjustments. A rocker switch and a pushbutton are included for user interaction. The power supply is an AC source, which is stepped down and regulated for the circuit's requirements.

Component List

ESP32 (30 pin)

  • Microcontroller with WiFi and Bluetooth capabilities.
  • 30 GPIO pins including analog inputs, digital I/O, UART, I2C, and power pins.

RTC DS3231

  • Real-time clock module for timekeeping.
  • Includes pins for I2C communication and power.

Relay 4 Channel 5v

  • 4-channel relay module for controlling high power devices.
  • Includes input pins for control signals, common (COM), normally open (NO), and normally closed (NC) contacts for each channel.

Buzzer

  • Audio signaling device.
  • Includes a positive and a ground pin.

LCD screen 16x2 I2C

  • Alphanumeric liquid crystal display with 16 characters by 2 lines.
  • I2C interface for communication.

Pushbutton

  • A momentary pushbutton switch.
  • Four pins for switch connections.

7805

  • Voltage regulator providing a 5V output.
  • Three pins for input voltage, ground, and output voltage.

Resistor

  • Passive component used to limit current or divide voltages.
  • Two pins for electrical connection.

12v to 5v Step Down Power Converter

  • Converts input voltages from 9V-36V to a stable 5V output.
  • Multiple pins for input, output, and ground connections.

AC Supply

  • Provides alternating current power supply.
  • Two pins for positive and negative voltage.

Rocker Switch (SPST)

  • Single Pole Single Throw (SPST) rocker switch.
  • Two pins for switch connections.

Wiring Details

ESP32 (30 pin)

  • GND connected to the common ground net.
  • Vin connected to the 5V power net.
  • D22 (SCL) and D21 (SDA) connected to the I2C bus for communication with RTC and LCD.
  • RX2 connected to Relay 4 Channel 5v IN2.
  • D4 connected to Relay 4 Channel 5v IN4.

RTC DS3231

  • GND connected to the common ground net.
  • VCC connected to the 5V power net.
  • SCL and SDA connected to the I2C bus for communication with ESP32 and LCD.

Relay 4 Channel 5v

  • GND connected to the common ground net.
  • VCC connected to the 5V power net.
  • IN2 controlled by ESP32 RX2.
  • IN4 controlled by ESP32 D4.
  • NO2 connected to one terminal of the buzzer.
  • COM2 connected to the other terminal of the buzzer.
  • COM4 connected to the positive terminal of the second buzzer.

Buzzer

  • One terminal connected to NO2 of Relay 4 Channel 5v.
  • The other terminal connected to the common ground net.

LCD screen 16x2 I2C

  • GND connected to the common ground net.
  • VCC connected to the 5V power net.
  • SCL and SDA connected to the I2C bus for communication with ESP32 and RTC.

Pushbutton

  • One terminal (Pin 4) connected to the AC supply positive.
  • The other terminal (Pin 1) connected to the negative terminal of the second buzzer.

7805

  • Gnd connected to the common ground net.
  • Vin connected to the 12V power net.
  • Vout connected to the 5V power net.

Resistor

  • Multiple resistors used in the circuit for various purposes, connected between different components and nets.

12v to 5v Step Down Power Converter

  • VIN+ connected to the 12V power net.
  • VIN- and GND connected to the common ground net.
  • 5v OUTPUT providing the 5V power net.

AC Supply

  • +ve connected to the positive terminal of the step-down converter and one terminal of the pushbutton.
  • -ve connected to the negative terminal of the second buzzer and the common ground net.

Rocker Switch (SPST)

  • One terminal connected to the AC supply positive.
  • The other terminal connected to the positive terminal of the step-down converter.

Documented Code

There is no code provided for the microcontroller(s) in the circuit. If code is available, it should be documented here with explanations of how it interacts with the hardware components, including setup, main loop, and any interrupt service routines or functions.