Controllers · DIY · prototype

OpenXen

Community-added guide.

A DIY Hall-effect hexagonal keyboard for microtonal playing, with five 56-key modules and xentool host software.

The project brings together a custom PCB, module firmware, switches, keycaps, an enclosure and host software. It follows Tobias's earlier freexen keyboard and experiments using Wooting and Exquis controllers. The overview below brings together the public project's documentation; follow the linked source files for the precise revision, procedures and subsequent corrections.

An original Maru illustration of five 56-key modules; use the author’s CAD for construction.

What you are building

Part of the instrumentDesign
LayoutFive 56-key hexagonal modules; 280 keys in the complete design
SwitchesWooting Lekker Tikken Hall-effect switches
Module processorAT32F405RCT7, one per module
SensingA Hall sensor per key, read through analog multiplexers
LightingPer-key reverse-mount RGB LEDs with an IS31FL3733 matrix driver
ConnectionUSB-C on each module; modules connect through a powered hub
Hostxentool, including an OpenXen backend, with SuperCollider instruments and other tools
Design filesKiCad hardware, generated layout data, firmware build scripts and host tooling

This is a developing DIY instrument. The project plan records the first board's bring-up and distinguishes that result from complete assembly and validation. A design file, compiler check or simulated test does not establish that every assembled unit works.

How the system fits together

Each module keeps its sensors and analog wiring on its own PCB. Its microcontroller scans the 56 keys and sends timestamped measurements over USB HID. xentool combines the modules, applies the layout and interprets key movement. Sound is produced by host instruments; the keyboard also receives lighting commands.

The host/firmware split matters when choosing software. The project's documented interface is a custom HID stream. Native USB-MIDI/MPE output is discussed in the project plan as a separate development idea; do not assume an arbitrary MIDI application can directly use the module.

The layout specification is the source for the key geometry, mounting holes, switch/sensor unit cells and key ordering. The layout guide explains which generators produce the KiCad placement and firmware board definition.

Before you order or assemble anything

Read the project plan, hardware notes and provenance together. Check the exact PCB revision and fabrication outputs you intend to use. The repository includes evolving engineering decisions; earlier notes can describe superseded parts or construction choices.

The documented workflow uses KiCad, Python and PlatformIO. Mechanical work includes fitting switches and keycaps, aligning plates and PCB mounting points, and providing USB access in the case. Flashing and recovery require access to the module's BOOT and RESET buttons or its debug connector.

Tobias reuses mechanical work from freexen. The case notes and project plan describe that relationship; a new builder should establish their own enclosure dimensions and clearances rather than assume the original case is included.

Parts and procurement

The table is a component-selection index from hardware/parts.json. It is not a quantity-complete shopping cart: use the fabrication bill of materials and placement files for the exact board revision. Supplier codes identify the recorded parts; stock and substitutions need checking before ordering.

Component roleRecorded partLCSC code
mcuAT32F405RCT7C47090415
sensorGH39FKSWC266230
muxSN74LV4051APWRC7793
ldo 3v3XC6206P332MR-GC5446
ldo 3v3aTLV75733PDBVRC485517
esdUSBLC6-2SC6C7519
usb cTYPE-C-31-M-12C165948
crystalX322512MSB4SIC9002
buttonTS-1187A-B-A-BC318884
polyfuse1206L200/16NRC22374899
jst (not fitted)SM04B-SRSS-TB(LF)(SN)C160404
led driverIS31FL3733-QFLS4-TRC506251
led rgbMHT151RGBCTC409782
c 100nCL05B104KO5NNNCC1525
c 4n70402B472K500NTC1538
c 1uCL10A105KB8NNNCC15849
c 2u2CL10A225KO8NNNCC23630
c 10uCL10A106KP8NNNCC19702
c 470nCL10B474KA8NNNCC1623
c 22uCL21A226MAQNNNEC45783
c 30p0603CG300J500NTC1658
r 2k0402WGF2001TCEC4109
r 5k10402WGF5101TCEC25905
r 10k0402WGF1002TCEC25744
r 12k0402WGF1202TCEC25752
r 20k0402WGF2002TCEC25765
r 100k0402WGF1003TCEC25741
r iset0402WGF2002TCEC25765
r 510402WGF510JTCEC25125
r 200402WGF220JTCEC25092

The build also needs the chosen switches, keycaps, module plates, mounting hardware, enclosure, USB cables and a powered hub appropriate to the finished instrument. The project plan explains why the LED design changed and why the digital and analog supplies are separated. Keep the documented current limits when selecting power and lighting settings.

