Skip to the content
2 layers86 × 136 mmOpen pocket, the printed circuit board in 3D

Game Boy / Game Boy Color on the Sipeed Tang Nano 20K: HDMI, Pocket-style menu, ST7735 LCD, USB remote. Open-source FPGA toolchain only.

Size
86 × 136 mm
Copper layers
2
Thickness
1.6 mm
Parts
58
Nets
48
Pads
255
Tracks, vias
0, 0
Pours
2
Routed
Not yet
KiCad
KiCad 10.0 (file 20260206)
Created
18 Oct 2026
Updated
26 Oct 2026

Overview

Open pocket is an open-source printed circuit board by LakoMoor, from the LakoMoor/open-pocket-gbc repository on GitHub, published under the GPL-3.0 licence. It is a 2-layer board of 86 × 136 mm with 58 parts on 48 nets.

It is built around the W25Q128JVSIQ, IP5306 and BSS138, with the AO3401 and SS34 among its other parts. Its parts include 14 resistors, 11 switches, 10 capacitors, 7 connectors and 5 transistors. It belongs with the fPGA and programmable logic and retro computing and games boards and the FPGA and CPLD boards of this library.

Main components

5

README

README.md

Open Pocket GBC

Game Boy / Game Boy Color for the Sipeed Tang Nano 20K: HDMI, an Analogue Pocket-style menu, games from an SD card or the on-board flash, working saves, an optional SPI LCD and speaker, built only with open-source tools.

Website: https://lakomoor.github.io/open-pocket-gbc/ · Русская версия · Sister project: Open Pocket WS (WonderSwan Color)

Web Studio: use the USB remote in your browser — live screen, PNG screenshots, board settings and logs without installing an app. Desktop Chrome or Edge, HTTPS or localhost; setup and limitations.

uCity running on the Tang Nano 20K with the debug overlay

The MiSTer Game Boy core runs natively on the 20K's GW2AR-18 FPGA. Video goes out over HDMI (480p, 3× scaling, with audio) and, at the same time, to a cheap 1.44" ST7735S LCD. A small RISC-V CPU inside the FPGA runs the menu firmware: it loads games from a microSD card or the on-board SPI flash, writes cartridge saves and keeps the settings. Every step from source to bitstream uses open-source tools: yosys + slang, GHDL, nextpnr-himbaechel, Apicula and openFPGALoader. No Gowin IDE is needed.

MenuDisplay settingsInfo
menudisplayinfo

