
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

ESP32-Based Real Time Clock (RTC) Display System PCB Design
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.
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:
The project is divided into the following major sections:
| Component | Part Number | Function |
|---|---|---|
| Microcontroller | ESP32-WROOM-32 | Main processing unit |
| RTC IC | DS3231M | Accurate real-time clock |
| Display Driver | MAX7219 | 7-segment display controller |
| Voltage Regulator | AMS1117 | 3.3V power regulation |
| Display | CC56-12SRWA | 7-segment LED display |
| Battery | Coin Cell | RTC backup power |
| LEDs | Generic LEDs | Status indication |
| Push Buttons | SW_Push | User input control |
| Capacitors | Electrolytic & Ceramic | Filtering and stabilization |
| Resistors | Various | Pull-up, current limiting, biasing |
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.
The ESP32 is the main controller of the entire system.
The DS3231M maintains accurate date and time information.
| Pin | Function |
|---|---|
| SDA | I2C Data Line |
| SCL | I2C Clock Line |
| VBAT | Backup Battery Input |
| SQW | Square Wave Output |
| RST | Reset Pin |
The MAX7219 controls the 7-segment display using serial communication.
SPI Communication:
| Signal | Function |
|---|---|
| DIN | Data Input |
| CLK | Clock Signal |
| LOAD | Chip Select |
Converts input voltage to stable 3.3V output.
| Capacitor | Purpose |
|---|---|
| Input Capacitor | Input filtering |
| Output Capacitor | Output stabilization |
Displays real-time clock information visually.
The display receives segment control signals from MAX7219 and displays numbers accordingly.
| Segment | Description |
|---|---|
| A-G | Numeric display segments |
| DP | Decimal Point |
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.
I2C Communication
| Signal | Description |
|---|---|
| SDA | Serial Data |
| SCL | Serial Clock |
4.7k pull-up resistors are used because I2C lines require pull-up configuration.
SPI Communication
| Signal | Description |
|---|---|
| DIN | Serial Data |
| CLK | Clock |
| LOAD | Latch/Chip Select |
ESP32 sends serial display data to MAX7219.
MAX7219 converts serial data into segment control outputs.
| Button | Function |
|---|---|
| RESET | System Reset |
| BOOT | Programming Mode |
Buttons provide manual user control.
Pull-up resistors maintain stable logic levels.
LEDs indicate:
Current-limiting resistors protect LEDs from excess current.
| Resistor | Purpose |
|---|---|
| 4.7k | I2C pull-up resistors |
| 10k | Pull-up/pull-down configuration |
| 220Ω | LED current limiting |
| 1k | Signal conditioning |
| Capacitor | Purpose |
|---|---|
| 0.1uF | Noise filtering |
| 10uF | Power stabilization |
| 22uF | Bulk filtering |
| 1uF | Decoupling |
This ESP32 RTC Clock Display project demonstrates a complete embedded system combining:
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.
Project Name: Real Time Clock Measurement
Design Tool: KiCad EDA 9.0.2
Main Modules:
| Qty | Value | Footprint | References |
|---|---|---|---|
| 4 | 10K | Resistor_SMD:R_0805_2012Metric | R2, R9, R10, R13 |
| 4 | 4K7 | Resistor_SMD:R_0805_2012Metric | R5, R6, R7, R8 |
| 4 | MountingHole_Pad | MountingHole:MountingHole_2.2mm_M2_Pad_Via | H1, H2, H3, H4 |
| 2 | 0.1uF | Capacitor_SMD:C_0805_2012Metric | C3, C7 |
| 2 | 10uF | Capacitor_SMD:C_0805_2012Metric | C1, C4 |
| 2 | 1K | Resistor_SMD:R_0805_2012Metric | R11, R12 |
| 2 | LED | LED_SMD:LED_0805_2012Metric | D2, D3 |
| 2 | SW_Push | Button_Switch_THT:SW_PUSH_6mm | SW1, SW2 |
| 1 | .1uF | Capacitor_SMD:C_0805_2012Metric | C5 |
| 1 | 1N4148 | Diode_THT:D_DO-41_SOD81_P2.54mm_Vertical_KathodeUp | D1 |
| 1 | 1uF | Capacitor_SMD:C_0805_2012Metric | C6 |
| 1 | 220 | Resistor_SMD:R_0805_2012Metric | R4 |
| 1 | 22uF | Capacitor_SMD:C_0805_2012Metric | C2 |
| 1 | 3V3 | 1072:BAT_1072 | BT1 |
| 1 | 470 | Resistor_SMD:R_0805_2012Metric | R1 |
| 1 | 9.9K | Resistor_SMD:R_0805_2012Metric | R3 |
| 1 | AMS1117 | Package_TO_SOT_SMD:SOT-223-3_TabPin2 | U5 |
| 1 | CC56-12SRWA | Package_DIP:DIP-16_W7.62mm_Socket | U4 |
| 1 | Conn_01x04_Pin | Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_Vertical | J3 |
| 1 | DS3231M | Package_SO:SOIC-16W_7.5x10.3mm_P1.27mm | U1 |
| 1 | ESP32-WROOM-32 | RF_Module:ESP32-WROOM-32 | U3 |
| 1 | MAX7219 | Package_SO:SOIC-24W_7.5x15.4mm_P1.27mm | U2 |
| 1 | Screw_Terminal_01x02 | TerminalBlock:TerminalBlock_bornier-2_P5.08mm | J1 |
The 37 most common of 40 parts.

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






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.

It measures 43.5 × 54 mm and has 2 copper layers, 1.6 mm thick.
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.
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.
Its repository states no licence, so its author keeps all rights: ask Suman-Gayen before reusing the design.