Skip to the content
4 layers79.4 × 119.4 mmPokeboy hw, the printed circuit board in 3D

Game Boy handheld with its own emulator and a Gen 1 Pokemon battle AI that runs on the device

Size
79.4 × 119.4 mm
Copper layers
4
Thickness
0.8 mm
Parts
111
Nets
141
Pads
680
Tracks, vias
1,638, 233
Pours
83
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
10 Jul 2026
Updated
19 Sep 2026

Overview

Pokeboy hw is an open-source printed circuit board by cameo-5958, from the cameo-5958/pokeboy repository on GitHub, published under the MIT licence. It is a 4-layer board of 79.4 × 119.4 mm with 111 parts on 141 nets, routed with 1,638 tracks and 233 vias.

It is built around the MAX98357AETE+T, TPS62162DSG and TPS63802DLAR, with the BQ24074RGTR, TPD2EUSB30DRT and TPS61165DRV among its other parts. Its parts include 37 resistors, 31 capacitors, 9 connectors, 8 switches and 7 ICs. It belongs with the retro computing and games boards of this library.

Main components

7

README

README.md

Pokeboy

Game Boy handheld with its own emulator and a Gen 1 Pokemon battle AI that runs on the device. No ROMs in here, bring your own.

How the AI works

Trainers are driven by a small transformer with a GRU on top. It is integer only: int8 weights, int16 hidden state, no floats on the device.

The patched ROM runs an unused opcode ($DB, $EB, $EC) wherever the game would normally pick a trainer's move. The emulator traps it, reads the battle out of WRAM, runs the model and writes the choice back.

One decision is too slow for a single frame on the Cortex-A8, so the model is cut into small steps (one GEMM block, one attention head, one GRU step) and the scheduler fits them in between frames. ai/models/pep_int.py is the reference and the C++ in pkai/ has to match it bit for bit. There is a test for that.

Layout

  • gameboy/ emulator core, tests, tools
  • emulator/ frontends: linux, headless, win32
  • pkai/ battle AI
  • pred-patch/ pokered with the opcodes the AI hooks into
  • ai/ simulator, training, weight export
  • buildroot/ device image (PocketBeagle / OSD3358)
  • hardware/ KiCad project
  • app/ Expo app
  • backend/ API for ROMs, mods and cartridge metadata

Build

sh
# core, C++17
cmake -S gameboy -B build -DCMAKE_BUILD_TYPE=Release -DPKAI_BUILD_ROM=OFF
cmake --build build -j
build/gbemu_headless game.gb 1800 out.bmp

# patched ROM (needs rgbds) and AI
pred-patch/build_ai.sh
cd ai && uv sync --group dev && sim/build_engine.sh && scripts/build_pkai.sh

# device image
buildroot/scripts/build-image.sh
buildroot/scripts/qemu/run-system.sh

# backend (:4000) and app
cd backend && npm install && npm run dev
cd app && npm install && npm start

Most of the pkai tests skip themselves until the patched ROM and the weights have been built.

License

MIT, see LICENSE. pred-patch/ is the pret/pokered disassembly under its own terms, see pred-patch/THIRD_PARTY_NOTICES.md.

Parts

