Skip to the content
2 layers43.5 × 54 mmESP32 RTC, the printed circuit board in 3D

ESP32-Based Real Time Clock (RTC) Display System PCB Design

Size
43.5 × 54 mm
Copper layers
2
Thickness
1.6 mm
Parts
40
Nets
97
Pads
220
Tracks, vias
418, 25
Pours
1
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
19 May 2026
Updated
25 May 2026

Overview

ESP32 RTC is an open-source printed circuit board by Suman-Gayen, from the Suman-Gayen/ESP32_RTC repository on GitHub. It is a 2-layer board of 43.5 × 54 mm with 40 parts on 97 nets, routed with 418 tracks and 25 vias.

It is built around the ESP32-WROOM-32, MAX7219M and AMS1117, with the CC56-12SRWA and DS3231MZ+ among its other parts. Its parts include 13 resistors, 7 capacitors, 5 ICs, 3 diodes and 2 connectors. It belongs with the lEDs and displays boards and the ESP32 boards of this library.

Main components

5

README

Readme.md

ESP32 RTC Clock Display Project Documentation

Project Overview

This project is an ESP32-based Real Time Clock (RTC) display system designed using KiCad EDA. The circuit combines an ESP32-WROOM-32 microcontroller, DS3231M RTC module, MAX7219 display driver, and 4-digit 7-segment display for accurate real-time clock measurement and display.

The project provides:

  • Accurate real-time clock functionality
  • Battery-backed timekeeping
  • 7-segment LED display output
  • Push button controls
  • UART programming interface
  • LED status indicators
  • Stable regulated power supply

1. System Architecture

The project is divided into the following major sections:

  1. Power Supply Section
  2. ESP32 Microcontroller Section
  3. RTC (Real Time Clock) Section
  4. Display Driver Section
  5. 7-Segment Display Section
  6. Push Button Interface
  7. Status LED Interface
  8. UART Programming Interface

2. Main Components Used

ComponentPart NumberFunction
MicrocontrollerESP32-WROOM-32Main processing unit
RTC ICDS3231MAccurate real-time clock
Display DriverMAX72197-segment display controller
Voltage RegulatorAMS11173.3V power regulation
DisplayCC56-12SRWA7-segment LED display
BatteryCoin CellRTC backup power
LEDsGeneric LEDsStatus indication
Push ButtonsSW_PushUser input control
CapacitorsElectrolytic & CeramicFiltering and stabilization
ResistorsVariousPull-up, current limiting, biasing

3. Working Principle of the Project

The system operates by continuously reading real-time data from the DS3231M RTC module using I2C communication. The ESP32 processes the received time information and sends display data to the MAX7219 display driver through SPI communication.

The MAX7219 controls the multiplexed 7-segment display and updates the visible time output.

The RTC module maintains accurate timing even during power loss because of the backup battery.

Buttons are used for reset, boot, or user interaction functions.

LED indicators provide system status feedback.


4. Detailed Explanation of Major Components

4.1 ESP32-WROOM-32 Microcontroller

Function

The ESP32 is the main controller of the entire system.

Main Responsibilities

  • Reads time from RTC
  • Processes clock data
  • Sends display data to MAX7219
  • Handles button inputs
  • Controls LEDs
  • Manages communication protocols

Features

  • Dual-core processor
  • Built-in WiFi and Bluetooth
  • Multiple GPIO pins
  • SPI support
  • I2C support
  • UART programming interface
  • Low power operation

4.2 DS3231M RTC Module

Function

The DS3231M maintains accurate date and time information.

Working

  • Uses internal crystal oscillator
  • Keeps time continuously
  • Communicates with ESP32 using I2C
  • Uses backup battery during power failure

Important Pins

PinFunction
SDAI2C Data Line
SCLI2C Clock Line
VBATBackup Battery Input
SQWSquare Wave Output
RSTReset Pin

4.3 MAX7219 Display Driver

Function

The MAX7219 controls the 7-segment display using serial communication.

