Skip to the content
2 layers106.7 × 105.4 mmHydraBusBreakoutCard, the printed circuit board in 3D

HydraBusBreakoutCard

danstruthers/hydra-161

6502-based multi-tasking hardware and software project

Size
106.7 × 105.4 mm
Copper layers
2
Thickness
1.6 mm
Parts
15
Nets
59
Pads
128
Tracks, vias
193, 7
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
10 Sep 2024
Updated
7 Nov 2026

Overview

HydraBusBreakoutCard is an open-source printed circuit board by danstruthers, from the danstruthers/hydra-16 repository on GitHub. It is a 2-layer board of 106.7 × 105.4 mm with 15 parts on 59 nets, routed with 193 tracks and 7 vias.

README

README.md

Hydra 16

A multitasking 65C02 computer and its operating system, HydraOS.

The Hydra-16's hardware gives each of 16 tasks its own 32K of RAM, zero page and stack included, with its own RAM and ROM bank selections, so a task switch is one register write. HydraOS runs on it, Plan 9's way:

  • One kernel in the BIOS ROM: a preemptive scheduler, one interrupt path, notes, memory and banks, and a jump table made from a specification. Everything else is a module of the paged ROM, run in place in a task of its own.
  • A base to build on: the kernel, a serial console driver, the kernel's devices and Woz's monitor are the base (base/), which HydraOS is built on and which boots on its own: write an OS of your own on it.
  • Everything a file: devices are file servers (the console's windows, the disks and HydraFS, sound, GPIO and I2C, the clock, the Vera X, and /pc, a folder on the PC over the serial line), and each task has a namespace of its own, built by binds and mounts.
  • Shells and languages: rc, Plan 9's shell, and the core tools; HyForth (Forth 2012), the login shell; hylang (danlang, a lisp); HyBASIC (QuickBASIC's kind, every number exact); SDKs for C (cc65) and assembly, and as, an assembler on the Hydra itself.
  • Tools: a screen editor (edit), a debugger (db), a song player that plays ZSM songs and compiles scores as it plays.

