
Keyboard
JoniBach/bachro-board-v1
One main keyboard ("parent") with magnetic dock connectors on its edges, and detachable macropads ("children") that either run standalone on their own USB-C or dock to the parent as passive matrix extensions.

One main keyboard ("parent") with magnetic dock connectors on its edges, and detachable macropads ("children") that either run standalone on their own USB-C or dock to the parent as passive matrix extensions.
Core is an open-source printed circuit board by JoniBach, from the JoniBach/bachro-board-v1 repository on GitHub. It is a 2-layer board of 225 × 140 mm with 141 parts on 82 nets, routed with 766 tracks and 56 vias.
It is built around the RP2040-ZERO. Its parts include 60 diodes, 60 switches, 4 connectors and 2 resistors. It belongs with the keyboards and input boards and the RP2040 boards of this library.
One main keyboard ("parent") with magnetic dock connectors on its edges,
and detachable macropads ("children") that either run standalone on their
own USB-C or dock to the parent as passive matrix extensions. Supersedes
the TRRS-linked two-piece split concept (keebach-narrow-v1) and
formalizes the tether/dock behavior bachro-pad-v1's firmware only
partially implements today.
Bootstrapped from https://editor.keyboard-tools.xyz/. Sub-projects, as currently laid out:
| Folder | Role | Layout |
|---|---|---|
ba-chore | Parent board's core key block | ~60-key QWERTY, standard rows |
ba-chropad | Child macropad | 4 rotary encoders + 6x4 (24-key) grid: nav cluster, NUM toggle, layer key |
ba-chroboard | Composite reference layout | ba-chore's block flanked by two mirrored 4-encoder clusters (left + right) — a preview of the parent with a macropad docked on each side, not a single fused PCB |
(Mapping inferred from each folder's keyboard/keyboard.json KLE export —
correct if any of these are mislabeled.)
Entities
ba-chore) — exactly one per system. N
DockConnectors along its edges (baseline: 2, LEFT/RIGHT, per the
ba-chroboard reference layout).ba-chropad) — a macropad. Connector footprints for
docking to the parent, with landscape rotation and chaining support
(see FR8/FR11).GND, VCC,
SDA, SCL. Power flows parent→child only; I2C is bidirectional.STANDALONE — own USB-C cable present. Full local operation: own
matrix → own USB HID, own OLED live off the local bus.DOCKED_SLAVE (children only) — no own cable, dock contact present.
The RP2040's connector-facing I2C interface (I2C1) runs in slave
mode, exposing raw matrix (+ encoder) state only. Zero HID/host
decisions. OLED stays live — it's on the local bus (I2C0),
unaffected by slave mode on the connector-facing bus.PARENT_MASTER (parent only, implicit whenever parent is cabled) —
not a separate mode from the parent's perspective; polling whatever's
docked is just part of normal operation.STANDALONE.
No cable + dock contact → DOCKED_SLAVE. No cable + no dock contact →
unpowered (children have no other power source; this is also how
dock-detect works for a child — booting at all is the detect event,
no dedicated sense pin needed).| # | Requirement |
|---|---|
| FR1 | Exactly one USB-C cable connected across the whole assembly at any time. |
| FR2 | Every board — parent and each child — is a fully independent standalone USB HID keyboard when it's the one cabled. |
| FR3 | Parent exposes multiple dock connectors (baseline 2: LEFT, RIGHT, per ba-chroboard). |
| FR4 | Parent supports 0..N children docked simultaneously, any combination of connectors populated. |
| FR5 | A docked child's matrix (+ encoders) is folded into the parent's matrix; parent holds sole HID/keycode authority for it. |
| FR6 | A docked child performs no independent HID or host communication — pure input relay. |
| FR7 | Every populated OLED runs locally off its own board's private I2C0 bus, live in both STANDALONE and DOCKED_SLAVE. |
| FR8 | Landscape mounting: a child's multiple connector footprints (however many edges are populated) are wired in parallel to the same 2 GPIO (I2C1 SDA/SCL) — only one is ever mated at a time in this mode, so it costs zero extra GPIO. Footprint pin order must be rotationally symmetric so mating lines up correctly regardless of which edge is used. Orientation is not self-discovered by the child — because all footprints share one electrical net, the child cannot tell which of its own footprints is actually mated. Instead, orientation is a property of which parent connector it's docked to: the parent already knows which of its own connectors answered (fixed by wiring, same as side identity), so it includes the expected mounting orientation in the same identity-write handshake (e.g. LEFT/RIGHT = portrait, a dedicated TOP connector = landscape). This is enforced mechanically, not electrically — a child's landscape-facing footprint must be keyed (magnet polarity / connector shape) so it can only physically mate with the parent port defined for that orientation, not interchangeably with the portrait ports. |
| FR9 | Standalone↔docked transitions are automatic on physical connect/disconnect, no user action beyond plugging. |
| FR10 | Fan-out: parent supports N directly-attached children via an I2C multiplexer (e.g. TCA9548A) — parent GPIO cost is a flat 2 pins (to the mux) regardless of N; each mux channel is electrically isolated so children can use a fixed, unstrapped I2C address. |
| FR11 | Chaining (scoped): a child can pass the dock bus through to one further child behind it (MAIN ← PAD ← PAD), target depth ~2-3 pads. This reuses the same shared-bus wiring as FR8 (in/out connector contacts on one pad are just two physical taps on the same internal I2C1 net) — still 2 GPIO per pad even with 2 connectors simultaneously mated. Each pad determines its chain position via the same identity-write handshake as FR-side-identity, extended to also carry "which physical edge is upstream" for keymap orientation. |
| # | Requirement |
|---|---|
| NFR1 | Connector is fixed at 4 conductors (GND/VCC/SDA/SCL) regardless of child complexity, connector count, landscape footprints, or chain position. |
| NFR2 | Magnetic pogo connector — physical alignment + retention, tool-free connect/disconnect. Part: HytePro M411P, 4-pin, 2.20mm pitch, gold-plated spring pins + NdFeB magnets (~600g pull), rated 5-24V/3A per pin (far beyond our 3.3V/I2C-logic needs). Sold and footprinted as a genuine male/female pair (Plug/Receptacle), not a symmetric part — see NFR3. KiCad symbol/footprint: already available via the marbastlib library (marbastlib-various.pretty, CON_HytePro_M411P_{Plug,Receptacle}_1x04-P2.20mm_Horizontal{,_FlushMount}), wired to this project's fp-lib-table. Use the _FlushMount variant — it's drawn to sit flush with the PCB edge, matching a dock connector's actual mounting need. Schematic side stays a plain generic 4-pin connector symbol (Connector:Conn_01x04_Pin); only the Footprint field points at the marbastlib part. ba-chropad's J2 is wired up this way (Plug, portrait connector) as the first instance. |
| NFR3 | Connector is keyed (mechanically or electrically) against reversed mating; if reversal is physically possible, it must be electrically safe. Gender-pairing constraint (newly surfaced): because NFR2's part is a true male/female pair, every mated joint needs one Plug + one Receptacle — this is a new naming/assignment problem on top of side/orientation identity (FR8), not solved by it. Working default: parent ports = Receptacle (fixed pads on the stationary hub), child's primary/portrait port = Plug (spring pins on the mobile board) — applied to ba-chropad's J2. Still open: a child that needs to mate with another child directly (the rotate-90 "mini split" scenario) can't use a uniform gender per board — it needs gender assigned per edge, not per board (e.g. every child's "left" edge is always Plug, "right" always Receptacle, so any two same-model children can dock left-to-right regardless of which physical unit they are). Needs a final convention once landscape/mini-split footprints are actually laid out. |
| NFR4 | I2C bus survives hot-plug/unplug of a child without locking up or requiring a parent power cycle (bus-timeout/recovery routine; consider a bus buffer like P82B96 on the connector line for signal integrity). |
| NFR5 | Dock/undock → firmware mode switch is near-instant — achieved via periodic I2C mux-channel polling (ACK/NACK), not a dedicated interrupt pin. |
| NFR6 | Dock-detect and I2C-relay logic is a shared module, not duplicated per board. |
| NFR7 | Reuses existing bachro-pad-v1 hardware (RP2040-Zero, MCP23017, OLED) for the child role with minimal rework — GP14/15 (currently SPLIT_TX/SPLIT_RX) repurpose directly to the connector-facing I2C1 bus without claiming new GPIO. |
| NFR8 | Each parent mux channel is electrically isolated from the others — a fault, chain, or address collision on one connector cannot affect another. |
| NFR9 | Chain depth beyond the validated practical limit (target ~3-5 hops, bounded by I2C bus capacitance and cumulative pogo contact resistance) requires active bus-repeater hardware and is explicitly out of scope for the initial design. |
| NFR10 | Idle/unmated connector footprints (landscape and chain-out contacts not currently in use) are exposed live contacts — enclosure/mechanical design should minimize accidental bridging. |
ba-chropad's 6x4 grid = 10 GPIO (4 rows + 6 cols, or 6+4 either
orientation).ba-chropad (6x4, no chain/landscape yet costed):
10 (matrix) + 2 (I2C0 local) + 2 (I2C1 connector) = 14 GPIO, fits a
Waveshare RP2040-Zero's 20 exposed pins with room to spare. Landscape
(FR8) and chaining (FR11) add 0 further GPIO under the shared-bus
wiring approach.ba-chore/ba-chropad/ba-chroboard role mapping above — inferred from KLE layout shape, not stated explicitly anywhere in the bootstrap.LEFT/RIGHT) per ba-chroboard's reference layout; confirm this is the target, not just a preview artifact of the generator.marbastlib footprints) — see NFR2. Keying is inherent to the part (magnet + housing shape prevent reversal); no separate D-shape needed.Receptacle/child-primary=Plug is a working default (see NFR3), but per-edge gender assignment for landscape ports and child-to-child mating isn't finalized.| Qty | Value | Footprint | References |
|---|---|---|---|
| 60 | D | ScottoKeebs_Components:Diode_DO-35 | D1, D2, D10, D11, D12, D13, D14, D15, D16, D17, D18, D19, D20, D21, D22, D23 +44 |
| 53 | SW_Push | Switch_Keyboard_Kailh:SW_Kailh_Choc_V1V2_1.00u | SW1, SW2, SW10, SW12, SW13, SW14, SW15, SW16, SW17, SW18, SW19, SW20, SW21, SW23, SW24, SW25 +37 |
| 13 | , , , , , , , , , , , , | ||
| 3 | SW_Push | Switch_Keyboard_Kailh:SW_Kailh_Choc_V1V2_1.25u | SW34, SW44, SW55 |
| 2 | 4.7k | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal | R1, R2 |
| 2 | SW_Push | Switch_Keyboard_Kailh:SW_Kailh_Choc_V1V2_1.50u | SW11, SW22 |
| 1 | Conn_01x04_Pin | Connector_PinSocket_2.54mm:PinSocket_1x04_P2.54mm_Horizontal | J5 |
| 1 | Conn_01x04_Pin | Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_Horizontal | J4 |
| 1 | Conn_01x05_Pin | Connector_PinHeader_2.54mm:PinHeader_1x05_P2.54mm_Horizontal | J2 |
| 1 | OLED_128x32 | ScottoKeebs_Components:OLED_128x32 | J1 |
| 1 | RP2040-Zero | ScottoKeebs_MCU:RP2040_Zero | RZ1 |
| 1 | SW_Push | Switch_Keyboard_Kailh:SW_Kailh_Choc_V1V2_1.75u | SW45 |
| 1 | SW_Push | Switch_Keyboard_Kailh:SW_Kailh_Choc_V1V2_6.25u | SW58 |
| 1 | SW_stab | Mounting_Keyboard_Stabilizer:Stabilizer_Cherry_MX_6.25u | ST58 |

