Skip to the content
4 layers99 × 80 mmHandheld, the printed circuit board in 3D

A custom PCB handheld built to run Game Boy games, inspired by the original DMG. Designed from scratch in KiCad — schematic, layout, BOM and firmware.

Size
99 × 80 mm
Copper layers
4
Thickness
1.65 mm
Parts
61
Nets
91
Pads
281
Tracks, vias
377, 88
Pours
9
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
6 Aug 2026
Updated
6 Aug 2026

Overview

Handheld is an open-source printed circuit board by lewipewi, from the lewipewi/esp-32-gaming-console repository on GitHub. It is a 4-layer board of 99 × 80 mm with 61 parts on 91 nets, routed with 377 tracks and 88 vias.

It is built around the ESP32-S3-WROOM-1U-N8R8, MAX98357AETE+T and TPS63020DSJR, with the HS24CG003-ARX, SS-12D00-G3 and TP4056 among its other parts. Its parts include 19 capacitors, 16 resistors, 6 ICs, 4 inductors and 2 connectors. It belongs with the ESP32 boards of this library.

Main components

11

README

README.md

ESP32-S3 Handheld Gaming Console

A custom PCB handheld built to run Game Boy games, inspired by the original DMG. Designed from scratch in KiCad — schematic, layout, BOM and firmware.

Status: hardware bring-up / debugging. The boards are back from fab and assembled, but the first unit has a fault on the 3.3 V rail that is still being traced. The design is documented here in full, along with everything that has gone wrong so far. See Known Issues.


Overview

MCUESP32-S3-WROOM-1U-N8R8 (dual-core Xtensa LX7 @ 240 MHz, 8 MB flash, 8 MB octal PSRAM)
Display2.4" 240×320 IPS TFT, 4-wire SPI, MOSFET-switched backlight
StoragemicroSD via 4-bit SDMMC
AudioMAX98357A I²S class-D amp, filterless output to a PH-2 speaker header
Input8 tactile switches (D-pad, A, B, Select, Start) + reset and boot
PowerUSB-C sink, TP4056 Li-ion charger, TPS63020 buck-boost to 3.3 V
Battery1S Li-ion, 3.7 V 2000 mAh
ProtectionUSBLC6-2SC6 TVS on USB D+/D−/VBUS

Why these parts

ESP32-S3 over ESP32 or S2. The N8R8's 8 MB octal PSRAM is the deciding factor — a Game Boy emulator wants memory bandwidth for framebuffers and audio ring buffers, and octal PSRAM at 80 MHz delivers it. Dual core also means the emulator can own core 1 while USB, SD and audio housekeeping stay on core 0.

TPS63020 buck-boost, not a plain buck. A 1S Li-ion runs from 4.2 V down to ~3.0 V — it crosses straight through 3.3 V. A step-down converter browns out partway through the discharge curve and wastes a third of the battery. The buck-boost regulates across the whole range (1.8–5.5 V in).

4-bit SDMMC, not SPI. Four data lines instead of one, roughly 4× the throughput. Matters when loading a 1 MB ROM and streaming save states.

Known Issues & What I'd Do Differently

Everything below is either a confirmed defect or a design decision I would change on a v2. Writing these down is the point of the project.

1. The amplifier is powered from +5V_USB, not the system rail

The biggest design error. MAX98357A.VDD is tied to +5V_USB instead of VCC_SYS, which means there is no audio unless the device is plugged in — on a battery-powered handheld.

In isolation the choice is defensible: every MAX98357A reference design runs it at 5 V because that's where you get full output power. The mistake was systems-level rather than component-level — I evaluated the amp against its datasheet without asking what happens to that rail when USB is unplugged.

Fix: the part runs from 2.5–5.5 V, so moving VDD to VCC_SYS costs about half the output power (ample for a small speaker) and gains untethered audio. A one-wire bodge on this revision; a net change on the next.

2. No load sharing on the charger

BATT+ goes straight through the slide switch to VCC_SYS, so with USB connected and the device switched on, the system load hangs off the TP4056's BAT pin. Charge termination becomes unreliable during play and the charger runs warm. A proper power-path IC (or a P-FET/ideal-diode arrangement) would let the device run from USB while the cell charges independently.

