Skip to the content
2 layers86.8 × 63 mmESP32-Clock Gallery, the printed circuit board in 3D

PCB & Firmware for an ESP32 Based E Paper Clock/ Gallery

Size
86.8 × 63 mm
Copper layers
2
Thickness
1.6 mm
Parts
65
Nets
47
Pads
193
Tracks, vias
367, 95
Pours
3
Routed
Yes
KiCad
KiCad 8.0 (file 20240108)
Created
23 Apr 2025
Updated
23 Nov 2025

Overview

ESP32-Clock Gallery is an open-source printed circuit board by nickzswammer, from the nickzswammer/ESP32-Clock-Gallery repository on GitHub. It is a 2-layer board of 86.8 × 63 mm with 65 parts on 47 nets, routed with 367 tracks and 95 vias.

It is built around the TP4056, TPS63060DSC and DB301V-3.5-2P-GN-S, with the B5819W-TP among its other parts. Its parts include 17 capacitors, 14 resistors, 4 switches, 3 ICs and 2 connectors. It belongs with the lEDs and displays boards and the ESP32 and RISC-V boards of this library.

Main components

4

README

README.md

ESP32 E-Paper Clock / Gallery Display

Fully Assembled Front Side
Clock Frontside

A customizable ESP32-based image clock gallery project, combining Arduino firmware, Python scripting, electronics, and PCB design. This project allows users to upload images via a web interface, convert them to a binary format suitable for display on a clock-style device, and manage them on the ESP32.


Features

Power Management Block Diagram
Power Management Block Diagram
  • Embedded / Microcontroller:

    • ESP32 main controller
    • Real-Time Clock (RTC) module for accurate timekeeping
    • Pushbutton controls for menu and navigation
    • SPI and I²C interfaces for peripheral communication
  • Python Backend:

    • Flask web server for uploading images
    • Automated image conversion to .bin format with dithering
    • Image resizing and centering for consistent display
    • Batch download as ZIP archives for easy transfer to the ESP32
  • Electronics & PCB:

    • 2-layer custom PCB design
    • Integrated power circuitry with MOSFET-based power muxing
    • Battery protection and charging circuitry
    • SPI and I²C routed to peripherals for modularity
    Exploded Component View
    Internal Component View

Image Processing Workflow

  1. Users upload images via the Flask web interface.
  2. Images are resized to fit a 400×300 display resolution, converted to grayscale, and dithered to 1-bit black and white.
  3. The processed images are converted into a .bin file containing:
    • 2-byte width
    • 2-byte height
    • Pixel data in row-major order
  4. All processed .bin files can be downloaded in a ZIP archive for easy transfer to the ESP32.

Folder Structure

text
project_root/
├── image_processor/      # Python backend
│   ├── uploaded_files/       # Raw uploaded images
│   ├── processed_files/      # Converted .bin images
│   ├── zipped_files/         # Zip archives of processed images
│   ├── templates/            # Flask HTML templates
│   ├── index.html
│   ├── static/               # Optional CSS/JS for Flask
│   ├── app.py                # Flask backend and image processing
│   └── download_zip.html
├── GxEPD2_display_selection_new_style.h # GxEPD2 Library E-Paper Display Select
├── GxEPD2_selection_check.h             
├── WebHelpers.cpp                       # Helper functions for the upload/ webserver processing
├── WebHelpers.h         
├── full_disp_AND_upload.ino             # Full Arduino file containing firmware for clock functionality
└── README.md 

ESP32 Hardware and Firmware

Hardware

  • ESP32 Microcontroller: Handles display updates, button input, RTC communication, and Wi-Fi connectivity.
  • GxEPD2 E-Ink Display: SPI-connected, supports partial/full updates for low power.
  • MicroSD Card: Stores images for display; accessed via SPI.
  • DS3231 RTC: Provides accurate time over I²C.
  • MAX17043 Fuel Gauge: Monitors LiPo battery percentage.
  • Buttons: Four GPIO-connected buttons for menu navigation and mode switching.
  • Power Management: Supports light/deep sleep; wake on button or timer.

Firmware

  • Initialization: Sets up peripherals, Wi-Fi, and web server.
  • Main Loop: Handles button input, updates clock display, manages sleep, and serves web requests.
  • Gallery Management: Reads images from SD card, navigates files, and supports slideshow.
  • Power Optimization: Disables unused peripherals and enters sleep during inactivity.

PCB & Electronics

PCB Layout View
PCB Layout View
  • 2-layer PCB:

    • Integrated power supply with custom MOSFET power muxing
    • Battery protection and charging
    • SPI and I²C routing for peripheral modules
    • ESP32 microcontroller footprint with all required signals exposed
  • Peripherals:

    • RTC module
    • Pushbuttons for user input
    • Optional displays (LCD, OLED, or e-paper)
  • Circuit Features:

    • Power management: allows USB and battery operation
    • Safe charging and overcurrent protection
    • Modular design for easy hardware expansion