For fabrication, inspect the KiCad project, fabrication tooling and generated bill of materials. Use the matching schematic, board, firmware configuration and mechanics as one revision; do not mix files from unrelated commits.

Assembly and first-board bring-up

Start with one module. Use the project's mechanical layout and board files to check switch orientation, Hall sensor position, LED mounting and plate clearances. The plan records existing 1.5 mm metal plates and the selected standoff arrangement; confirm those details against your own parts before assembly.

Keep the first module accessible for inspection and debugging. The author's bring-up sequence checks supply rails, USB enumeration, sensor movement, lighting and bootloader entry before full case integration. Repeat the relevant checks on each module before combining them.

Use the flashing guide for the exact DFU sequence and firmware path. It covers BOOT/RESET access, the Windows driver step, command-line tools and recovery over SWD. Follow that procedure for the board and firmware you actually have; a Maru directory entry does not install or qualify the firmware.

Firmware, key data and lighting

The firmware directory contains the build scripts and OpenXen changes around the libhmk base. Read the current project plan and build script alongside its README: short introductory files can lag later implementation work.

The analog-stream specification defines a versioned 144-byte report with sequence number, device timestamp, 56 sensor values and rotating calibration data. It explains how the host normalizes travel and derives movement speed using device time rather than USB arrival time.

The LED protocol defines colour frames, configuration and keepalive messages. Firmware controls brightness, highlighting, gamma correction and power budgeting. Its documented startup and timeout behavior turns LEDs off when a host session is absent. These are protocol descriptions from the project, not evidence of a Maru controller-profile implementation.

Host software and playing

xentool on Maru is the companion controller app; its source repository contains the host software. OpenXen's host overview links the stream decoder, lighting encoder, diagnostic tools, layout conversion, instruments and tutor.

The project contains SuperCollider instruments including piano-related integration, tanpura, mridangam and tabla tooling. Some sample kits and generated libraries are deliberately absent from the public repository. Their mention in a setup guide does not make those assets downloadable here.

The dynamics notes explain why the author uses key movement speed for attack velocity and keeps held-key depth separate. They also describe the piano settings and the author's measurements behind them. Those observations concern the documented setup, not every possible switch, calibration or synthesizer.

Running on Raspberry Pi

The Raspberry Pi guide describes a Pi 5/Patchbox OS setup with xentool, SuperCollider, JACK and user services. It covers module permissions, installation, layouts, startup checks, updates and diagnosing silence.

Read its prerequisites first. Parts of the documented setup use locally generated libraries or sample material that are not published in Git. The keyboard/host connection and those optional musical resources are separate requirements.

Assisted practice, scores and microtonal notation

OpenXen includes a tutor MCP server for assisted playing. The tutor guide covers the observations available to a connected client, practice tools, fingering, harmony, rhythm, musical libraries and score output. Its capabilities depend on the corresponding host services and available musical material.

Two companion guides explain microtonal notation and MusicXML and transcribing scores into the tutor's library. They distinguish symbolic notation files, optical recognition and manual transcription, including proofreading and differing sources. They are useful reading even when you are concentrating on the instrument rather than the tutor.

Testing, calibration and recovery

Use the testing guide for the software/build checks and their scope. The reference build log records the upstream firmware baseline.

On physical hardware, establish reliable USB communication, confirm that all keys respond, inspect rest/bottom calibration, check sensor noise and lost reports, then test lighting and sustained playing. The project plan identifies remaining validation and integration work. Its bring-up log is author-reported evidence for that board, not a universal compatibility badge.

Keep a recovery route before closing the case. The flashing guide explains how to re-enter the bootloader and identifies the SWD connection when ordinary USB access is unavailable.

Sources, revisions and licences

This guide brings together the project documentation. Follow the linked project documents for detailed procedures and updates.

The provenance file records the HE60 and libhmk bases and their GPL-3.0 licensing, plus other references with their own terms. Licence scope differs between components: check it before redistributing hardware files, firmware, keycap designs, photos or musical material. The source README is the project's starting point.

Complete public documentation index

Browse the entire source tree for machine-readable layouts, schematics, fabrication scripts, firmware, host tools and tests. Development handoffs and agent instructions in that tree are project documents, not instructions for visitors or Maru.

Firmware & apps for the OpenXen

View all 1
  • xentool

    mcleinn

    A computer-hosted microtonal controller app for OpenXen, Exquis and Wooting, with tuning, expressive MIDI, layouts and LED feedback.

    Controller appSource available

Listing policy