111
QtyValueFootprintReferences
8100nCapacitor_SMD:C_0402_1005MetricC5, C9, C12, C15, C21, C25, C26, C27
810kResistor_SMD:R_0402_1005MetricR31, R32, R104, R105, R106, R107, R108, R109
7100kResistor_SMD:R_0402_1005MetricR12, R13, R18, R20, R21, R23, R26
64x22RResistor_SMD:R_Array_Convex_4x0603RN1, RN2, RN3, RN4, RN5, RN6
510u/10VCapacitor_SMD:C_0402_1005MetricC2, C3, C4, C6, C10
4100kResistor_SMD:R_Array_Convex_4x0603RN7, RN8, RN9, RN10
433RResistor_SMD:R_0402_1005MetricR27, R28, R29, R30
4EVQ-P1905MPokeboy:EVQ-P1905MSW1, SW2, SW3, SW4
322u/10VC_0805_2012MetricC107, C108, C109
210k DNPResistor_SMD:R_0402_1005MetricR4, R9
218pFCapacitor_SMD:C_0402_1005MetricC102, C103
22.2kResistor_SMD:R_0402_1005MetricR10, R11
2220pCapacitor_SMD:C_0402_1005MetricC22, C23
222u/10VC_0402_1005MetricC7, C8
2600R@100MHzInductor_SMD:L_0402_1005MetricFB1, FB2
2B3AL-1001PPokeboy:B3AL-1001PSW5, SW6
2EVQ-P2B02BPokeboy:EVQ-P2B02BSW7, SW8
10.47uH XFL4015Pokeboy:XFL4015L1
10RResistor_SMD:R_0402_1005MetricR3
10R DNPResistor_SMD:R_0402_1005MetricR19
11.78k 1%Resistor_SMD:R_0402_1005MetricR5
1100k 1%Resistor_SMD:R_0402_1005MetricR17
1100nFCapacitor_SMD:C_0402_1005MetricC105
1104031-0811Connector_Card:microSD_HC_Molex_104031-0811J9
110R 1%Resistor_SMD:R_0402_1005MetricR22
110nCapacitor_SMD:C_0402_1005MetricC1
110uCapacitor_SMD:C_0402_1005MetricC20
110uFCapacitor_SMD:C_0805_2012MetricC106
110uH 1APokeboy:LQH43PNL3
1187k 1%Resistor_SMD:R_0402_1005MetricR16
11MResistor_SMD:R_0402_1005MetricR102
11M 1%Resistor_SMD:R_0402_1005MetricR33
11uCapacitor_SMD:C_0402_1005MetricC24
11u/50VCapacitor_SMD:C_0402_1005MetricC13
12.2uH >1.5AInductor_SMD:L_APV_ANR3012L2
1220nCapacitor_SMD:C_0402_1005MetricC16
122u/6.3VC_0402_1005MetricC11
124 MHzCRYSTAL_5X3.2MMY1
13.01k 1%Resistor_SMD:R_0402_1005MetricR7
13.09k 1%Resistor_SMD:R_0402_1005MetricR6
1330k 1%Resistor_SMD:R_0402_1005MetricR34
14.7u/10VCapacitor_SMD:C_0402_1005MetricC14
146.4k 1%Resistor_SMD:R_0402_1005MetricR8
160V SchottkyDiode_SMD:D_SOD-123FD3
18 OHM SPEAKER PADSPokeboy:SPEAKER_PADS_2J4
1806k 1%Resistor_SMD:R_0402_1005MetricR14
191k 1%Resistor_SMD:R_0402_1005MetricR15
1BQ24074RGTPackage_DFN_QFN:VQFN-16-1EP_3x3mm_P0.5mm_EP1.6x1.6mmU2
1EA WF030-39SPokeboy:EA_WF030_39SJ5
1GREEN POWERLED_SMD:LED_0402_1005MetricD2
1LiPo 1S + / NTC / -Pokeboy:BATTERY_PADS_3J2
1MAX98357AETE+TPackage_DFN_QFN:TQFN-16-1EP_3x3mm_P0.5mm_EP1.23x1.23mmU6
1OSD3358-1G-ISMPokeboy:OSD335X-BGA-256U1
1POWER SWITCH PADSPokeboy:SWITCH_PADS_2J3
1RECOVERY SHORT PADSPokeboy:SHORT_PADS_2J7
1RED CHARGELED_SMD:LED_0402_1005MetricD1
1RESET SHORT PADSPokeboy:SHORT_PADS_2J8
1TPD2EUSB30Texas_DRT-3U7
1TPS61165DRVPackage_SON:WSON-6-1EP_2x2mm_P0.65mm_EP1x1.6mmU5
1TPS62162DSGPackage_SON:WSON-8-1EP_2x2mm_P0.5mm_EP0.9x1.6mm_ThermalViasU4
1TPS63802DLARPokeboy:TPS63802_DLA10U3
1UART TEST PADSPokeboy:TEST_PADS_3J6
1USB Micro-B data/powerPokeboy:USB_Micro-B_Molex-105017-0001J1

Similar boards

  • 6 layers68.8 × 74.6 mmFurbyBoard, the printed circuit board in 3D

    FurbyBoard

    Guilleloma/Furby-GPT

    This project transforms a 1998 Furby into an interactive and advanced desktop assistant using a Raspberry Pi W. It incorporates OpenAI and Whisper for natural language processing, primarily relying on Google Cloud Text…

    158 parts26
  • 4 layers110 × 100 mmNightwave Reference, the printed circuit board in 3D

    Nightwave Reference

    Hustlenix/Nightwave

    Offline-first, battery-powered ESP32-S3 music player for the Hack Club Pixl Trial

    135 partsMIT
  • 4 layers60 × 60 mmCube os, the printed circuit board in 3D

    Cube os

    Tim4769/cube-os

    Fallout/Burnout-style hardware project repository scaffold.

    82 partsMIT
  • 4 layers66 × 142 mmHandset, the printed circuit board in 3D

    Handset

    JeremyLakeyJr/mesh-phone

    OWASSO-1 DIY ESP32-S3 phone KiCad revF PCB project

    146 partsMIT
  • 2 layers50.2 × 95.2 mmCheetoPet, the printed circuit board in 3D

    CheetoPet

    Cheet0sDelet0s/cheetoPet

    an esp32 s3 based tamagotchi

    104 parts3GPL-2.0
  • 2 layers229.7 × 135.6 mmMorse mesh v2, the printed circuit board in 3D

    Morse mesh v2

    eihli/morse-mesh

    This is the current hardware source for future Morse Mesh revisions. It is a professionally reviewed redraw of the frozen, fabricated v1 board, not a pin-compatible replacement: notably, KEYIN moved from v1 PA0 to v2…

    75 parts1
  • 4 layers50 × 44.5 mmS3-motion logger, the printed circuit board in 3D

    S3-motion logger

    abdullahwaqar/s3-motion-logger

    ESP32-S3 motion logging board. It logs 6-axis IMU data to a microSD card and streams it over USB, BLE or Wi-Fi. It runs from a single-cell LiPo and charges over USB-C.

    77 parts
  • 6 layers47.3 × 35.5 mmWatch, the printed circuit board in 3D

    Watch

    alx-alexpark/watch

    65 parts

Questions

How big is the Pokeboy hw PCB?

It measures 79.4 × 119.4 mm and has 4 copper layers, 0.8 mm thick.

What parts does the Pokeboy hw use?

111 parts, built around the MAX98357AETE+T, TPS62162DSG, TPS63802DLAR and BQ24074RGTR. 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 Pokeboy hw KiCad files?

From the cameo-5958/pokeboy repository on GitHub, at the commit this page was made from: the board is hardware/pokeboy-hw/pokeboy-hw.kicad_pcb and its schematic hardware/pokeboy-hw/pokeboy-hw.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Pokeboy hw design in my own project?

Its repository publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).