
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.

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.
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.
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.
| MCU | ESP32-S3-WROOM-1U-N8R8 (dual-core Xtensa LX7 @ 240 MHz, 8 MB flash, 8 MB octal PSRAM) |
| Display | 2.4" 240×320 IPS TFT, 4-wire SPI, MOSFET-switched backlight |
| Storage | microSD via 4-bit SDMMC |
| Audio | MAX98357A I²S class-D amp, filterless output to a PH-2 speaker header |
| Input | 8 tactile switches (D-pad, A, B, Select, Start) + reset and boot |
| Power | USB-C sink, TP4056 Li-ion charger, TPS63020 buck-boost to 3.3 V |
| Battery | 1S Li-ion, 3.7 V 2000 mAh |
| Protection | USBLC6-2SC6 TVS on USB D+/D−/VBUS |
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.
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.
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.
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.
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.
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.
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.
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.
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.
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:
The layout works electrically but wasn't designed around hands:
| Qty | Value | Footprint | References |
|---|---|---|---|
| 10 | TS-1187A-B-A-B | lcsc_footprints:C318884_SW-SMD_4P-L5_1-W5_1-P3_70-LS6_5-TL_H1_5 | A, B, BOOT, DOWN, EN, LEFT, RIGHT, SELECT, START, UP |
| 9 | 10uF | lcsc_footprints:C318691_C0805 | C1, C2, C3, C4, C5, C10, C13, C15, C17 |
| 8 | 10k | lcsc_footprints:C95204_R0603 | R7, R8, R10, R11, R12, R13, R14, R15 |
| 5 | 0.1uF | lcsc_footprints:C1591_C0603 | C6, C11, C14, C16, C18 |
| 3 | 1M | lcsc_footprints:C2907003_R0603 | R4, R6, R16 |
| 3 | 22uF | lcsc_footprints:C5672_C1206 | C7, C8, C9 |
| 3 | 600Ω ±25% @100MHz | lcsc_footprints:C21519_L0805 | L2, L3, L4 |
| 2 | 5.1k | lcsc_footprints:C2907044_R0603 | R1, R2 |
| 2 | B2B-PH-K-S(LF)(SN) | lcsc_footprints:C131337_CONN-TH_B2B-PH-K-S | CN1, CN2 |
| 1 | 1.2k | lcsc_footprints:C114605_R0603 | R3 |
| 1 | 100 | lcsc_footprints:C2906981_R0603 | R9 |
| 1 | 180k | lcsc_footprints:C2906999_R0603 | R5 |
| 1 | 1uF | lcsc_footprints:C29936_C0603 | C12 |
| 1 | 220pF | lcsc_footprints:C27675_C0603 | C19 |
| 1 | DMG2302UK-7 | lcsc_footprints:C460977_SOT-23-3_L2_9-W1_3-P1_90-LS2_4-BR | Q1 |
| 1 | ESP32-S3-WROOM-1U-N8R8 | lcsc_footprints:C2980300_WIRELM-SMD_ESP32-S3-WROOM-1U | U4 |
| 1 | FTC252012S1R5MBCA | lcsc_footprints:C5832371_IND-SMD_L2_5-W2_0_MEKK2520TR47M | L1 |
| 1 | HS24CG003-ARX | lcsc_footprints:C5329583_LCD-SMD_HS24CG003-ARX | U5 |
| 1 | MAX98357AETE+T | lcsc_footprints:C910544_TQFN-16_L3_0-W3_0-P0_50-BL-EP1_5 | U6 |
| 1 | SS-12D00-G3 | lcsc_footprints:C22355741_SW-TH_3P-L8_8-W3_9-P2_50_SS12D00G3 | U3 |
| 1 | TF-CARD H1.8 | lcsc_footprints:C7529389_TF-SMD_TF-CARD-H1_8 | TF1 |
| 1 | TP4056 | lcsc_footprints:C16581_ESOP-8_L4_9-W3_9-P1_27-LS6_0-BL-EP | U1 |
| 1 | TPS63020DSJR | lcsc_footprints:C15483_VSON-14_L4_0-W3_0-P0_50-BL-EP_TI_DSJ | U2 |
| 1 | TYPE-C 16PIN 2MD(073) | lcsc_footprints:C2765186_USB-C-SMD_TYPE-C-16PIN-2MD-073 | USB1 |
| 1 | USBLC6-2SC6 | lcsc_footprints:C7519_SOT-23-6_L2_9-W1_6-P0_95-LS2_8-BL | D1 |

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.

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…

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

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.



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…

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…
It measures 99 × 80 mm and has 4 copper layers, 1.65 mm thick.
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.
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.
Its repository states no licence, so its author keeps all rights: ask lewipewi before reusing the design.