88 keys and 88 LEDs on one 500 mA port
Eighty-eight keys, eighty-eight RGB LEDs, two microcontrollers, two analogue thumbsticks, and one USB cable. That is the whole of Tiwaz, a split keyboard that sits on Crowd Supply as a coming-soon project and has been in its author's hands since the spring. The second half has no power supply of its own. It is fed through a 3.5 mm headphone jack.
The first number to hold on to is the port's. A USB 2.0 port gives a bus-powered device 500 mA, and one unit load of 100 mA before the host has configured it. The second number is the LED. The part on this board, an XL-1615RGBC-2812B, is a constant-current WS2812 clone that sinks 5 mA on each of its three channels, which the datasheet states as its preset and does not offer as a register. Eighty-eight of those at full white is 1,320 mA before any microcontroller draws anything.
The third number is the fuse. It holds 1.1 A. The fourth is the audio jack. It is rated 500 mA. Only two of those four numbers can be satisfied at once, and the design chooses which.
Tiwaz is the work of Timo Strube, who runs TS Consulting in Mössingen, Germany, and describes his day job as software and electronics prototype development. He published it as a fully open project: hardware under GPL-3.0, firmware under GPL-2.0 because it is built on QMK, with the case, the schematic, the bill of materials and a pair of compiled binaries all in the repository. The keyboard itself is not shipping. The Crowd Supply page says the campaign is launching soon, the repository still describes the QMK pull request as pending, and the VIAL port is waiting on that merge.
None of the electrical figures below were measured on a board here. They come from the Rev 2 schematic dated 2026-09-01, the BOM, the firmware source, and the datasheets of the eight or so parts that decide the outcome, and the article is marked accordingly.
A keyboard that is really two controllers
Each half carries 38 hot-swap sockets for MX-type switches and six tactile buttons, which the default keymap calls media keys and which are ordinary keys as far as the matrix is concerned. That is 44 keys a side and 88 across the pair. The matrix is five rows by nine columns, one diode per key, with the cathode on the row: QMK calls that column-to-row, and the pin list in the board definition matches the schematic pin for pin, rows on PC10, PC11, PC12, PD2 and PB3, columns on PB2, PB1, PB0, PC5, PC4, PA7, PA6, PA5 and PA4.
Forty-five positions is one more than the 44 keys, and the firmware leaves the fifth row's eighth column empty. That spare is not an accident of layout. A 5 by 9 grid is the smallest rectangle that covers the key field, and the alternative, a fifth row of eight columns plus a separate scan line, would have cost a pin to save nothing.
The controller is an STM32F401RET6 in LQFP-64, which is a Cortex-M4 at 84 MHz with 512 KB of flash, fed by a 25 MHz crystal. That is more controller than a keyboard needs, and the next section explains why the first choice did not survive.
Per half the mechanical package is 153 by 116 mm and about 300 g, with a gasket-mounted plate, damping material between plate and board and between board and case, and a case drawn for CNC as much as for printing: no sharp internal corners, simple chamfers outside, tight tolerances. Everything else is in the table.
| Item | Per half | Part |
|---|---|---|
| Key switches | 38 | hot-swap socket CPG151101S11-16, MX footprint |
| Auxiliary buttons | 6 | TS-1088-AR02016 tactile |
| Matrix | 5 rows by 9 columns, 44 used | 1N4148WS per key, column to row |
| Backlight | 44 | XL-1615RGBC-2812B, WS2812 protocol |
| Controller | 1 | STM32F401RET6, 84 MHz, 512 KB flash |
| Regulator | 1 | XC6206P332MR-G, 3.3 V, 200 mA |
| Host port | 1 | USB-C 16-pin receptacle, 5.1 kohm on both CC pins |
| Inter-half port | 1 | PJ-313D 3.5 mm jack, rated 500 mA at 30 V |
| Joystick | 1 | Alps RKJX21224001 or RKJXU1210006, on a ribbon |
One rail, two boards, and the parts that decide it
The power path is short and worth reading in order, because the order is the design. 
USB-C brings 5 V in. A resettable fuse sits first: 1.1 A hold, 2.2 A trip, 6 V, in an 0603 package. Then a ferrite bead of 600 ohm at 100 MHz. Then an LM66100 ideal diode, a 1.5 A part with 79 milliohm on-resistance at 5 V, whose output becomes the board's 5 V rail. From that rail: a 200 mA low-dropout regulator makes 3.3 V for the controller, a buffer level-shifts the LED data, the 44 LEDs hang off it directly, and pin 1 of the audio jack carries it to the other half.
The buffer is the part that is easy to leave out and cannot be left out. A WS2812 at 5 V has an input threshold of 0.7 times its supply, which is 3.5 V. A 3.3 V pin driving it directly is 200 mV short of guaranteed, and the failure mode is not a dead chain but a chain that works on one board and drops the first pixel on the next. The fix here is a single-gate buffer, an SN74LVC1G34 powered from 5 V, with 22 ohm in series ahead of its input and the LED chain on its output. The gate is not there for gain. It is there to move the logic threshold to the rail that the LEDs actually use.
The data itself comes out of PA9, which is channel 2 of timer 1, so the WS2812 waveform is generated by the timer and moved by DMA rather than bit-banged in a loop. That matters more than it looks: 44 LEDs at 24 bits each is 1,056 bits, and at the protocol's 800 kbit/s each bit is 1.25 microseconds, so a full refresh is 1.32 ms of wire time. The processor spends none of it. Both halves have their own data line and their own controller, so the two chains refresh in parallel, each in 1.32 ms.
| Rail | Consumers | Current, typical |
|---|---|---|
| 5 V, from USB | 88 LEDs at 0.35 mA idle | 31 mA with everything dark |
| 5 V, from USB | 88 LEDs at 5 mA per channel, full white | 1,320 mA |
| 5 V, from USB | LED buffer, quiescent | under 1 mA |
| 5 V, over the jack | the far half's 44 LEDs and its regulator | 530 mA at the firmware ceiling |
| 3.3 V, local | controller at 84 MHz | roughly 30 mA |
| 3.3 V, local | two potentiometers at 5 kohm | 1.3 mA |
The regulator's 200 mA is generous for a controller and two potentiometers, and it is worth noticing why it never has to feed the LEDs. If the LEDs had been put on 3.3 V, the regulator would have been asked for more than six times its rating at full white. They are on 5 V because that is where a WS2812 belongs, and the 3.3 V rail stays a logic rail.
Where the rail runs out
With the LED current fixed by the part rather than by a resistor, the whole budget collapses to one line. Eighty-eight LEDs times three channels times 5 mA is 1,320 mA, scaled by whatever brightness value the firmware writes, plus about 100 mA of housekeeping, which is 31 mA of LED quiescent current, two controllers at roughly 30 mA each, and the potentiometers.