JoniBach/bachro-board-v1
One main keyboard ("parent") with magnetic dock connectors on its edges, and detachable macropads ("children") that either run standalone on their own USB-C or dock to the parent as passive matrix extensions.

JoniBach/bachro-board-v1
One main keyboard ("parent") with magnetic dock connectors on its edges, and detachable macropads ("children") that either run standalone on their own USB-C or dock to the parent as passive matrix extensions.

JoniBach/bachro-board-v1
One main keyboard ("parent") with magnetic dock connectors on its edges, and detachable macropads ("children") that either run standalone on their own USB-C or dock to the parent as passive matrix extensions.

JoniBach/bachro-board-v1
One main keyboard ("parent") with magnetic dock connectors on its edges, and detachable macropads ("children") that either run standalone on their own USB-C or dock to the parent as passive matrix extensions.

JoniBach/bachro-board-v1
One main keyboard ("parent") with magnetic dock connectors on its edges, and detachable macropads ("children") that either run standalone on their own USB-C or dock to the parent as passive matrix extensions.



beekeeb/zerosprey42
Zerosprey42 Keyboard is a wired, beginner friendly, choc hotswap, MonoBlockSplit (Unibody), column-staggered, DIY mechanical keyboard.


ravinrabbid/DonCon2040
RP2040 based firmware and hardware for DIY Taiko no Tatsujin Drum Controllers

nmur/RP2040-TestPatternGenerator
A simple test pattern generator running on the RP2040 microcontroller

ChrisChrisLoLo/bunchiez40
A pocket keyboard that makes use of mouse switches to achieve a miniscule size

It measures 225 × 140 mm and has 2 copper layers, 1.6 mm thick.
141 parts, built around the RP2040-ZERO. 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.
From the JoniBach/bachro-board-v1 repository on GitHub, at the commit this page was made from: the board is bach-board/core.kicad_pcb and its schematic ba-chroboard/keyboard/keyboard-key-matrix.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Its repository states no licence, so its author keeps all rights: ask JoniBach before reusing the design.