Skip to the content
2 layers153.5 × 83.5 mmCalculator, the printed circuit board in 3D

A custom calculator project built around an ESP32 microcontroller and a 4-inch ST7796S TFT display. The PCB and schematic have been developed in KiCad, and the next phase is generating Gerber files for manufacturing…

Size
153.5 × 83.5 mm
Copper layers
2
Thickness
1.6 mm
Parts
31
Nets
30
Pads
130
Tracks, vias
97, 0
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
22 Sep 2026
Updated
2 Nov 2026

Overview

Calculator is an open-source printed circuit board by ryangriffith121, from the ryangriffith121/Custom_Calculator_ESP32 repository on GitHub. It is a 2-layer board of 153.5 × 83.5 mm with 31 parts on 30 nets, routed with 97 tracks and 0 vias.

Its parts include 20 switches and 1 IC.

README

README.md

Custom Calculator ESP32

A custom calculator project built around an ESP32 microcontroller and a 4-inch ST7796S TFT display. The PCB and schematic have been developed in KiCad, and the next phase is generating Gerber files for manufacturing, followed by enclosure design and firmware development.

🎯 Project Goal

Create a compact, custom 4-function calculator with:

  • Addition
  • Subtraction
  • Multiplication
  • Division

The design combines a tactile keypad matrix, a high-visibility graphics display, and a lightweight ESP32-based control system.

🧩 Hardware Overview

Core controller

  • ESP32 development module / ESP32-WROOM-style board footprint
  • Connected to the keypad matrix and display interface
  • Planned for calculation logic, UI rendering, and input handling

Display

  • 4-inch TFT display
  • ST7796S controller
  • Intended for calculator UI, numeric input, operator selection, and result display

Input device

  • Tactile switch matrix arranged in a key layout
  • Supports numeric keys and operator keys
  • Wiring is organized in a row/column matrix for efficient GPIO usage

Power and support

  • 3.3V logic rail
  • Test points for power, reset, SPI, and signal debug
  • ESP32 GPIOs mapped for display and keypad interfacing

✅ Current Status

Completed

  • PCB design completed in KiCad
  • Schematic capture completed in KiCad
  • Gerber files generated and ready for manufacturing
  • Device planning for ESP32 + display + keypad matrix
  • GPIO and pin allocation for the external interfaces
  • Basic project structure in the workspace

Schematic: Screenshot 2026-09-21 230605

PCB Layout and Wiring:

Screenshot 2026-09-22 232805

PCB Rendering:

Screenshot 2026-09-24 234848

Remaining work

  • Enclosure design and mechanical fit for the display, buttons, and assembly
  • Firmware programming for keypad scanning, display output, and calculator logic
  • Final validation and hardware bring-up

📁 Repository Structure

text
Custom_Calculator_ESP32/
├── CAD/
│   └── (mechanical / enclosure or enclosure-related files)
├── ECAD/
│   └── Calculator/
│       ├── Calculator.kicad_pro
│       ├── Calculator.kicad_sch
│       ├── Calculator.kicad_pcb
│       └── Calculator.kicad_prl
├── Programming/
│   └── (firmware source code and future development files)
├── README.md
└── .git/

📝 Design Notes

This project is intended to be a functional calculator rather than a general-purpose embedded display demo. The hardware is being designed around a straightforward architecture:

  1. User presses keypad buttons.
  2. ESP32 reads the matrix input.
  3. Firmware interprets numeric and operator inputs.
  4. Calculation result is rendered on the ST7796S display.

🚀 Planned Next Steps

  • Design the enclosure to match the completed PCB and display layout
  • Add silkscreen labeling and mechanical constraints
  • Complete firmware programming for keypad scanning, display rendering, and calculator logic
  • Validate the display graphics and UI flow on the physical hardware
  • Finalize assembly and testing of the completed calculator

💻 Firmware Direction

The firmware can be implemented with:

  • GPIO scanning for the keypad matrix
  • SPI communication to the ST7796S TFT display
  • Basic arithmetic state machine for calculator operation
  • Keyboard debounce handling
  • Result and expression rendering on screen

Parts

31
QtyValueFootprintReferences
20Switch_Tactile_ESwitchCalculator_lib:MX-Solderable-1USW1, SW2, SW3, SW4, SW5, SW10, SW11, SW12, SW13, SW14, SW15, SW16, SW17, SW18, SW19, SW20 +4
9TestPointCalculator_lib:Solder_padTP1, TP2, TP3, TP4, TP5, TP6, TP7, TP8, TP9
1LOGOLOGOG***
1~Calculator_lib:ESP32_30pinU1

Similar boards

  • 2 layers44.5 × 46.9 mmOSO SWAT B1-jig, the printed circuit board in 3D

    OSO SWAT B1-jig

    joeycastillo/Sensor-Watch

    A board replacement for the classic Casio F-91W wristwatch

    31 parts2.1k
  • 2 layers65 × 30 mmRgb to hdmi, the printed circuit board in 3D

    Rgb to hdmi

    hoglet67/RGBtoHDMI

    Bare-metal Raspberry Pi project that provides pixel-perfect sampling of Retro Computer RGB/YUV video and conversion to HDMI

    31 parts1kGPL-3.0
  • 2 layers191 × 98.5 mmMacroKeypad, the printed circuit board in 3D

    MacroKeypad

    hackclub/OnBoard

    💡 Join 1,000 teenagers and make your first PCB with a $100 grant!

    31 parts915
  • 2 layers39 × 45.2 mmCH32V003F4P6-R0-1v1, the printed circuit board in 3D

    CH32V003F4P6-R0-1v1

    openwch/ch32v003

    CH32V003 is an ultra-cheap RISC-V MCU with 2KB SRAM, 16KB flash, and up to 18 GPIOs that sells for under $0.10

    31 parts599
  • 2 layers26.7 × 27.9 mmBreakout board, the printed circuit board in 3D

    Breakout board

    Luos-io/luos_engine

    Open-source and real-time orchestrator for cyber-physical-systems, to easily design, test and deploy embedded applications and digital twins.

    31 parts546MIT
  • 2 layers100 × 50 mmPixelix, the printed circuit board in 3D

    Pixelix

    BlueAndi/Pixelix

    Full RGB LED matrix, based on an ESP32 and WS2812B LEDs or emulated LEDs on TFT.

    31 parts447MIT
  • 2 layers77.2 × 69.8 mmCubesatsim solar, the printed circuit board in 3D

    Cubesatsim solar

    alanbjohnston/CubeSatSim

    CubeSatSim, the AMSAT CubeSat Simulator

    31 parts419GPL-3.0
  • 2 layers103 × 55 mmTd neck-294, the printed circuit board in 3D

    Td neck-294

    tdaede/td-crt

    tubes

    31 parts373

Questions

How big is the Calculator PCB?

It measures 153.5 × 83.5 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Calculator use?

31 parts. 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 Calculator KiCad files?

From the ryangriffith121/Custom_Calculator_ESP32 repository on GitHub, at the commit this page was made from: the board is ECAD/Calculator/Calculator.kicad_pcb and its schematic ECAD/Calculator/Calculator.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Calculator design in my own project?

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