At brightness 255 that is 1,420 mA. The port offers 500. Solving for the brightness that fits gives 77, which is 30 percent of the scale. At 77 each channel averages 1.5 mA and each LED 4.5 mA, which is dim but not useless, and it is the actual operating point of a keyboard plugged into a laptop.
| Brightness | Rail current | Share of the 500 mA port | Share of the 1.1 A fuse |
|---|---|---|---|
| 0 | 100 mA | 20 percent | 9 percent |
| 77 | 500 mA | 100 percent | 45 percent |
| 128 | 763 mA | 153 percent | 69 percent |
| 192, the firmware ceiling | 1,094 mA | 219 percent | 99 percent |
| 255 | 1,420 mA | 284 percent | 129 percent |
The firmware's own ceiling is 192, written as max_brightness in the board definition, and that is where the design gets interesting. 192 is 75 percent of the scale, and 1,320 mA scaled to 75 percent is 994 mA, which with housekeeping lands at 1,094 mA. The fuse holds at 1,100 mA. The gap between the ceiling the firmware permits and the current at which the fuse gives up is six milliamps, or half a percent.
Whether that is engineering or luck is not something the repository says. What can be said is what the number does: it makes the firmware ceiling the fuse's business and leaves the port's business to the user, who has no way to know that the brightest setting on a keyboard is asking for more than twice what the cable will give. The port is not a fuse. It does not trip. It sags, and the host may or may not cut the port, and the keyboard may or may not restart.
Three ratings that are not in the same order
Protection is supposed to be ordered, weakest link first, so that the cheap part gives up before the expensive one. Here the chain reads: a 500 mA port, a 500 mA jack, and a 1.1 A fuse between them.
| Element | Rating | What it protects | Where it sits |
|---|---|---|---|
| USB 2.0 port | 500 mA configured, 100 mA before | the host | upstream, and not under the design's control |
| PTC fuse | 1.1 A hold, 2.2 A trip, 1 W | the board trace and the jack | first part after the receptacle |
| 3.5 mm jack | 500 mA at 30 V | itself | the only path to the second half |
| LM66100 diode | 1.5 A continuous | nothing, it is a switch | after the fuse |
At the firmware's ceiling the far half draws 44 LEDs times 3 channels times 5 mA times 0.75, which is 497 mA, plus its own controller and regulator, about 33 mA. Call it 530 mA through a connector rated for 500. The margin is negative at the only brightness setting the firmware treats as normal.
The fuse cannot help with that, and it is worth being precise about why, because the repository's own description suggests otherwise. A PTC protects the thing it is in series with, up to its hold current, and this one holds at more than twice the connector's rating. It is there for the faults a small board actually sees: the inrush of 88 LEDs and their bulk capacitance at plug-in, a shorted ribbon, and the case this design explicitly anticipates, both halves plugged into two computers at once.
That last one is handled separately and elegantly. The LM66100's enable pin is not tied to ground, which is the usual way to turn an ideal diode on. It is tied to the device's own output, and the datasheet is explicit that the part disables itself when that pin rises above the input. So the moment the far half's supply, arriving over the jack, pushes the rail above this half's own VBUS, the FET opens by itself. No comparator, no firmware, no extra pin. Two of these, one per half, make the shared rail an auction in which the higher source always wins and neither computer ever sees the other's 5 V.
What the arrangement does not do is protect the port, and that is the asymmetry worth taking away. The fuse is sized against the board's own faults, the port is sized against the host's policy, and the connector in the middle was chosen for its shape rather than its current. A 3.5 mm jack is a good connector for this job, small, latching, three conductors, tolerant of being plugged in backwards in the dark. It is not a power connector, and the design asks it to be one.
There is one more consequence of putting 5 V on the tip. A TRS plug shorts its tip and ring to the sleeve as it slides in, so every insertion draws a brief short from the rail to ground. The fuse sits upstream of the jack, which is the only reason that is survivable rather than fatal.
Three wires, and one of them has to do both jobs
The cable between the halves carries ground, 5 V, and a single data line. Not a pair. QMK's serial transport normally runs a transmit and a receive wire, and this board defines one pin, PC6, which is USART6's transmit line. One wire means the link is half duplex: the same conductor carries the far half's key state towards the master and the master's LED state back out to the far half, one direction at a time.
Around that wire the schematic puts four small decisions. A 100 ohm resistor in series, which is what stops a 3.3 V edge from ringing on a cable whose impedance nobody specified. A 10 kohm pull-down on the near side, which defines the line when nothing is plugged in. A 10 microfarad capacitor across the far end's supply, which is the local reservoir for 44 LEDs switching. And a two-channel ESD array, the same USBLC6 part used on the USB data lines, on the data conductor and its supply reference.
The protocol on top is request and response, and the timing is visible in the source. The master asks the far half for its joystick position every 10 ms and applies that answer to both the analogue and the digital modes. The far half never pushes. Configuration, meaning which of the three joystick modes each side is in, travels the same wire the other way, once, 2 s after the master finishes booting. Until that exchange completes the master does nothing with either stick, which is why a keyboard that has just been plugged in has a two-second silence on its thumbsticks rather than a stuck one.
| Conductor | Carries | Series part | Note |
|---|---|---|---|
| tip, pin 1 | 5 V for the far half | PTC and ferrite upstream | the far half's whole supply |
| ring, pin 2 | one UART line, half duplex | 100 ohm, 10 kohm pull-down | key state one way, LED state back |
| sleeve, pin 3 | ground | none | return for both |
The thumbstick is a converter problem
Each joystick is two potentiometers and a push button. The Alps parts are 5 kohm end to end, which at 3.3 V draws 0.66 mA per axis, so two sticks cost the regulator 1.3 mA and nothing needs a driver. The wiper goes to an ADC pin through a 1 kohm resistor with 100 nF to ground, and that pair is the only analogue design in the project.
The filter's corner is not one number. With the resistor alone it is 1.59 kHz. With the potentiometer's own source impedance in series, which rises to a quarter of 5 kohm at mid-travel, it falls to 707 Hz at the centre detent, exactly where a thumbstick spends most of its time. To 10-bit settling that is roughly 0.7 to 1.6 ms, which is slower than the 10 ms poll and therefore invisible, and fast enough that nothing about the stick feels filtered.
The conversion is where the design gives away more than it needs to. QMK's analog driver on the STM32 family is configured for 10-bit resolution by default and shifts the 12-bit result down by two before returning it, which the driver source states plainly. Tiwaz then shifts again by two and keeps the result in 8 bits it reads back as signed, so the chain is 12 bits of hardware, 10 bits of driver, 8 bits of axis, and the bottom two bits of the converter are never used. One count of the axis is 12.9 mV, and one converter code is 3.2 mV, four codes to a count.

