keybytes README

The project's README from github.com/notaroomba/keybytes. As one markdown file: README.md.


Keybytes

A truly modular keyboard with rearrangeable keys, magnetic cases and Bluetooth!

KiCad CH592F RISC-V Onshape Blender

Key Features • Video Demo • Connecting Keybits • PCB • Credits • License

Keybytes v1
(v1)

Keybits snapping together
(v2 preview)

Keybit v2 exploded view
(v2 exploded view)

Video Demo

https://github.com/user-attachments/assets/19bec26d-6e01-4ee0-906e-7e69bace2f9c

Typing over USB:

https://github.com/user-attachments/assets/b6abd347-b68b-40f1-8e2d-c50744b8104e

Key Features

V1

V1 had a CH32V003 on every key with pogo pins on all 4 sides and an STM32WB55 Keyword split into two stacked PCBs. It lives in the v1 branch.

Connecting Keybits

The side contacts are the magnets themselves. Every side has 6 contact magnets on a 2.38mm grid with the A and B nets alternating, so two keybits connect no matter which way round they are and at any 0/25/50/75% stagger. Each side has a small FET bridge that connects whichever net is higher to VBUS and the other one to GND, so polarity doesn't matter either.

Flashing keybits: the 4 pogo pins on top of the keyword (GND, TIO, TCK, 3V3) line up with the pads on the bottom of every keybit, so a keybit gets flashed by pressing it onto the keyword. After that it updates over OTA.

The v2 firmware for the CH592F is still in progress. The v1 status LED codes are in the v1 branch.

PCB

Designed in KiCad! There are two main boards, the Keybit and the Keyword, plus passive flex spacers (1u, 0.75u and 0.5u) that pass power across gaps.

Keybit

A single key on a cross shaped 2 layer flex PCB with a CH592F in the middle, a WS2812 RGB LED and Mill-Max 3305 hot swap sockets for the switch. The 4 flaps fold up into the case and have FR4 stiffeners, and each one has 6 contact magnets and a FET bridge for power. The pads on the bottom are for flashing it from the keyword. The hall variant has a TMAG3001 3-axis hall sensor, so the same board can be a hall key, a knob (in the encoder case) or a joystick.

Schematic:

Keybit Schematic Keybit Hall Schematic

Layout:

Keybit Layout Keybit Hall Layout

3D View:

Keybit 3D View Keybit 3D View

Keyword

The main board that the keybits connect to. It is now one flex board with a CH592F for BLE and USB-C, a BQ25185 charger for a small LiPo and a USBLC6 for ESD protection. The 4 SMD pogo pins on the top (GND, TIO, TCK, 3V3) are for flashing the keybits.

Schematic:

Keyword Schematic

Layout:

Keyword Layout

3D View:

Keyword 3D View Keyword 3D View

Manufacturing

Everything is panelized for JLC flex PCBA with KiKit. The files are in production/panels: 8x3-panel is the full order (21 keybits, 2 hall keybits and a keyword), 4x5-panel is 20 plain keybits, 2x3-test-panel is a smaller test order and spacer-panel is the bare flex spacers. JLC flex can't do v-cuts or mouse bites so the boards are held by small tabs that get laser cut.

Credits

This project uses:

You may also like...

License

MIT


notaroomba.dev  ·  GitHub @NotARoomba  · 

keybytes (notaroomba/keybytes)

risc-v
Searching Database…

What is this?Keybytes is an open-source modular mechanical keyboard where every key is its own tiny replaceable PCB (a Keybit) with a built-in RISC-V microcontroller, connected via pogo pins and held together by magnetic cases, with Bluetooth and USB support.
How do I actually build one?Order the Keybit and Keyword PCBs (files are in the repo, designed in KiCad) from a fab service like JLCPCB, 3D-design or cut the magnetic cases from the Onshape STEP files in the cad folder, solder on the Cherry MX switches and pogo pins, then flash each keybit over its programming pads.
What tools and parts do I need to put this together?You need KiCad to view/modify the PCB files, Onshape for the case STEP files, STM32CubeMX for the main board firmware, a PCB fab/assembly service like JLCPCB, and basic soldering skills, since the Keybit uses a CH32V003 and the Keyword a STM32WB55RGV6.
Does rearranging the keys just work out of the box?Only if each keybit is turned the right way: pogo pins on the N/W sides carry power and I2C, and if a keybit is turned the wrong way it gets 3.3V on SCL and GND on SDA, so it stays dark. Keybits also must all run the same firmware version or they won't talk to each other.
How do keybits talk to the main board and each other?They communicate over I2C through pogo pins on all four sides, wired so power, SDA and SCL only line up when a keybit is correctly oriented against its neighbour or the main Keyword board.
What does the status LED on each keybit mean?White means idle, fast white blinks mean it joined the keyword, blue flashing means it's on the programming pins, green means it's flashed and up to date, and red solid or blinking patterns flag a stuck update or a wrongly-turned keybit.
How do I update the firmware on all the keybits?The Keyword board holds the keybit firmware; after updating the Keyword, you place each keybit on its programming pins in turn and wait for the green LED, since keybits on mismatched firmware versions won't communicate.
Has the creator built other open-hardware projects like this?Yes, the README links related projects by the same author: Ember, a Bluetooth-enabled reflow hotplate; Cyberboard, a Pico-sized STM32 dev board; Trace, a PCB ruler; and Linea, an EMR tablet.
Creator
notaroomba
Size
268.1 MB
Stars
466
Updated
CommitNov 13
Age
11mo
Commits · 90 Days