Features

  • Core: MiSTer Gameboy core with GB and GBC modes, double speed, HDMA and audio. MBC1/2/3/5, HuC1/HuC3 and plain-ROM carts are supported.
  • HDMI: 720×480p, 59.94 Hz. The GB picture is scaled 3× to 480×432. Audio is embedded (48 kHz stereo). 720p is a build option.
  • Pocket-style display modes: Sharp, LCD grid, Scanlines. Five DMG palettes. GBC LCD color correction, which can be turned off.
  • Analogue Pocket-style menu: full-screen list with icons, a rounded selection bar, descriptions and button hints over the dimmed game. Pages: Library, Save Game, Reset, Display, Audio, Controls, System, Info, Sleep. Short "Saved" / "HDMI off" notifications appear over the running game. See docs/menu.md.
  • Library: games from a microSD card (FAT32 or exFAT, folders, long file names, ROMs up to 6 MB) and from the internal SPI flash (up to 15 games). The menu, the flash games, the settings and the saves all work without a card.
  • Saves that survive power-off: autosave 2 s after the game writes its cartridge RAM, and when the menu opens. SD games get <rom>.sav next to the ROM; flash games use a save slot in the flash, and only changed 4 KB sectors are rewritten.
  • Settings are remembered in the flash: display mode, palettes, volume, model, start-up game, power options.
  • Power saving: HDMI can be switched off (its PLL is powered down) with a long press on S1 or in the menu, so the board can run on the LCD alone. LCD on/off and backlight level, a sleep mode and sleep timer (game paused, HDMI and LCD off, any button wakes it up), board LEDs off by default, the flash in deep power-down, and the menu CPU sleeps in hardware while the game runs.
  • Buzzer / speaker output: sigma-delta audio on pins 76 / 75 (a piezo between the two pins, or a small speaker through an amplifier), with DC removal and up to x8 boost.
  • Menu themes: Ozone (Switch-like sidebar, default), XMB (PS3/PSP category bar), Game Boy (DMG greens), Pocket, Analogue OS, iPod, BIOS setup and Terminal, each with its own SPI LCD layout. Long labels scroll.
  • Home screen: with no game loaded, a built-in synthwave intro with a chiptune runs behind the menu, as on MiSTer.
  • Power page: every power saving measure as its own setting, plus Normal / Battery presets.
  • Battery mode: one switch (System → Power Mode or hold S2) turns off HDMI completely (PLL, tri-stated outputs, no framebuffer traffic), dims the LCD and darkens it after 30 s idle, turns off LEDs and sleeps after 5 min.
  • Cartridge: an external W25Qxx flash on four pins acts as a game cartridge. Games are written to it from the SD card in the menu, played from it, and keep their saves on it.
  • Original cartridges: the same four pins drive a five-chip shift-register reader (no microcontroller) for real Game Boy / GBC cartridges, MBC1/2/3/5. The ROM is copied to SDRAM and the battery save goes back to the cartridge: docs/cart_reader.md.
  • SPI LCD menu: the same Pocket-style look on the 128×128 screen: colour cells, icons, rounded selection bar, title bar and value line.
  • ST7735S 128×128 SPI LCD, driven together with HDMI at about 60 fps. Fit mode filters 160×144 down to 128×115; Crop mode shows the center 128×128 at 1:1. The menu is shown on the LCD too.
  • Controls: DualShock 2 on the Sipeed adapter, 8 plain buttons on header pins, and a remote over the board's USB-UART. All three work at the same time.
  • Debug overlay: FPS, GB/GBC mode, CPU speed, live button state, uptime, game name, mapper and ROM size. It is drawn in the HDMI border and in the top row of the LCD.
  • Menu CPU: FemtoRV32 (RV32E) with the firmware in SDRAM, FatFs for the card. It stalls on a wait register while nothing happens, so it does not switch during play.

Demo

Boot after resetLoading a game from the LibraryGameplay + live pad state
bootloaddebug play

Menu navigation, all recorded from the HDMI capture card while tools/record.py pressed the buttons over USB:

menu navigation

Display modes (crop, 2×)DMG palettes (System = DMG)
display modespalettes

LCD output: Fit and Crop. These are simulation renders of the real lcd_st7735 RTL fed with a captured frame:

LCD simulation

The die

The design as nextpnr placed it on the GW2AR-18: every used LUT, flip-flop and block RAM at its real position, coloured by block, with the routed wires as traces (tools/die_shot.py).

placed design

Quick start

Photo gallery (1.9.2): Tools → Screenshots / Print Album / Photos on SD. Browse saved BMP images on HDMI and LCD, switch Fit / actual size with A and pan with the d-pad. Requires matching firmware and bitstream; formats and controls.

Automatic releases: Build and publish release builds firmware, Full/Minimal, APK, desktop apps and the web archive on GitHub and publishes only after all required builds and checks pass. Details.

sh
./build.sh gbc_top                                  # yosys -> nextpnr -> gowin_pack (~10 min)
fw/build.sh                                         # menu firmware (RISC-V GCC)
./flash.sh all                                      # bitstream + firmware to SPI flash
python tools/make_games.py build/games.bin games/ucity.gbc=uCity games/libbet.gb
./flash.sh games                                    # built-in games to flash @ 0x200000

For the SD card, copy .gb / .gbc files (in any folders) to a FAT32 or exFAT microSD card and insert it into the board's slot.

Toolchain setup, build options and the flash layout: docs/build.md.

Controls

ActionDualShock 2GPIO buttonsBoardPC remote (tools/remote.py)
D-padD-padUp/Down/Left/Rightarrows
A / B○ / ✕ (also △ / □)A / Bx / z
Start / SelectStart / SelectStart / SelectEnter / Backspace
Open / close menuSelect + StartSelect + StartS1m
HDMI on / offhold S1 for 1 s
Battery mode on / offhold S2 for 1 s
Reset gameS2r