3. No battery voltage sense

Nothing connects the cell to an ADC, so firmware cannot display a battery level or warn before shutdown. A 2:1 divider from BATT+ to a free ADC1 pin (GPIO 3 is available) is a two-resistor addition I simply didn't think to include.

4. No charge status indication

CHRG# and STDBY# are tied to GND with no LEDs and no connection to the MCU, so there is no way — visually or in firmware — to tell whether the cell is charging or full. Two LEDs and two resistors.

5. No series resistor on the backlight

The LED anode connects directly to +3V3, with the FET switching the cathode. This relies entirely on the panel's flex containing its own current-limiting resistors. If it doesn't, full PWM duty overdrives the backlight. The bring-up firmware caps duty at 40% until the current is verified — but the board should not have needed that workaround.

6. Card detect is unconnected

TF card pin 9 goes nowhere, so firmware must poll for a card rather than respond to an insertion event. Minor, but free to fix.

7. No debug UART broken out

UART0 (TXD0/RXD0) is unconnected, making USB Serial/JTAG the only console. This became genuinely painful during bring-up: when the board wouldn't enumerate, there was no fallback way to reach it.

8. No test points, and no way to isolate rails

The hardest lesson. With a fine-pitch VSON regulator and a shorted rail, there is nowhere convenient to put a probe and no way to disconnect subsystems without desoldering. A v2 gets:

  • test points on VBUS, VCC_SYS, +3V3, BATT+ and GND
  • 0 Ω jumpers in series with each major load (display, SD, MCU) so any branch can be lifted with a soldering iron instead of hot air

9. Ergonomics

The layout works electrically but wasn't designed around hands:

  • Select and Start sit on the far-left edge; on essentially every handheld they belong centre-bottom, reachable by either thumb.
  • The board outline is a plain rectangle with no grip contour, and it's wider than it needs to be. The DMG's proportions exist for a reason.
  • The display is offset toward one corner rather than centred above the controls.
  • No shoulder buttons, which forecloses emulating anything past the Game Boy.
  • No thought given to enclosure mounting — no mounting holes positioned for a shell, and the battery has no defined home.

Parts

61
QtyValueFootprintReferences
10TS-1187A-B-A-Blcsc_footprints:C318884_SW-SMD_4P-L5_1-W5_1-P3_70-LS6_5-TL_H1_5A, B, BOOT, DOWN, EN, LEFT, RIGHT, SELECT, START, UP
910uFlcsc_footprints:C318691_C0805C1, C2, C3, C4, C5, C10, C13, C15, C17
810klcsc_footprints:C95204_R0603R7, R8, R10, R11, R12, R13, R14, R15
50.1uFlcsc_footprints:C1591_C0603C6, C11, C14, C16, C18
31Mlcsc_footprints:C2907003_R0603R4, R6, R16
322uFlcsc_footprints:C5672_C1206C7, C8, C9
3600Ω ±25% @100MHzlcsc_footprints:C21519_L0805L2, L3, L4
25.1klcsc_footprints:C2907044_R0603R1, R2
2B2B-PH-K-S(LF)(SN)lcsc_footprints:C131337_CONN-TH_B2B-PH-K-SCN1, CN2
11.2klcsc_footprints:C114605_R0603R3
1100lcsc_footprints:C2906981_R0603R9
1180klcsc_footprints:C2906999_R0603R5
11uFlcsc_footprints:C29936_C0603C12
1220pFlcsc_footprints:C27675_C0603C19
1DMG2302UK-7lcsc_footprints:C460977_SOT-23-3_L2_9-W1_3-P1_90-LS2_4-BRQ1
1ESP32-S3-WROOM-1U-N8R8lcsc_footprints:C2980300_WIRELM-SMD_ESP32-S3-WROOM-1UU4
1FTC252012S1R5MBCAlcsc_footprints:C5832371_IND-SMD_L2_5-W2_0_MEKK2520TR47ML1
1HS24CG003-ARXlcsc_footprints:C5329583_LCD-SMD_HS24CG003-ARXU5
1MAX98357AETE+Tlcsc_footprints:C910544_TQFN-16_L3_0-W3_0-P0_50-BL-EP1_5U6
1SS-12D00-G3lcsc_footprints:C22355741_SW-TH_3P-L8_8-W3_9-P2_50_SS12D00G3U3
1TF-CARD H1.8lcsc_footprints:C7529389_TF-SMD_TF-CARD-H1_8TF1
1TP4056lcsc_footprints:C16581_ESOP-8_L4_9-W3_9-P1_27-LS6_0-BL-EPU1
1TPS63020DSJRlcsc_footprints:C15483_VSON-14_L4_0-W3_0-P0_50-BL-EP_TI_DSJU2
1TYPE-C 16PIN 2MD(073)lcsc_footprints:C2765186_USB-C-SMD_TYPE-C-16PIN-2MD-073USB1
1USBLC6-2SC6lcsc_footprints:C7519_SOT-23-6_L2_9-W1_6-P0_95-LS2_8-BLD1

