Skip to the content
2 layers120.6 × 72.2 mmGk controls, the printed circuit board in 3D

Gk controls

jncronin/gk79

This respository provides PCB schematics, firmware and debugging support for the gkv4 handheld game console and its operating system, gkos. For the original STM32H7S7-based gk, see README-v3.md.

Size
120.6 × 72.2 mm
Copper layers
2
Thickness
1.6 mm
Parts
110
Nets
74
Pads
456
Tracks, vias
1,147, 144
Pours
2
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
4 Jan 2024
Updated
4 Nov 2026

Overview

Gk controls is an open-source printed circuit board by jncronin, from the jncronin/gk repository on GitHub. It is a 2-layer board of 120.6 × 72.2 mm with 110 parts on 74 nets, routed with 1,147 tracks and 144 vias.

It is built around the PCAL6416APW and ULN2003A. Its parts include 49 resistors, 24 capacitors, 10 connectors, 4 ICs and 2 diodes.

Main components

2

README

README.md

gk and gkos

This respository provides PCB schematics, firmware and debugging support for the gkv4 handheld game console and its operating system, gkos. For the original STM32H7S7-based gk, see README-v3.md.

gkv4 represents a significant upgrade over the original gk with improved speed, a bigger screen, more gamepad buttons and hardware-accelerated 3D rendering.

Videos of the gkv4 in action

An image of the gk showing its menu screen

Overview

gkv4 is a small, battery powered handheld gaming console running on a STM32MP2 MPU (dual Cortex-A35 cores with additional Cortex-M33 core). It runs a custom OS called gkos which allows near-instantaneous (MCU-like) cold boot times but is powerful enough to run most POSIX userspace applications. See https://github.com/jncronin/gk-userland for the userland support including cross GCC toolchains and useful libraries. https://github.com/jncronin/gk-repo contains all the userspace code including ports of various emulators, games and utilities.

