A handheld retro gaming console built around a Raspberry Pi Zero 2 W, designed for long battery life through a custom PCB that places every power, audio, and amplifier IC as a bare chip directly on the board.
- 🔨 Phase 1, Component identification & research: mostly complete.
- ✅ Phase 2, Breadboard prototype: complete. All subsystems (power, display, audio, buttons) verified end-to-end on 2026-04-03 / 2026-04-04.
- 🔨 Phase 3, Schematic capture (KiCad): mostly complete. ERC is clean; a readability pass on the sheet remains.
- 🔨 Phase 4, PCB layout (KiCad): in progress. Placement and routing are done, and DRC reports 0 errors. Provisional footprints still need checking against the real parts, and there are no fabrication files yet. Not ready for fabrication.
- 🔨 Phase 5, Case design: first concept modeled in CadQuery, with STLs and renders in
case/. Not printed yet, and several part sizes are provisional.
See the Phases table below for the full roadmap.
Marathon integrates its power management (BQ25616 charger, TPS61023 boost, LTC2954 power key controller and MAX17048 fuel gauge), I²S DAC (PCM5102A), and class-D amplifier (PAM8403) as bare ICs on a single custom PCB. The final board is planned for SMT assembly via JLCPCB. The design dedicates internal case volume to a thin, high-capacity LiPo cell, the source of the "Marathon" name.
Design highlights:
- Bare-chip build. Every IC is soldered directly to the PCB, not mounted on breakout modules.
- Safe charging and clean shutdown. A BQ25616 charges the cell at 0.9 A, only between 0 °C and 45 °C, and runs the device from USB while it charges. A TPS61023 boosts the cell to 5 V. The power key turns the device on with a 1 s hold and shuts Linux down cleanly with a short press; a MAX17048 gauge reports the battery level so the Pi can shut down before the cell runs out.
- Long-life battery. Target about 4000 mAh, from a 105060-class cell about 10 mm thick. The board reserves a 67 x 59 mm area on the back, for a cell up to 57 x 65 mm with its protection board (
planning/specs/022-BATTERY-SPACE.md). - Direct I²S audio chain. Pi → PCM5102A DAC → PAM8403 amplifier → two speakers. A hardware SPDT mute switch holds the amp in shutdown for instant silence, and fixed attenuation keeps full-scale audio under the speakers' 1 W rating at the amp's nominal gain. Fine volume control is handled in RetroPie.
- Direct GPIO input. Silicone membrane pads for the D-pad and ABXY, tactile switches for Start, Select, and shoulder buttons. No I²C expander.
- USB-C with spec-compliant CC resistors. Works with any USB-C cable, not just A-to-C.
- Landscape handheld form factor. A 160 x 75 mm board with the screen in the middle, the D-pad on the left, and the face buttons on the right.
The main board without its case, front and back, rendered from the KiCad layout.
Power flow and signal flow across the Marathon hardware:
flowchart LR
USBC[USB-C in]
BAT[3.7V LiPo<br/>about 4000 mAh]
CHG[BQ25616<br/>charger + power path]
BOOST[TPS61023<br/>5V boost]
KEY[LTC2954<br/>power key]
GAUGE[MAX17048<br/>fuel gauge]
V5((5V rail))
V33((3.3V rail))
PI[Raspberry Pi<br/>Zero 2 W]
MUTE{SPDT mute<br/>switch}
PAM[PAM8403<br/>class-D amp]
DAC[PCM5102A<br/>I2S DAC]
LCD[ILI9341<br/>3.2 inch SPI LCD]
SPK1[Speaker L]
SPK2[Speaker R]
DPAD[D-pad<br/>silicone pad]
ABXY[ABXY<br/>silicone pad]
TACT[Start / Select<br/>L / R shoulders]
USBC --> CHG
BAT <--> CHG
CHG -->|SYS| BOOST
BOOST --> V5
KEY -->|enable| BOOST
KEY <-->|shutdown request / kill| PI
BAT --- GAUGE
GAUGE -->|I2C| PI
V5 --> PI
V5 --> PAM
MUTE -->|shutdown| PAM
V5 -->|backlight| LCD
PI --> V33
V33 --> LCD
V33 --> DAC
PI -->|SPI| LCD
PI -->|I2S| DAC
DAC -->|analog L/R| PAM
PAM --> SPK1
PAM --> SPK2
DPAD -->|GPIO| PI
ABXY -->|GPIO| PI
TACT -->|GPIO| PI
| Phase | Scope | Status |
|---|---|---|
| 1 | Component identification & research | 🔨 Mostly complete |
| 2 | Breadboard prototype | ✅ Complete (2026-04-03 / 2026-04-04) |
| 3 | Schematic capture (KiCad) | 🔨 Mostly complete |
| 4 | PCB layout (KiCad) | 🔨 In progress |
| 5 | Case design (3D print) | 🔨 First concept |
| 6 | Software & RetroPie tuning | 🔨 Partial (validated during Phase 2) |
| 7 | Fabrication & final assembly (JLCPCB + hand-solder) | ⏳ Planned |
Full phase detail is in documentation/PROJECT_PLAN.md.
marathon/
├── .claude/skills/verify-marathon/ ERC, DRC, BOM and renders of the KiCad project, vs main
├── README.md this file
├── LICENSE CERN-OHL-P v2
├── bom/ bill of materials, sourcing, decision log
├── documentation/
│ ├── PROJECT_PLAN.md design overview, architecture, phase roadmap
│ ├── PIN_MAPPING.md complete 40-pin GPIO map across all subsystems
│ └── PROTOTYPE_BUILD_GUIDE.md step-by-step breadboard prototype build guide
├── schematics/ schematic PDF export (planned)
├── pcb/ KiCad 10 project: schematic, layout, libraries, renders
├── case/ the 3D-printed case: CadQuery source, STEP, STLs, renders
├── software/ firmware and OS configuration (Phase 6)
└── tools/render/ board renders and the stand-in 3D models
software/ is a placeholder for a later phase.
- Breadboard prototype build:
documentation/PROTOTYPE_BUILD_GUIDE.md: full walkthrough from USB-C cable harvest through verified I²S audio and joystick input, including all config files and gotchas. - Pin mapping:
documentation/PIN_MAPPING.md: the full 40-pin GPIO table, subsystem breakdowns, and display / audio / button pin assignments. - Bill of materials:
bom/: every component with specs, costs, sourcing, and a running decision log. - Project plan:
documentation/PROJECT_PLAN.md: architecture overview and the full phase roadmap.
| Subsystem | Component | Notes |
|---|---|---|
| Compute | Raspberry Pi Zero 2 W | Mounts on the back of the PCB on standoffs, joined by long-tail header pins |
| Display | ILI9341 3.2" SPI LCD | 18-pin FPC ribbon soldered directly to the PCB |
| Audio DAC | PCM5102A (bare IC) | I²S input, line-level output |
| Audio amp | PAM8403 (bare IC) | Class-D stereo, drives two speakers |
| Power | BQ25616, TPS61023, LTC2954, MAX17048 (bare ICs) | Charging with temperature cutoff, 5 V boost, power key with clean shutdown, battery level |
| Battery | 3.7 V LiPo, about 4000 mAh target | 105060-class cell, about 10 mm thick |
| Input | Silicone membrane pads + tactile switches | Direct GPIO, no expander |
| Case | Custom 3D print | First concept: two shells, 164.2 x 79.2 x 18.5 mm, held by four M2 screws (case/) |
Licensed under the CERN Open Hardware Licence version 2, Permissive (CERN-OHL-P v2). See LICENSE.