That is a choice, not an error, and the number that justifies it is the datasheet's slider noise, 300 mV peak to peak by the JIS method. Against a 3.3 V span that is 9.1 percent, or 23 counts of the 8-bit axis. The firmware's deadzone is 25 counts, which is 9.8 percent. The deadzone is drawn 7 percent wider than the worst-case noise of the part it is filtering.
| Quantity | Share of the 3.3 V rail | In millivolts |
|---|---|---|
| Full travel | 100 percent | 3,300 |
| Deadzone, 25 of 256 counts | 9.77 percent | 322 |
| Slider noise, datasheet maximum | 9.09 percent | 300 |
| One axis count | 0.39 percent | 12.9 |
| One converter code, 10 bit | 0.10 percent | 3.2 |
The two Alps parts are not interchangeable, and the difference decides which modes each can offer. The RKJX21224001 is a tilting stick, 23 degrees maximum in each direction, with a centre push that travels 0.35 mm and is rated 1 mA at 5 V. The RKJXU1210006, the part everyone recognises from the PSP, is a sliding stick with 2 mm of lever travel and, in the manufacturer's own specification, no centre push at all. It also has a supply status of discontinued.
| RKJX21224001 | RKJXU1210006 | |
|---|---|---|
| Type | tilting, self-centring | sliding, self-centring |
| Travel | 23 degrees per direction | 2.0 mm lever |
| Resistance | 5 kohm | 5 kohm |
| Centre push | yes, 0.35 mm | none |
| Rated power | 12.5 mW | 25 mW |
| Operating force | 7 mN·m | 0.75 N |
| Body | 13.7 by 14.6 by 7.8 mm | 18.6 by 24.3 by 5.2 mm |
| Life | not stated | 2,000,000 cycles |
| Supply status | standard | discontinued |
The half second that separates a click from a drag
A stick that moves a cursor needs a button, and the button has to do three things with one contact: click, drag, and right-click. The firmware resolves it with time. Pressing the stick down starts a timer and registers nothing. If the stick moves beyond the deadzone while the button is held, the left button goes down at that moment, which is a drag. If 500 ms passes with no movement, the right button goes down instead. If the button is released before either condition, a left click is emitted as a press and release pair.
That is the whole rule, and it is why the repository warns against remapping the mode key: the indicator colour is written into the same source that implements this timing, and the mode is persisted to the controller's own configuration area, so a remap does not break the colour, it breaks the state machine's entry point.
The cursor movement is not linear in deflection. The code takes the vector magnitude, subtracts the deadzone, squares the remainder against the square of the remaining range, and scales a maximum of 25 counts per report. The reports go out every 10 ms, so the ceiling is 2,500 counts per second, and half deflection gives a quarter of that, about 3.5 counts per report.
| Deflection | Counts per 10 ms report | Counts per second |
|---|---|---|
| just past the deadzone, 26 | 0 | 0 |
| 46 | 1 | 100 |
| 64, half travel | 3 | 350 |
| 90 | 10 | 1,000 |
| 127, full travel | 25 | 2,500 |
The square law produces a second threshold that the code does not name. Between 25 counts of deflection and about 45, the computed speed is below one count, the cast to an integer truncates it to zero, and the cursor does not move. So the effective deadzone of this stick is 45 counts, or 36 percent of full travel, half again what the constant says. It is the kind of thing that reads as a sticky stick and is really a rounding rule.
The controller that had to be replaced
The first prototypes ran on an RP2040. The author's own account of why that changed is short: on several prototypes the keyboard would not initialise, or not fast enough, when a computer booted and the user wanted to press a key to enter its firmware setup. Switching to the STM32F401 solved it.
That is a specific failure and it is worth explaining why a keyboard of all devices is exposed to it. A keyboard is the one peripheral whose most important user is not the operating system but the firmware that runs before it. A UEFI implementation scans its USB controllers for a boot device, and for a keyboard to be useful in that scan its HID interface has to exist by the time the scan looks. A device that appears 300 ms after power-on is a perfectly good keyboard in Windows and an invisible one at POST.
The specification's timing is not the problem, because the specification is generous. A host must debounce an attach for 100 ms before it resets the port, and it must leave the device a reset recovery interval afterwards. The problem is that the total window belongs to the platform vendor, not to the standard, and it is measured in a fraction of a second, not seconds. Anything a board does before it can answer a control request is deducted from that window: waiting for a flash interface to come up, waiting for a second phase-locked loop, waiting for a software stack to allocate its buffers.
Tiwaz then does one thing that makes the window easier, and it is a detail worth copying. It decides which half is the master with a strap, a single pin held to one rail on one half and the other on the other, read at startup. QMK's other approach is to have each half watch the supply and elect the master that way, which makes the master wait for a stable voltage before it brings USB up, and the timeout on that wait is measured in seconds. For a keyboard whose users press a key within a second of pressing the power button, a strap is the cheaper answer. The board also reports its bootloader as STM32 DFU with the instruction to hold the button on the back while plugging in, which is a recovery path that does not depend on the firmware running at all.
What transfers
Four things in this design are worth taking to another project, and they are all about where the limits are rather than about keyboards.
Size the LED budget from the part, not from the brightness slider. A constant-current WS2812 does not have a resistor to pick, so the only lever is the value written to it, and the arithmetic from 88 pixels to a USB port is one line. Do it before choosing the connector.
Order the protection chain deliberately. The fuse should give up before the connector does, and the connector should be rated above what the port can deliver. Here the fuse holds at 1.1 A, the jack is rated 500 mA, and the port gives 500 mA, so the weakest link in the chain is also the one carrying the other half's entire supply.
Use the ideal diode's own enable pin to do the arbitration. Tying it to the output turns reverse-current blocking into a property of the part rather than a job for firmware, and it costs nothing but a trace.
Put the level shift where the threshold is. A buffer powered from the LED rail is not a nicety when the LED's input threshold is above the driving rail; it is the difference between a chain that works and a chain that works on your bench.
What is not settled
Four things are open. The QMK pull request has not been merged, so building the firmware today means using the author's fork. The VIAL port exists as a branch and cannot be submitted until the QMK change lands. The Crowd Supply campaign has not launched, so there is no price, no ship date and no production documentation; the page promises manufacturing files before fulfilment starts. And the keycaps are a genuine problem: a backlit, ergonomic, all-1u layout has almost no off-the-shelf sets, and the parts list points at a custom manufacturer rather than a product.
The keyboard itself is documented well enough to build, which is the point of putting the schematic, the BOM with supplier part numbers, the gerbers, the step files for both halves and two compiled binaries in one repository. What the repository does not contain is any measurement of the thing this article spent its length on: no current draw at any brightness, no junction temperature, no data on how the fuse behaves under a real 88-LED load. The numbers above are arithmetic on published ratings. A board and a bench supply would turn them into facts.