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.
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.
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…
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…
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.
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).