In the menu: up/down moves the cursor, left/right changes a value, A selects, B goes back or closes.

Wiring

Buttons go from each pin to GND; the internal pull-ups are enabled. The LCD runs on 3.3 V.

SignalPinSignalPin
Up25LCD SCL73
Down26LCD SDA74
Left27LCD RES71
Right28LCD DC72
A29LCD CS53
B30LCD BL52
Select31DualShock 217–20 (Sipeed adapter)
Start77Speaker + / −76 / 75
Cartridge CS / CLK51 / 48Cartridge DI / DO55 / 49
microSDon-board slotHDMIon board

Details, LCD orientation and color parameters: docs/hardware.md.

Documentation

Resource usage

UsedAvailable
LUT417 24220 73683 %
BSRAM4646100 %
clk_sys 33.75 MHzFmax ≈ 46 MHzpasses
clk_pixel 27 MHz (480p)Fmax > 90 MHzpasses

Status and limitations

  • Tested on hardware with the capture card: HDMI video and audio path, the new menu, loading and switching games from the flash, flash saves (restored after a reload), settings in the flash, HDMI off / on, sleep and wake-up, DMG/GBC modes, the USB remote.
  • Not yet tested on hardware: loading and saving on the SD card (the driver and FatFs are in place; no card was inserted during testing) and the speaker output (no buzzer attached).
  • Not tested on hardware:
    • The ST7735S LCD output is verified in simulation only.
    • The DualShock 2 path is the same as NESTang's, but no controller was attached during testing.
    • The GPIO buttons were only checked for idle state: no false presses with nothing connected.
  • No real-time clock for MBC3 games, no save states. MBC7 EEPROM saves are not kept.
  • Power was not measured: the savings above are design measures; no current meter was used.
  • Rare mappers are disabled to save logic: MBC6, MBC7, MMM01, camera, TAMA5, Rocket, Sachen and MegaDuck. Build with DEFS="-D ALL_MAPPERS" to try them; it may not fit.
  • 720p is noisy: the 720p build works but the 371 MHz TMDS link is noisy with the core running, so 480p is the default.

Credits and licenses

This project is released under the GPL-3.0 (see LICENSE). It includes or is derived from:

  • MiSTer Gameboy core, GPL-3.0: rtl/gb/ (T80 CPU, PPU, APU, mappers)
  • SameBoy boot ROMs (MIT), as built by the MiSTer core: rtl/gb_port/boot_rom.hex
  • hdl-util/hdmi (MIT / Apache-2.0): rtl/hdmi/
  • DualShock controller interface by K. Degawa, via NESTang: rtl/io/dualshock_controller.v (freeware, non-commercial use)
  • font8x8 (public domain)
  • FemtoRV32 Quark by Bruno Levy and Matthias Koch (BSD-3-Clause): rtl/rv/femtorv32_quark.v, changed to RV32E with the registers in block RAM
  • FatFs by ChaN (BSD-style): fw/fatfs/
  • Included homebrew games: µCity by AntonioND (GPL-3.0) and Libbet and the Magic Floor by Damian Yerrick (zlib)

Game Boy and Game Boy Color are trademarks of Nintendo. This project is not affiliated with Nintendo or Analogue.

Parts