Game/emulator support:

  • Mednafen for NES, SNES, SMS, MD and Lynx support
  • Hatari for Atari ST
  • PCSX_rearmed for PS1
  • Mupen64plus (see fork at https://github.com/jncronin/mupen64-combined) for N64 (GPU-accelerated)
  • Atari++ for Atari XL
  • DOSBox-X (achieves 25000 cycles/second, 199561 parrots, 74 XT on speedtst.com, roughly 486 50 MHz equivalent)
  • Native ports of:
    • Neverball/neverputt (GPU-accelerated with tilt support)
    • Tuxracer (GPU-accelerated)
    • Doom (sdl2-doom)
    • Quake (ChocolateQuake)
    • Descent (ChocolateDescent)
    • koules

Hardware Specifications

PCBs, schematics and case STL files are available in https://github.com/jncronin/gk/tree/main/gk-pcbv4.

  • STM32MP255D processor with variable clock rate (defined on a per-game basis). Debug and trace ports exposed.
  • LPDDR4 RAM (1 GiB in current version)
  • Lithium ion battery (10,000 mAH in current version) with USB-C charging via BQ25601, state of charge monitoring via MAX17048 and current sensing via INA236
  • 800x480 5 inch touchscreen (ER-TFT050-6). Hardware scaling support via STM32MP2 LTDC peripheral.
  • Micro SD for storage with voltage switch support
  • Wifi/Bluetooth module attached via M.2 E-key interface (e.g. EAR00389 module)
  • Gyrometer/accelerometer + optional magnetometer for tilt interface
  • Headphone + internal speaker audio out via TAD5112
  • Multiple controls including:
    • Left and right analog sticks (programmable as digital on per-game basis)
    • ABXY + DPAD buttons
    • Start + select buttons
    • Analog throttle controller
    • Volume up/down (can be programmed as additional game inputs)
    • Menu button (opens OSD)
    • Left/right trigger + bumper buttons on back of device
  • Battery backup for RTC

Total current draw is heavily dependent on screen brightness but is typically 1.5W or less at full CPU + GPU load with medium brightness, and max ~2W at full brightness.

Software

gkos is a custom OS written from scratch in C++. It is available in the https://github.com/jncronin/gk/tree/main/Firmware-v4 directory. Features:

  • Armv8-A SMP scheduler with multiple active processes + threads
  • Syscall interface with wrappers for most POSIX functions
  • High resolution (10 ns precision) timer provided to games
  • pthread support including threads, mutexes, semaphores, conditions, rwlocks and barriers
  • A port of the etnaviv GPU driver allowing hardware-accelerated OpenGL
  • Driver for Infineon CYW43439 chipset and IPv4 network stack
  • SD card (with UHS-I mode support) with Ext4 (Lwext4) and FAT (fatfs) drivers
  • USB driver allowing the device to present itself as a mass storage device to allow provisioning the internal SD card
  • Offloading of all input tasks, including tilt sensor and touch screen filtering, to Cortex-M33 core

Examples

Tuxracer using the GPU for rendering:

Tuxracer on the GK

Tuxracer with the OSD overlay (handled by the gk-supervisor process in the (https://github.com/jncronin/gk-userland) repo) showing current system health, battery and cpu usage:

Tuxracer with on-screen display

Parts

110
QtyValueFootprintReferences
3410kResistor_SMD:R_0603_1608MetricR1, R2, R11, R13, R14, R15, R16, R17, R18, R19, R20, R21, R22, R23, R24, R25 +18
21100nCapacitor_SMD:C_0603_1608MetricC4, C10, C11, C12, C13, C14, C15, C16, C17, C18, C19, C20, C21, C22, C23, C24 +5
9SW_Pushgk:TouchButton-8x8mm_2SW_A1, SW_B1, SW_D1, SW_L1, SW_MENU1, SW_R1, SW_U1, SW_X1, SW_Y1
7Conn_01x01Connector_PinHeader_2.54mm:PinHeader_1x01_P2.54mm_VerticalJ3, J4, J5, J6, J8, J9, J10
7MountingHoleMountingHole:MountingHole_3.2mm_M3H1, H2, H3, H4, H6, H8, H9
6360RResistor_SMD:R_0603_1608MetricR6, R7, R8, R9, R10, R12
420kResistor_SMD:R_0603_1608MetricR40, R42, R44, R46
4NCResistor_SMD:R_0603_1608MetricR39, R41, R43, R45
310uCapacitor_SMD:C_0805_2012MetricC1, C2, C3
2LED_ARGBLED_SMD:LED_ASMB-KTF0-0A306D1, D2
2LMV358DMR2GPackage_SO:OnSemi_Micro8U3, U4
2SW_PushButton_Switch_SMD:SW_SPST_PTS647_Sx38SW_SELECT1, SW_START1
2~gk:XBOX_THUMB_ROT_OVERLAPSW1, SW2
1100kResistor_SMD:R_0603_1608MetricR5
1Battery_CellBattery:BatteryHolder_Keystone_3002_1x2032BT1
1Conn_01x03Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJ2
1Conn_01x06Connector_FFC-FPC:TE_0-1734839-6_1x06-1MP_P0.5mm_HorizontalJ7
1Conn_01x20Connector_PinHeader_1.27mm:PinHeader_2x10_P1.27mm_Vertical_SMDJ1
1PCAL6416APWPackage_SO:TSSOP-24_4.4x7.8mm_P0.65mmU1
1ULN2003APackage_SO:SOIC-16_3.9x9.9mm_P1.27mmU2

More from jncronin/gk

8
  • 4 layers96.2 × 75.8 mmPmic panel, the printed circuit board in 3D

    Pmic panel

    jncronin/gk

    This respository provides PCB schematics, firmware and debugging support for the gkv4 handheld game console and its operating system, gkos. For the original STM32H7S7-based gk, see README-v3.md.

    498 parts79
  • 6 layers108 × 158.8 mmGk pcbv3, the printed circuit board in 3D

    Gk pcbv3

    jncronin/gk

    This respository provides PCB schematics, firmware and debugging support for the gkv4 handheld game console and its operating system, gkos. For the original STM32H7S7-based gk, see README-v3.md.

    289 parts79
  • 6 layers121.6 × 110 mmGk pcbv4, the printed circuit board in 3D

    Gk pcbv4

    jncronin/gk

    This respository provides PCB schematics, firmware and debugging support for the gkv4 handheld game console and its operating system, gkos. For the original STM32H7S7-based gk, see README-v3.md.

    270 parts79
  • 6 layers108 × 158.8 mmGk pcbv2, the printed circuit board in 3D

    Gk pcbv2

    jncronin/gk

    This respository provides PCB schematics, firmware and debugging support for the gkv4 handheld game console and its operating system, gkos. For the original STM32H7S7-based gk, see README-v3.md.

    262 parts79
  • 6 layers108 × 158.8 mmGk, the printed circuit board in 3D

    Gk

    jncronin/gk

    This respository provides PCB schematics, firmware and debugging support for the gkv4 handheld game console and its operating system, gkos. For the original STM32H7S7-based gk, see README-v3.md.

    203 parts79
  • 4 layers25.4 × 25.4 mmPmic, the printed circuit board in 3D

    Pmic

    jncronin/gk

    This respository provides PCB schematics, firmware and debugging support for the gkv4 handheld game console and its operating system, gkos. For the original STM32H7S7-based gk, see README-v3.md.

    52 parts79
  • 4 layers50.7 × 52 mmGk oled pcb, the printed circuit board in 3D

    Gk oled pcb

    jncronin/gk

    This respository provides PCB schematics, firmware and debugging support for the gkv4 handheld game console and its operating system, gkos. For the original STM32H7S7-based gk, see README-v3.md.

    48 parts79
  • 2 layers60 × 38.2 mmGk controls trigger, the printed circuit board in 3D

    Gk controls trigger

    jncronin/gk

    This respository provides PCB schematics, firmware and debugging support for the gkv4 handheld game console and its operating system, gkos. For the original STM32H7S7-based gk, see README-v3.md.

    7 parts79

Similar boards

  • 2 layers231.8 × 98.9 mmKeyboard, the printed circuit board in 3D

    Keyboard

    0AC0/kbd

    A https://ergodox-ez.com/pages/planck inspired keyboard.

    153 parts
  • 2 layers56 × 65 mmPiPower, the printed circuit board in 3D

    PiPower

    M-o-a-T/moat-hardware

    Schematics and files for MoaT IoT things

    128 parts
  • 2 layers107 × 54 mmInterface board 1, the printed circuit board in 3D

    Interface board 1

    Green-bms/SmartBMS

    Open source Smart Battery Management System

    63 parts756
  • 4 layers93.3 × 60.3 mmArduino 386EX V5, the printed circuit board in 3D

    Arduino 386EX V5

    dbalsom/arduinoX86

    An interface between an Arduino Due or Arduino GIGA and 8088, 8086, V20, V30, 186 or 286 CPUs

    56 parts114
  • 2 layers52 × 61 mmArduino motorfocus, the printed circuit board in 3D

    Arduino motorfocus

    fehlfarbe/arduino-motorfocus

    Arduino motorfocus with moonlite protocol for telescopes

    23 parts58MIT
  • 4 layers199.9 × 69.3 mmZaphod controller, the printed circuit board in 3D

    Zaphod controller

    Scottapotamas/zaphod-bot

    A DIY high performance delta-bot for fun, and lightpainting...

    251 parts53
  • 4 layers285.1 × 48.1 mmAyab esp32, the printed circuit board in 3D

    Ayab esp32

    AllYarnsAreBeautiful/ayab-hardware

    Contains the schematics and layouts for the AYAB Arduino shield

    246 parts50CC-BY-SA-4.0

Questions

How big is the Gk controls PCB?

It measures 120.6 × 72.2 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Gk controls use?

110 parts, built around the PCAL6416APW and ULN2003A. 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 Gk controls KiCad files?

From the jncronin/gk repository on GitHub, at the commit this page was made from: the board is gk-pcbv4/gk-controls/gk-controls.kicad_pcb and its schematic gk-pcbv2/gk-pcbv2/audio.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Gk controls design in my own project?

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