Skip to the content
2 layers33 × 33.7 mmKiCAD ESP32 Sensor, the printed circuit board in 3D

Custom ESP32 PCB using a Time-of-Flight (ToF) sensor to accurately monitor distance from a laptop screen. Used to trigger a desktop popup whenever someone slouches.

Size
33 × 33.7 mm
Copper layers
2
Thickness
1.6 mm
Parts
23
Nets
26
Pads
106
Tracks, vias
170, 25
Pours
2
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
2 Sep 2026
Updated
29 Sep 2026

Overview

KiCAD ESP32 Sensor is an open-source printed circuit board by AndrewMinWu, from the AndrewMinWu/Laptop-Slouching-Monitor repository on GitHub. It is a 2-layer board of 33 × 33.7 mm with 23 parts on 26 nets, routed with 170 tracks and 25 vias.

It is built around the ESP32-C3-WROOM-02-H4 and AP2112K-3.3. Its parts include 7 resistors, 5 capacitors, 2 ICs and 2 connectors. It belongs with the sensors and measurement boards and the ESP32 and RISC-V boards of this library.

Main components

2

README

README.md

Laptop Slouching Monitor

KiCad C++ Python Fusion 360 PlatformIO VSCode

IMG_2121

Repository Structure

text
├── hardware/          # Schematic, PCB, and gerbers
├── firmware/          # PlatformIO C++ code, and Python script
└── docs/              # Datasheets

Purpose & Motivation:

Spending long hours working at a computer, I noticed my posture deteriorating as I constantly leaned closer to the monitor. Over time, this habit leads to back pain and eye strain (probably why my eyesight is so bad). Therefore, to prevent future issues and to force myself to build better sitting habits, I designed a PCB using an ESP32 and a Time-of-Flight (ToF) sensor to accurately monitor my distance from the screen and trigger a desktop popup whenever I slouch.

Design

Component List (BOM)

  1. ESP32-C3-WROOM-02 (Datasheet)
  2. AP2112K-3.3 LDO Voltage Regulator (Datasheet)
  3. GCT USB4105-GF-A USB-C Receptacle 16P SMD RA (Datasheet)
  4. VL53L0X Time-of-Flight Distance Sensor (Datasheet)
  5. Passives & Miscellaneous Hardware:
    • Capacitors (0805, Ceramic)
    • Resistors (0805)
    • Push Buttons

PCB, Schematic, Finished Board

The Schematic and PCB were designed in KiCad.

Schematic
PCB Layout3D Render

Firmware & Software

  • Microcontroller Environment: C++ via VSCode using PlatformIO (Arduino Framework)
  • Sensor Interface: I2C utilizing the Adafruit VL53L0X driver
  • Host Communication: Native USB CDC (Virtual COM Port)
  • Desktop Application: Python 3 (pyserial for stream parsing, tkinter for alerts)

Assembly & Demonstration

Short Demo

  • Assembly: Hand-soldered all parts and tested the board with a multimeter (checking continuity with the implemented testpoints) before flashing firmware.

Active Development

  • Enclosure: 3D printing a case to mount the PCB to the top of my monitor, using Fusion 360

Parts

23
QtyValueFootprintReferences
310kResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR5, R6, R7
31uCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC1, C2, C3
24.7kResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR3, R4
25.1kResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR1, R2
2SW_PushButton_Switch_THT:SW_PUSH_6mm_H5mmBOOT, RST
10.1uCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC4
110uCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC5
13.3VTestPoint:TestPoint_Pad_D1.0mm3V3
15VTestPoint:TestPoint_Pad_D1.0mm5V
1AP2112K-3.3Package_TO_SOT_SMD:SOT-23-5_HandSolderingU1
1ENTestPoint:TestPoint_Pad_D1.0mmEN
1ESP32-C3-WROOM-02RF_Module:ESP32-C3-WROOM-02U2
1GNDTestPoint:TestPoint_Pad_D1.0mmGND
1IO0TestPoint:TestPoint_Pad_D1.0mmIO9
1USB_C_Receptacle_USB2.0_16PUSBC:GCT_USB4105-GF-AJ1
1VL53L0X_ModuleConnector_PinSocket_2.54mm:PinSocket_1x06_P2.54mm_VerticalJ2

Similar boards

  • 4 layers25.6 × 23.6 mmCANNONBALL, the printed circuit board in 3D

    CANNONBALL

    user-will/PCB_CANNONBALL

    An ESP32-C3 dev board with more sensors and features then you could know what to do with

    61 parts14
  • 2 layers27.9 × 66.1 mmRemote, the printed circuit board in 3D

    Remote

    EwoudVV/clicker

    wireless 2 switch macropad

    26 parts2
  • 2 layers33.3 × 38 mmESP32-C3-WROOM02 dev board, the printed circuit board in 3D

    ESP32-C3-WROOM02 dev board

    pushtiujeniya/ESP32-C3-WROOM02_dev-board

    This project is a custom 2-layer development board designed around the ESP32-C3-WROOM-02 Wi‑Fi + Bluetooth MCU module.

    30 parts2
  • 4 layers53.5 × 46 mmKindle, the printed circuit board in 3D

    Kindle

    AdityaCoppisetti/Kindle-hackclub

    building my own kindle from scratch

    44 parts1
  • 2 layers52 × 43 mmHologram, the printed circuit board in 3D

    Hologram

    alaotach/eidolon

    23 parts1
  • 4 layers38 × 28.5 mmEsp32 iot pcb, the printed circuit board in 3D

    Esp32 iot pcb

    anasskrim61-wq/esp32-c3-mini

    Custom ESP32-C3 Mini IoT hardware design and KiCad PCB project

    29 parts1
  • 4 layers52.9 × 79.1 mmRealFCV1, the printed circuit board in 3D

    RealFCV1

    bapsenpai-blip/STM32F405-4-layer-flight-controller

    My first PCB revision, not fabricated yet, looking for design review

    94 parts1
  • 4 layers40.4 × 55.5 mmESP32-Dev Kit, the printed circuit board in 3D

    ESP32-Dev Kit

    jishnu085/esp32-c3-custom-board

    Custom ESP32-C3 PCB design using KiCad

    29 parts1

Questions

How big is the KiCAD ESP32 Sensor PCB?

It measures 33 × 33.7 mm and has 2 copper layers, 1.6 mm thick.

What parts does the KiCAD ESP32 Sensor use?

23 parts, built around the ESP32-C3-WROOM-02-H4 and AP2112K-3.3. 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 KiCAD ESP32 Sensor KiCad files?

From the AndrewMinWu/Laptop-Slouching-Monitor repository on GitHub, at the commit this page was made from: the board is Hardware/KiCAD_ESP32_Sensor.kicad_pcb and its schematic Hardware/KiCAD_ESP32_Sensor.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the KiCAD ESP32 Sensor design in my own project?

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