

A Keyboard With A Cartridge
- Size
- 51.7 × 32 mm
- Copper layers
- 2
- Thickness
- 0.8 mm
- Parts
- 10
- Nets
- 32
- Pads
- 126
- Tracks, vias
- 516, 17
- Pours
- 12
- Routed
- Yes
- KiCad
- KiCad 6 (file 20211014)
- Created
- 16 Jun 2023
- Updated
- 11 Nov 2023
Overview
TypePak is an open-source printed circuit board by ImStuBTW, from the ImStuBTW/typeboy_and_typepak repository on GitHub, published under the MIT licence. It is a 2-layer board of 51.7 × 32 mm with 10 parts on 32 nets, routed with 516 tracks and 17 vias.
It is built around the 74HC595. Its parts include 3 capacitors, 3 connectors and 2 ICs. It belongs with the keyboards and input and retro computing and games boards and the nRF52 and nRF5x boards of this library.
Main components
1README
typepak/README.mdThe TypePak

The TypePak is a custom keyboard controller PCB housed inside of an aftermarket Game Boy Advance cartridge shell. It features Bluetooth connectivity, ZMK support, a low-power monochrome display, a built in LiPo battery, 9 GPIO pins, and 8 dedicated output pins. Simply slot the TypePak into a keyboard with a compatible Game Boy cartridge slot, flip the power switch, and you've got yourself a working wireless keyboard. (After flashing the appropriate firmware and keymap, naturally.)
Unlike its companion TypeBoy, the TypePak was designed in KiCAD from scratch. Sadly there aren't any esoteric Game Boy cartridge generators just yet. This repository contains a standard KiCAD project. There's a schematic, a routed PCB, and a Gerber file.
Layout & Pinout

The heart of the TypePak is a XIAO nRF52840 microcontroller. It handles all of the Bluetooth communication, the wireless battery charging, and USB connectivity. The XIAO "BLE" famously has several pins mounted in the middle of the board on its underside, so the TypePak has several small holes in the PCB to reach the reset, power, and NFC pins.
There's a few additional pieces of hardware mounted onto the board. The TypePak features a LS011B7DH03 Sharp Memory Display. This is the same module found on the Nice!View keyboard display, but instead leverages karnadii's excellent sharp_memory_display_breakout circuit design. The microcontroller also takes advantage of a 74HC595 shift register to provide several more output pins. All of this is powered by a 401020 LiPo battery.
A Game Boy cartridge has 32 pins on its edge connector. The XIAO nRF52840 and the shift register have a total of 26 pins. Rather than leave twenty precent of the TypePak's cartridge pins unused, several of the important pins are exposed on both ends of the cartridge's edge connector. The battery output, power pins, reset pins, and a few others are duplicated so that you can more easily route some of the support hardware on your keyboard PCB.
Speaking of which, the TypePak does not have a built in power switch or reset button of its own. (Technically the XIAO does have a reset button, but it's underneath the cartridge's plastic casing.) You'll need to create out these components on the keyboard itself. The whole idea of this setup is to evoke the stylings of a classic Game Boy, so a large chunky power switch is honestly a welcome addition. Just remember, the battery is physically disconnected unless the keyboard's power switch is turned on, so the TypePak can't charge when disconnected from a board.
Building a TypePak

The TypePak is enclosed inside of an aftermarket Game Boy Advance cartridge. Believe it or not, these cartridges typically did not feature cutouts for USB-C ports. You'll need to drill one into the side of your cartridge so that the TypePak can charge and be flashed with new firmware.

Cutting a hole in the side of the cartridge won't be enough. You'll also need to shave away some of the inside of the top of the case. You should be able to leave most of the exterior of the top untouched. There's just enough material on the inside of the case to make everything fit. The cartridge may bow slightly, but you should be able to get all the tabs locked securely into place and the fastener screw fully secured into place. Aftermarket cartridges are fairly cheap, so you may want to buy an extra to practice on.
Build of Materials
The above table represents the parts needed to construct a single TypePak. You'll need to double everything except for the PCB order if you plan on making two. (JLCPCB fabricates PCBs in groups of 5 as a minimum.) If you're building two TypePaks, it's probably worth bumping the capacitor and ferrite bead orders up to 10. You don't want to have your entire project get stalled if you misplace one of the small components, and the bulk ordering pricing makes buying 4-6 units approximately the same cost as 10.
Parts
10| Qty | Value | Footprint | References |
|---|---|---|---|
| 2 | FerriteBead_Small | Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder | FB1, FB2 |
| 1 | 1uF | Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder | C3 |
| 1 | 1uF | Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder | C2 |
| 1 | 560pF/680pF | Capacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolder | C1 |
| 1 | 74HC595 | Package_SO:SOIC-16_3.9x9.9mm_P1.27mm | U2 |
| 1 | Conn_01x02_Female | Connector_Wire:SolderWire-0.1sqmm_1x02_P3.6mm_D0.4mm_OD1mm | J2 |
| 1 | Conn_01x10 | Connector_FFC-FPC:Hirose_FH12-10S-0.5SH_1x10-1MP_P0.50mm_Horizontal | J3 |
| 1 | Conn_01x32_Male | User_Footprints:GameBoy_GamePak_AGB-002_P1.50mm_Edge | J1 |
| 1 | xiao-ble | User_Footprints:xiao-ble-smd-cutout-nfc | U1 |
More from ImStuBTW/typeboy_and_typepak
1- 2 layers141.2 × 105.6 mm

Similar boards
- 2 layers45.7 × 31.8 mm

LEDx16 board
tardate/LittleArduinoProjects
a collection of "Little Electronic & Arduino Projects", most involving electronics or an Arduino in one way or another!
36 parts803MIT - 2 layers228.6 × 100 mm

Mongus48
ChrisChrisLoLo/beyblock20
The magnetic, modular, 20-key macropad that can join together to form an ortholinear board
124 parts335GPL-3.0 - 2 layers245.1 × 160 mm

8-Bit CPU 32k
slu4coder/Minimal-64x4-Home-Computer
My DIY TTL home computer with VGA and PS/2 and 4x the processing power of a Commodore C64 or Apple II.
139 parts326 - 2 layers100 × 95.1 mm

Protoboard-6x4-breakout
electroniceel/protoboard
Advanced protoboard layout with 1.27mm pitch for smd parts
4,745 parts311CC-BY-4.0 - 4 layers140 × 100 mm

Dc usv
TobleMiner/DC-UPS
A small DC UPS, designed to keep small appliances like consumer network equipment running during power outages
351 parts223CERN-OHL-P-2.0 - 2 layers100.5 × 218.3 mm

- 2 layers287.8 × 126.7 mm

- 2 layers100 × 100 mm

Questions
How big is the TypePak PCB?
It measures 51.7 × 32 mm and has 2 copper layers, 0.8 mm thick.
What parts does the TypePak use?
10 parts, built around the 74HC595. 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 TypePak KiCad files?
From the ImStuBTW/typeboy_and_typepak repository on GitHub, at the commit this page was made from: the board is typepak/TypePak.kicad_pcb and its schematic typepak/TypePak.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Can I use the TypePak 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).