The code is built with cc65 (https://cc65.github.io/), and the board is designed in KiCad 9 (https://www.kicad.org).

Quick start

text
cd base
node build.js                      the base alone: the kernel, ser, kdev, the monitor (bin/bios_*.bin, bin/prom0.bin)
node sim/run.js -i                 its monitor in your terminal (Ctrl-A x quits)

cd ../reborn
node build.js                      build HydraOS (needs Node.js and cc65): bin/bios_*.bin, bin/prom0.bin ...
node sim/run.js -i                 use the Hydra in your terminal, in the emulator (Ctrl-A x quits)
node sim/web.js                    the emulator in a browser: one file, bin/hydra-16.html, to open (in Git: no
                                   Node.js needed to use it)
node sim/test.js                   the regression tests

The ROM images are in Git (reborn/bin/) and on each GitHub release, so the chips can be programmed without a toolchain.

Documentation

The Hydra-16 book is everything, in order: what the machine is, the board and how to build it (the parts, the layout, the quirks), the kernel and its calls, the drivers, the shell, the languages, the tools, the emulator, and the programming guide. It's also one PDF, to print.

Chapter
1. The Hydra-16 at a glanceThe ideas, the software in layers, and a first hour in the emulator
2. The hardwareThe architecture, the devices, the parts, building it, the layout, the quirks, the cards
3. The baseThe boot, the kernel, files and namespaces, the system calls, the monitor
4. The driversThe serial console, the kernel's devices, storage, sound, GPIO, video
5. The shell: rcPlan 9's shell
6. The languagesHyForth, hylang, HyBASIC, and the numbers they share
7. The toolsThe core tools, the editors, the debugger, the assembler and disassembler
8. The emulatorThe emulator, the build, the tests, the PC tools
9. The programming guideAssembly, C, servers and drivers, libraries, your own OS, every system call

How it was designed, and where it stands: the plan and the design notes.

Repository

FolderWhat
base/The base: the kernel (the BIOS ROM), the system calls' specification, the console driver ser, the kernel's devices kdev, the monitor wozmon, the assembly SDK's core, the board's emulator and the tests' runner
reborn/HydraOS, on the base: its modules, the SDKs, the ROM disk, the SD card's image, its tests
docs/The book (its chapters, docs/build: the tools that make its parts list, layout drawings, call reference and PDF), and the design notes (docs/design)
board/KiCad schematics and PCBs: the main board, the memory daughter card, the bus breakout card, the Vera X's glue board
old/The old system (the 1.8C line: os_rom/, its programs, emulator, build and documents), frozen at HydraOS 1.0; node old/build.js test still builds and tests it

Parts

15
QtyValueFootprintReferences
3MountingHole_3.2mm_M3MountingHole:MountingHole_3.2mm_M3H1, H3, H4
1Address BusConnector_PinHeader_2.54mm:PinHeader_1x16_P2.54mm_VerticalJ3
1AudioConnector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJ9
1Bus ControlConnector_PinHeader_2.54mm:PinHeader_1x06_P2.54mm_VerticalJ7
1Bus_Hydra_8bitConnector_PCBEdge:BUS_Hydra_8BitJ1
1ClocksConnector_PinHeader_2.54mm:PinHeader_1x05_P2.54mm_VerticalJ6
1Data BusConnector_PinHeader_2.54mm:PinHeader_1x08_P2.54mm_VerticalJ2
1I2CConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJ10
1Interrupts & I/OConnector_PinHeader_2.54mm:PinHeader_1x06_P2.54mm_VerticalJ5
1MountingHole_3.2mm_M3_ISO7380_Pad_TopBottomMountingHole:MountingHole_3.2mm_M3_ISO7380_Pad_TopBottomH2
1PowerConnector_PinHeader_2.54mm:PinHeader_1x05_P2.54mm_VerticalJ11
1ResetConnector_PinHeader_2.54mm:PinHeader_1x01_P2.54mm_VerticalJ8
1SPIConnector_PinHeader_2.54mm:PinHeader_1x08_P2.54mm_VerticalJ4

More from danstruthers/hydra-16

3
  • 6 layers304.8 × 243.8 mmHydra-16, the printed circuit board in 3D

    Hydra-16

    danstruthers/hydra-16

    6502-based multi-tasking hardware and software project

    210 parts1
  • 2 layers87 × 67 mmMemDaughterCard, the printed circuit board in 3D

    MemDaughterCard

    danstruthers/hydra-16

    6502-based multi-tasking hardware and software project

    13 parts1

Similar boards

  • 2 layers19 × 76 mmSub, the printed circuit board in 3D

    Sub

    google/mozc-devices

    Circuit diagrams and firmware source code for Gboard DIY keyboards

    15 parts3kApache-2.0
  • 2 layers26.7 × 62.2 mmDeniseadapter, the printed circuit board in 3D

    Deniseadapter

    hoglet67/RGBtoHDMI

    Bare-metal Raspberry Pi project that provides pixel-perfect sampling of Retro Computer RGB/YUV video and conversion to HDMI

    15 parts1kGPL-3.0
  • 2 layers100 × 44 mmVideoslot, the printed circuit board in 3D

    Videoslot

    mntmn/amiga2000-gfxcard

    MNT VA2000, an Open Source Amiga 2/3/4000 Graphics Card (Zorro II/III), written in Verilog

    15 parts1k
  • 2 layers91 × 51 mmBusinessCard, the printed circuit board in 3D

    BusinessCard

    hackclub/OnBoard

    💡 Join 1,000 teenagers and make your first PCB with a $100 grant!

    15 parts915
  • 2 layers24.3 × 57.9 mmFlosspods pro flex, the printed circuit board in 3D

    Flosspods pro flex

    kenp-io/not-for-airpods-repairs

    The content of this repository is licensed under the WTFPL License. Please have a close look at the terms before using this material.

    15 parts609WTFPL
  • 2 layers20.3 × 15.2 mmL0 Load, the printed circuit board in 3D

    L0 Load

    Luos-io/luos_engine

    Open-source and real-time orchestrator for cyber-physical-systems, to easily design, test and deploy embedded applications and digital twins.

    15 parts546MIT
  • 2 layers68 × 50 mmEleLab v2 PowerFeed, the printed circuit board in 3D

    EleLab v2 PowerFeed

    Chrismettal/EleLab_v2

    Cheap DIY lab system for hobbyists and the tinkering folk

    15 parts531GPL-3.0
  • 2 layers50.8 × 35.6 mmInterface, the printed circuit board in 3D

    Interface

    harbaum/I2C-Tiny-USB

    Cheap and simple I²C to USB interface

    15 parts454

Questions

How big is the HydraBusBreakoutCard PCB?

It measures 106.7 × 105.4 mm and has 2 copper layers, 1.6 mm thick.

What parts does the HydraBusBreakoutCard use?

15 parts. 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 HydraBusBreakoutCard KiCad files?

From the danstruthers/hydra-16 repository on GitHub, at the commit this page was made from: the board is board/HydraBusBreakoutCard/HydraBusBreakoutCard.kicad_pcb and its schematic board/AddressDecode.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the HydraBusBreakoutCard design in my own project?

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