Working

  • Receives serial data from ESP32
  • Controls multiplexing automatically
  • Reduces GPIO usage
  • Controls brightness internally

Communication Interface

SPI Communication:

SignalFunction
DINData Input
CLKClock Signal
LOADChip Select

4.4 AMS1117 Voltage Regulator

Function

Converts input voltage to stable 3.3V output.

Working

  • Accepts higher DC input voltage
  • Regulates output to 3.3V
  • Filters voltage fluctuations
  • Protects ESP32 from overvoltage

Capacitors Used

CapacitorPurpose
Input CapacitorInput filtering
Output CapacitorOutput stabilization

4.5 7-Segment Display (CC56-12SRWA)

Function

Displays real-time clock information visually.

Working

The display receives segment control signals from MAX7219 and displays numbers accordingly.

Segments

SegmentDescription
A-GNumeric display segments
DPDecimal Point

5. Power Supply Section

Components Used

  • AMS1117 Regulator
  • Capacitors
  • Power Flags
  • Battery Backup

Working

The input supply voltage is regulated to 3.3V for ESP32 and RTC operation.

Capacitors remove voltage ripple and improve power stability.

The RTC battery ensures time retention during power failure.


6. RTC Communication Section

Communication Type

I2C Communication

Signals

SignalDescription
SDASerial Data
SCLSerial Clock

Pull-up Resistors

4.7k pull-up resistors are used because I2C lines require pull-up configuration.

Why Pull-up Resistors Are Necessary?

  • I2C uses open-drain outputs
  • Prevents floating signals
  • Ensures proper logic HIGH level
  • Improves communication reliability

7. Display Communication Section

Communication Type

SPI Communication

Signals Used

SignalDescription
DINSerial Data
CLKClock
LOADLatch/Chip Select

Working

ESP32 sends serial display data to MAX7219.

MAX7219 converts serial data into segment control outputs.


8. Push Button Section

Buttons Used

ButtonFunction
RESETSystem Reset
BOOTProgramming Mode

Working

Buttons provide manual user control.

Pull-up resistors maintain stable logic levels.


9. LED Indicator Section

LEDs Used

  • Power LED
  • Status LED

Working

LEDs indicate:

  • Power status
  • System operation
  • Communication activity

Current-limiting resistors protect LEDs from excess current.


10. Important Resistors and Their Purpose

ResistorPurpose
4.7kI2C pull-up resistors
10kPull-up/pull-down configuration
220ΩLED current limiting
1kSignal conditioning

11. Capacitors Used in the Circuit

CapacitorPurpose
0.1uFNoise filtering
10uFPower stabilization
22uFBulk filtering
1uFDecoupling

12. Advantages of This Project

  • Accurate timekeeping
  • Battery backup support
  • Compact PCB design
  • Low GPIO usage
  • Expandable architecture
  • Wireless-capable controller
  • Stable power regulation
  • Bright display output

13. Applications of This Project

  • Digital clocks
  • Industrial timer systems
  • Embedded timing systems
  • IoT time synchronization projects
  • Smart display systems
  • Automation systems

14. Conclusion

This ESP32 RTC Clock Display project demonstrates a complete embedded system combining:

  • Real-time clock functionality
  • SPI and I2C communication
  • LED display driving
  • Power regulation
  • User interface control

The design is efficient, reliable, scalable, and suitable for embedded system learning and practical applications.

The combination of ESP32, DS3231M, and MAX7219 creates a modern and powerful RTC display system with excellent accuracy and expandability.


15. Reference Schematic Information

Project Name: Real Time Clock Measurement

Design Tool: KiCad EDA 9.0.2

Main Modules:

  • ESP32-WROOM-32
  • DS3231M RTC
  • MAX7219 Display Driver
  • AMS1117 Regulator
  • CC56-12SRWA Display

End of Documentation

Parts