58
QtyValueFootprintReferences
710kR_0603_1608MetricR20, R30, R31, R32, R33, R34, R35
410uFC_0805_2012MetricC1, C2, C3, C13
4BSS138SOT-23Q1, Q2, Q3, Q4
4M2MountingHole_2.2mm_M2H1, H2, H3, H4
2100kR_0603_1608MetricR11, R21
21kR_0603_1608MetricR3, R10
21uFC_0603_1608MetricC11, C12
222uFC_0805_2012MetricC4, C5
25.1kR_0603_1608MetricR1, R2
1100RR_0603_1608MetricR12
1100nFC_0603_1608MetricC20
110nFC_0603_1608MetricC10
11uH 4AL_Bourns_SRN6045TAL1
13.5 mmJack_3.5mm_CUI_SJ1-3523N_HorizontalJ8
1ASW_SPST_PTS645Sx43SMTR92SW5
1AO3401SOT-23Q5
1BSW_SPST_PTS645Sx43SMTR92SW6
1DownSW_SPST_PTS645Sx43SMTR92SW2
1IP5306SOIC-8-1EP_3.9x4.9mm_P1.27mm_EP2.29x3mmU2
1LCD 1.44in ST7735 (alt.)PinSocket_1x08_P2.54mm_VerticalJ4
1LCD 2.4in ILI9341PinSocket_1x14_P2.54mm_VerticalJ3
1LED chargeLED_0603_1608MetricD2
1LeftSW_SPST_PTS645Sx43SMTR92SW3
1LiPo 3.7 VJST_PH_S2B-PH-K_1x02_P2.00mm_HorizontalJ6
1Link portopen_pocket:GB_Link_PortJ9
1MenuSW_SPST_TL3342SW9
1PAM8302AMSOP-8_3x3mm_P0.65mmU3
1PowerSW_SPDT_Shouhan_MSK12C02SW10
1RightSW_SPST_PTS645Sx43SMTR92SW4
1SS34D_SMAD1
1SelectSW_SPST_TL3342SW7
1Speaker 8R 1WJST_PH_S2B-PH-K_1x02_P2.00mm_HorizontalJ7
1StartSW_SPST_TL3342SW8
1Tang Nano 20Kopen_pocket:TangNano20K_SocketU1
1USB-C (charge)USB_C_Receptacle_GCT_USB4105-xx-A_16P_TopMnt_HorizontalJ5
1UpSW_SPST_PTS645Sx43SMTR92SW1
1W25Q128JVSOIC-8_5.3x5.3mm_P1.27mmU4
1Wake / boostSW_SPST_TL3342SW11

Similar boards

  • 4 layers150 × 100 mmZpn devboard, the printed circuit board in 3D

    Zpn devboard

    CRImier/MyKiCad

    My KiCad boards. Can't be bothered uploading individually anymore, so here you go.

    168 parts253GPL-3.0
  • 2 layers110 × 44 mmIp5306-ups, the printed circuit board in 3D

    Ip5306-ups

    smkent/pcb

    PCB designs

    64 partsCC-BY-SA-4.0
  • 2 layers60.6 × 30.3 mmDice roller, the printed circuit board in 3D

    Dice roller

    atricreations/Electronic-Dice-Roller

    Repo containing all the neccessary files for the Electronic Dice Roller by Atricreations.

    196 parts
  • 2 layers49.9 × 101.6 mmDosimetro, the printed circuit board in 3D

    Dosimetro

    gitdoalberto/dosimetro-ruido-nr15

    Projeto desenvolvido como Eetapa de Capacitação Profissional - Embarcatech.

    75 parts
  • 2 layers134.4 × 72.2 mmFPGBA, the printed circuit board in 3D

    FPGBA

    teejaytiger/FPGBA

    Full overhaul of the GBA mainboard to free ourselves from supply chain death

    143 parts
  • 2 layers50 × 145 mmSmartRemote, the printed circuit board in 3D

    SmartRemote

    Circuit-Digest/Smart-Universal-Remote-with-Learning-function-and-Google-Assistant-Support

    Smart Universal Remote with Learning function and Google Assistant Support

    75 parts3
  • 2 layers100 × 100 mmCopperPilotDrone, the printed circuit board in 3D

    CopperPilotDrone

    CopperPilot/CopperPilotDronePCB

    Flight controller and airframe on one ESP32-S3 board. Fly it from any phone over its own Wi-Fi. Motor traces sized to IPC-2221 for about 3 A.

    109 parts1
  • 2 layers68.2 × 52.2 mmForward Ignition PCB, the printed circuit board in 3D

    Forward Ignition PCB

    aditgoyal5/Forward_Ignition_PCB

    This repository is about a printed circuit board I built for Team Sammard.

    135 parts

Questions

How big is the Open pocket PCB?

It measures 86 × 136 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Open pocket use?

58 parts, built around the W25Q128JVSIQ, IP5306, BSS138 and AO3401. 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 Open pocket KiCad files?

From the LakoMoor/open-pocket-gbc repository on GitHub, at the commit this page was made from: the board is hardware/pcb/open_pocket.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the Open pocket design in my own project?

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