Similar boards

  • 4 layers70 × 95 mmEmulator console v2, the printed circuit board in 3D

    Emulator console v2

    lewipewi/esp-32-gaming-console-v2

    A handheld Game Boy (DMG) emulator console built around an ESP32-S3, designed from scratch in KiCad. The target game is Pokémon Red/Blue.

    88 parts
  • 4 layers40 × 44 mmBmi-270-board v3, the printed circuit board in 3D

    Bmi-270-board v3

    lewipewi/bmi-270-board-v3

    Wearable 6-axis motion node for an IMU gesture controller. Each node samples a Bosch BMI270 at 200 Hz and streams it over ESP-NOW to a USB receiver on a PC, where a classifier turns boxing motions into gamepad inputs…

    58 parts
  • 4 layers40 × 60 mmTrinketcore, the printed circuit board in 3D

    Trinketcore

    alph4345/test

    TrinketCore puts everything a small rechargeable gadget needs on one 40 × 60 mm board, ready to order assembled from PCBWay:

    113 parts
  • 4 layers46 × 86.4 mmOpenCycle, the printed circuit board in 3D

    OpenCycle

    Vishvak365/OpenCycle

    Everything is generated from design.py — do not hand-edit the board and then regenerate, you will lose the edit. If you do route by hand in KiCad, stop using the pipeline for that board and say so in docs/DECISIONS.md.

    79 parts
  • 2 layers80 × 100 mmPiQuest, the printed circuit board in 3D

    PiQuest

    qwel-exe/PiQuest

    54 parts
  • 4 layers57.4 × 49.9 mmPhoniesp32, the printed circuit board in 3D

    Phoniesp32

    butzist/phoniesp32

    A kid-friendly jukebox powered by the ESP32

    82 parts11MIT
  • 4 layers45 × 34 mmTriangle flywheel balancer, the printed circuit board in 3D

    Triangle flywheel balancer

    RobbyV2/smart_latch_lock

    A self-closing bike lock built as a clamshell ring. A fixed arc bolts to the housing, a hinged arc swings 180 degrees to meet it, and a worm gearmotor closes the loop around the frame and rim on a button press or a BLE…

    70 parts
  • 4 layers50 × 50 mmHARPY REV2, the printed circuit board in 3D

    HARPY REV2

    lewipewi/harpy-board

    Hard real-time sequencer and power hub for a Canopy Hunter hopping robot (coming soon!). Drives four servos and one brushed motor, holds attitude across a 512 ms ballistic arc, charges the cell, and logs every hop to…

    85 parts

Questions

How big is the Handheld PCB?

It measures 99 × 80 mm and has 4 copper layers, 1.65 mm thick.

What parts does the Handheld use?

61 parts, built around the ESP32-S3-WROOM-1U-N8R8, MAX98357AETE+T, TPS63020DSJR and HS24CG003-ARX. 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 Handheld KiCad files?

From the lewipewi/esp-32-gaming-console repository on GitHub, at the commit this page was made from: the board is pcb files/handheld.kicad_pcb and its schematic pcb files/audio.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Handheld design in my own project?

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