40
QtyValueFootprintReferences
410KResistor_SMD:R_0805_2012MetricR2, R9, R10, R13
44K7Resistor_SMD:R_0805_2012MetricR5, R6, R7, R8
4MountingHole_PadMountingHole:MountingHole_2.2mm_M2_Pad_ViaH1, H2, H3, H4
20.1uFCapacitor_SMD:C_0805_2012MetricC3, C7
210uFCapacitor_SMD:C_0805_2012MetricC1, C4
21KResistor_SMD:R_0805_2012MetricR11, R12
2LEDLED_SMD:LED_0805_2012MetricD2, D3
2SW_PushButton_Switch_THT:SW_PUSH_6mmSW1, SW2
1.1uFCapacitor_SMD:C_0805_2012MetricC5
11N4148Diode_THT:D_DO-41_SOD81_P2.54mm_Vertical_KathodeUpD1
11uFCapacitor_SMD:C_0805_2012MetricC6
1220Resistor_SMD:R_0805_2012MetricR4
122uFCapacitor_SMD:C_0805_2012MetricC2
13V31072:BAT_1072BT1
1470Resistor_SMD:R_0805_2012MetricR1
19.9KResistor_SMD:R_0805_2012MetricR3
1AMS1117Package_TO_SOT_SMD:SOT-223-3_TabPin2U5
1CC56-12SRWAPackage_DIP:DIP-16_W7.62mm_SocketU4
1Conn_01x04_PinConnector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ3
1DS3231MPackage_SO:SOIC-16W_7.5x10.3mm_P1.27mmU1
1ESP32-WROOM-32RF_Module:ESP32-WROOM-32U3
1MAX7219Package_SO:SOIC-24W_7.5x15.4mm_P1.27mmU2
1Screw_Terminal_01x02TerminalBlock:TerminalBlock_bornier-2_P5.08mmJ1

The 37 most common of 40 parts.

Similar boards

  • 2 layers100.3 × 55.9 mmEpochCounter, the printed circuit board in 3D

    EpochCounter

    LostInAPit/EpochCounter

    A counter to count the days since a specific date using an Arduino nano, DS3231 RTC and a 4-digit 7 Segment display

    16 partsGPL-3.0
  • 2 layers46.5 × 30.2 mmThermometer hw, the printed circuit board in 3D

    Thermometer hw

    03vmate/pocket-ds18b20

    Battery powered DS18B20 thermometer

    16 parts
  • 2 layers60 × 66.6 mmAvr metronome, the printed circuit board in 3D

    Avr metronome

    almilos/avr-metronome

    AVR MCU based metronome

    71 parts
  • 2 layersFunk, the printed circuit board in 3D

    Funk

    dennis9819/msfs2020-controllers

    47 parts
  • 2 layers60 × 65 mmDigital Clock, the printed circuit board in 3D

    Digital Clock

    MikiyasFekadu/Digital-Clock-KiCad

    Attempt to make a Digital Clock

    25 parts
  • 2 layers68.6 × 53.3 mmCPE301 Final, the printed circuit board in 3D

    CPE301 Final

    mspied/Design-Assignments

    CPE 301 Design Assignments for Spring 2024

    28 parts
  • 2 layers75.2 × 157.5 mmTrafficLight, the printed circuit board in 3D

    TrafficLight

    uniqueacevedo/KiCad-Mini-Projects

    A collection of small PCB design exercises created to strengthen my understanding of KiCad, circuit design, and the hardware development workflow.

    28 partsMIT

Questions

How big is the ESP32 RTC PCB?

It measures 43.5 × 54 mm and has 2 copper layers, 1.6 mm thick.

What parts does the ESP32 RTC use?

40 parts, built around the ESP32-WROOM-32, MAX7219M, AMS1117 and CC56-12SRWA. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the ESP32 RTC KiCad files?

From the Suman-Gayen/ESP32_RTC repository on GitHub, at the commit this page was made from: the board is ESP32_RTC.kicad_pcb and its schematic ESP32_RTC.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the ESP32 RTC design in my own project?

Its repository states no licence, so its author keeps all rights: ask Suman-Gayen before reusing the design.