Loading 3D model… large boards can take a moment.
A Tufty-style programmable badge: one 96 × 152 mm, 2-layer PCB. The top half is a name card; the bottom half holds a 2.8" 320×240 touch screen, five buttons, an ESP32-S3 and a LiPo.
| Block | Part |
|---|---|
| Brain | ESP32-S3-WROOM-1-N16R8 (Wi-Fi + BLE, 16 MB flash, 8 MB PSRAM, native USB) |
| Screen | Adafruit 2.8" 320×240 TFT with capacitive touch (#2090), plugged into the 18-pin EYESPI connector J2 |
| Buttons | A, B, C under the screen; UP, DOWN on the right; BOOT and RESET on the back |
| Power | USB-C (ESD-protected), MCP73831 LiPo charger at ~500 mA, automatic USB/battery switch-over, AP2112K 3.3 V regulator, power switch |
| Extras | Qwiic/STEMMA QT I2C port, LTR-303 light sensor, battery + USB voltage sensing, 4 white back-glow LEDs, charge LED, UART debug header |
| Function | GPIO | Function | GPIO | |
|---|---|---|---|---|
| SPI SCK / MOSI / MISO | 12 / 11 / 13 | Button A / B / C | 15 / 16 / 17 | |
| Display CS / DC / RST | 10 / 9 / 21 | Button UP / DOWN | 18 / 8 | |
| Backlight (PWM) | 14 | I2C SDA / SCL | 39 / 40 | |
| SD card CS (on display) | 47 | Touch INT / Light INT | 7 / 41 | |
| Display TE | 6 | Battery / USB sense (÷2) | 4 / 5 | |
| Glow LEDs 1–4 | 1, 2, 42, 48 | UART TX / RX | 43 / 44 | |
| USB D− / D+ | 19 / 20 (native) | BOOT / RESET | IO0 / EN |
Buttons are active-low (use internal pull-ups) and sit on RTC GPIOs, so any of them can wake the badge from deep sleep.
kicad/ — board + schematic (open badge.kicad_pro in KiCad 10). kicad/badge.3dshapes/ is the project's own
3D library (STEP): low-fidelity models for the USB-C, battery connector, light sensor and the Adafruit display
module, referenced as ${KIPRJMOD}/badge.3dshapes/.... Upload the whole kicad/ folder (including
badge.3dshapes/) so viewers like BoardRepo can render the screen and those parts.badge_gerbers.zip — fab-ready Gerbers + drill (2 layers, 1.6 mm, ENIG recommended for the gold art).badge_bom.csv, badge_cpl_jlc.csv — parts list and placement file for PCB assembly (e.g. JLCPCB).firmware/ — MicroPython starter: badge.py (hardware layer + ILI9341 driver) and main.py (launcher with a name
badge, Snake, a sensor page and back-glow control).source/ — the scripts that generated the board, so you can change the name, parts or layout and rebuild
(assemble.sh runs the whole chain after route45.py).route45.py): every segment is
0/45/90° and every bend is a single 45° turn. check_angles.py verifies this: 0 off-angle segments, 0 corners
other than 135°.ESP32_GENERIC_S3, SPIRAM_OCT build) over USB-C (hold BOOT, tap RESET if needed), then
mpremote cp firmware/badge.py firmware/main.py : and reset.kicad/badge.kicad_sch (and badge_schematic.pdf) is drawn as wired functional blocks (MCU,
USB-C + ESD, charger + power path, 3.3 V LDO + switch, sensing, display, I2C, buttons, glow LEDs, standoffs),
with power symbols and global labels only for signals that cross blocks. ERC: 0 violations. Its exported
netlist is checked net-by-net against the board (verify_schematic.py), and KiCad's schematic-parity check
reports no differences.
Nice Job
Thank youu