Case & Mechanical Design

  • Custom enclosure design in Fusion 360 to fit the ESP32 PCB and display
  • Mounting points for pushbuttons
  • Openings for charging port, buttons, and display window
  • 3d printed

Author

Nicholas Zhang

Parts

65
QtyValueFootprintReferences
1210uFCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC1, C2, C4, C8, C9, C10, C11, C12, C13, C14, C16, C17
5TestPointTestPoint:TestPoint_Pad_D2.0mm3.3V, BAT, GND, MOS, USB
40.1uFCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC3, C5, C7, C15
4DB301V-3.5-2P-GN-S1984617:PHOENIX_1984617SW1, SW2, SW3, SW4
3LEDLED_SMD:LED_0805_2012Metric_Pad1.15x1.40mm_HandSolderCHRG, STDBY, USB
2100KResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR3, R6
210KResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR10, R12
21KResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR4, R5
24.7KResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR13, R14
25.1KResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR1, R2
2SolderJumper_2_OpenJumper:SolderJumper-2_P1.3mm_Open_RoundedPad1.0x1.5mmBAT, USB
1
11.2 uHXFL4020-102MEC:IND_XFL4020-102MECL1
11.5KResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR9
12.2pFCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC6
13.7V 1500mAh LiPoSM02B-SRSS-TB_LF__SN_:SM02B-SRSS-TB_LF__SN_BT1
1360KResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR7
1470Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR11
164.9KResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR8
1B5819W-TPB5819SW:SDO_SOD-123_MCC-MCR1
1B8B-PH-K-S_LF__SN_B8B-PH-K-S_LF__SN_:JST_B8B-PH-K-S_LF__SN_J2
1DS3231 BreakoutConnector_PinSocket_2.54mm:PinSocket_1x06_P2.54mm_VerticalRTC
1ESP-WROOM-32 Dev ModuleESP32-DEVKIT-V1:MODULE_ESP32_DEVKIT_V1ESP-WROOM-32
1LOGOimages:heartG***
1LOGOimages:pigletG***
1LOGOimages:moominG***
1MAX17048G_T10MAX17048G_T10:SON50P200X200X80-9NU3
1MicroSD BreakoutConnector_PinSocket_2.54mm:PinSocket_1x06_P2.54mm_VerticalSD
1PMOSIRLML6402TRPBF:SOT95P237X112-3NQ1
1TP4056TP4056:SOP127P600X175-9NU2
1TPS63060TPS63060DSCT:CONV_TPS63060DSCTU1
1UJC-V-G-SMT-P6-TRUJC_V_G_SMT_P6_TR:SAMESKY_UJC-V-G-SMT-P6-TRJ1

The 61 most common of 65 parts.

Similar boards

  • 4 layers32.8 × 36.3 mmEsp32, the printed circuit board in 3D

    Esp32

    gdoor-org/gdoor

    Wifi adapter and bus protocol documentation for the Gira TKS Door System

    68 parts57GPL-3.0
  • 2 layers120 × 80 mmSpeek amp, the printed circuit board in 3D

    Speek amp

    JBlitzar/speek

    speek monorepo

    102 parts1GPL-3.0
  • 2 layers101.4 × 69.4 mmPanel, the printed circuit board in 3D

    Panel

    4project-co-il/PlugAndPlay-SAMD21

    Plug-n-Play SAMD21 Development Board

    85 partsMIT
  • 4 layers250.8 × 30 mmLedTubeFixture, the printed circuit board in 3D

    LedTubeFixture

    adamvotocek/Open-Tube-Light

    work in progress

    201 parts
  • 4 layers70 × 45.4 mmHcbboard, the printed circuit board in 3D

    Hcbboard

    ivarhak/BlueprintFlightComputerPCB

    Files for my flight computer project as a part of the Hack Club foundation's Blueprint program 2025. Board has an STM chip, 2 BMP351 barometers, 1 ICM-42688-P IMU, a microSD slot, battery charging capabilities, and…

    106 parts
  • 4 layers110 × 90 mmFilMachine Mainboard, the printed circuit board in 3D

    FilMachine Mainboard

    yesnoj/FilMachine_Reworked

    FilMachine is an automated film processing machine designed for photographic film development. It handles the entire process: chemical baths, water rinses, temperature regulation, and motor-driven film agitation — all…

    205 parts

Questions

How big is the ESP32-Clock Gallery PCB?

It measures 86.8 × 63 mm and has 2 copper layers, 1.6 mm thick.

What parts does the ESP32-Clock Gallery use?

65 parts, built around the TP4056, TPS63060DSC, DB301V-3.5-2P-GN-S and B5819W-TP. 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-Clock Gallery KiCad files?

From the nickzswammer/ESP32-Clock-Gallery repository on GitHub, at the commit this page was made from: the board is PCB/ESP32_Clock_Gallery.kicad_pcb and its schematic PCB/ESP32_Clock_Gallery.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the ESP32-Clock Gallery design in my own project?

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