README.md
# Wireless Split Keyboard
A custom wireless mechanical keyboard with **58 low-profile keys, two rotary encoders and a memory LCD on each half**. The split layout lets you position the two halves independently, and optional printed tenting stands raise their inner edges.
Each half is a complete custom PCB: a bare **Nordic nRF52840** runs the keyboard firmware and Bluetooth radio, with charging, power regulation, an antenna and display circuitry built into the board. The project is written in **tscircuit with TypeScript** and uses **ZMK firmware**.
**Status: routed prototype.** PCB routing, CAD fit checks and firmware compilation are complete; fabrication review, physical assembly and hardware testing remain pending.

[Open on tscircuit](https://tscircuit.com/rushabhcodes/wireless-split-keyboard) · [Schematics PDF](https://github.com/rushabhcodes/wireless-split-keyboard/blob/main/outputs/wireless-split-keyboard-schematics.pdf) · [Parts to buy](#parts-to-buy-separately) · [Assembly guide](https://github.com/rushabhcodes/wireless-split-keyboard/blob/main/docs/assembly.md) · [Validation record](https://github.com/rushabhcodes/wireless-split-keyboard/blob/main/docs/validation.md)
## Features at a glance
| Feature | This design |
|---|---|
| Layout | Sofle Choc Wireless outer shape and staggered key positions; 29 mechanical keys per half |
| Key switches | 58 Kailh Choc V1 switches in hot-swap sockets |
| Additional inputs | Two encoder push buttons, giving 60 matrix inputs in total |
| Rotary controls | One Bourns encoder per half; default left volume control and right mouse-wheel scrolling |
| Wireless connection | Bluetooth Low Energy between halves and from the left half to the computer |
| USB connection | USB-C charging on both halves; USB keyboard output on the left in the supplied firmware |
| Displays | Two raw Sharp LS011B7DH03 monochrome memory LCDs, 160 × 68 pixels each |
| Battery power | One protected single-cell LiPo per half; enclosure reference is 500 mAh per cell |
| Firmware | ZMK with two keymap layers, five Bluetooth host profiles, media controls and battery monitoring configured |
| Enclosure | Printable base, key plate, supported display pocket, battery bay and removable spacers |
| Tenting | Optional matching left/right cradles at 5°, 10° or 15° |
| PCB | Two independently routed, four-layer, nominal 1.6 mm boards using 1+2+1 HDI construction |
| Editable design | Component positions and mechanical parameters in TypeScript; fixed outline, key centers and mounting points |
These are the implemented design and firmware provisions. Wireless range, battery runtime and physical feel have not been measured on assembled hardware.
## The main chip: Nordic nRF52840
There is **one nRF52840-QIAA-R on each half**. This is a bare system-on-chip (SoC), soldered directly to the custom PCB. It combines the processor and Bluetooth radio in one IC.
| nRF52840 capability | How the keyboard uses it |
|---|---|
| 64 MHz, 32-bit Arm Cortex-M4 with hardware floating-point support | Runs ZMK, scans the keys and handles encoder input |
| 1 MB flash memory | Stores the firmware and persistent settings |
| 256 KB RAM | Working memory for the keyboard, Bluetooth stack and display interface |
| Integrated 2.4 GHz Bluetooth Low Energy radio | Connects the halves and sends keyboard input to the host |
| USB 2.0 full-speed device interface | Provides USB keyboard output on the left half |
| GPIO, SPI and ADC peripherals | Connect the key matrix, encoders, memory LCD and battery-voltage measurement |
The processor's specifications are documented by [Nordic Semiconductor](https://www.nordicsemi.com/Products/nRF52840). The board supplies its own crystals, decoupling components, RF matching network and antenna. It is designed entirely from individual components, without a premade controller or display board.
## Other important components
The same main electronics are fitted to both halves; their firmware roles differ.
| Component | Part | Purpose in this keyboard |
|---|---|---|
| Battery charger and power path | [Texas Instruments BQ25185DLHR](https://www.ti.com/product/BQ25185) | Charges the LiPo and supplies the system from USB or battery. Configured for approximately **50 mA charging**, a **4.2 V** cell limit and **100 mA** input limit. |
| Voltage regulator | [Texas Instruments TPS63802DLAR](https://www.ti.com/product/TPS63802) | A buck-boost converter: it can reduce or increase the input voltage to maintain the shared **2.989 V nominal** keyboard rail. |
| Bluetooth antenna | Johanson **2450AT18A0100002E** | A PCB-mounted ceramic antenna connected to the nRF52840 radio through matching and tuning components. |
| Display | Sharp **LS011B7DH03** | A reflective monochrome memory LCD connected directly through its ten-contact flex cable and a Hirose FPC receptacle. |
| Rotary encoder | Bourns **PEC11R-4215K-S0012** | Rotation plus push-button input; 24 detents per turn and a 15 mm knurled shaft. |
| Hot-swap sockets | Kailh **CPG135001S30** | Accept compatible Choc V1 switches so the switches can be replaced without soldering them to the PCB. |
| USB-C data protection | TI **TPD2EUSB30ADRTR** | Protects the USB data lines against electrostatic discharge. |
| Power switch | **PCM12SMTR** | Controls the regulator enable signal through an accessible slide lever. |
| Battery temperature sensing | External **10 kΩ NTC, B25/85 = 3435 K** | Monitors the pouch temperature through the charger; one sensor is required per half. |
The regulated rail is approximately 3 V to suit the raw LCD supply requirements. Detailed pin assignments, rail calculations and RF constraints are in [the pinout](https://github.com/rushabhcodes/wireless-split-keyboard/blob/main/docs/pinout.md), [calculations](https://github.com/rushabhcodes/wireless-split-keyboard/blob/main/outputs/calculations.json) and [validation record](https://github.com/rushabhcodes/wireless-split-keyboard/blob/main/docs/validation.md).
## How the wireless split works
The **left half is the central keyboard**. It receives input from the right half and sends the combined keyboard and encoder events to the computer. The **right half is the peripheral** and communicates with the left over Bluetooth Low Energy.
```mermaid
flowchart LR
R[Right half: nRF52840] <-->|Bluetooth LE split link| L[Left half: nRF52840]
L <-->|Bluetooth LE keyboard connection| H[Computer / host]
L -. Optional USB data connection .-> H
```
Each half has its own battery and USB-C charging port. USB keyboard output is enabled on the left; the right USB-C port is used for charging in the supplied firmware. The halves communicate wirelessly in either host connection mode, so a TRRS cable is not needed.
ZMK provides the [Bluetooth split connection and host profiles](https://zmk.dev/docs/features/bluetooth). The supplied keymap exposes five host-profile selections on the function layer.
## Firmware and default controls
| Input | Configured behavior |
|---|---|
| Main keys | QWERTY layout with a number row and thumb modifiers |
| Thumb layer keys | Hold to access the function layer |
| Function layer | Bluetooth profile selection, bond clearing, arrow keys and function-key bindings |
| Left encoder rotation | Volume up / down |
| Left encoder press | Mute |
| Right encoder rotation | Mouse-wheel scroll up / down |
| Right encoder press | Play / pause |
| Display widgets | Battery percentage and connection status; layer status on the central half |
The keymap is editable in [custom_sofle.keymap](https://github.com/rushabhcodes/wireless-split-keyboard/blob/main/firmware/config/custom_sofle.keymap). Encoder direction and detent behavior still need confirmation on hardware.
Native ZMK targets are provided for `custom_sofle_left/nrf52840` and `custom_sofle_right/nrf52840`; both have been compile-tested. Initial programming uses the **SWD pads and a 3 V-compatible debug probe**. The included configuration does not provide a USB/UF2 bootloader. [Firmware setup and flashing guidance](https://github.com/rushabhcodes/wireless-split-keyboard/blob/main/firmware/README.md).
## Power and charging
- Fit one **protected 1S LiPo** to each half. The enclosure uses the 29 × 36 × 4.75 mm envelope of the Adafruit 1578 500 mAh reference cell.
- Charge each half independently from a compliant 5 V USB supply. The current configuration charges at approximately 50 mA per cell.
- Attach the required external NTC to each pouch and connect it to the TS/GND pads. Charging is inhibited when the sensor is absent.
- The slide switch controls the regulated keyboard rail; the charging path can remain active while the keyboard is switched off.
- Battery voltage is measured through a switched divider for ZMK battery reporting.
**Battery runtime is not yet characterized.** Deep sleep is disabled while LCD power-down/wake sequencing is completed, and USB suspend-current handling still needs implementation and testing. The project does not claim a measured number of days between charges.
## Enclosure, controls and tenting
The printable enclosure includes a base, key plate, display support ledge, battery bay with retention-strap slots, and five spacers per half. USB-C and the power switch are bottom-mounted with side access pockets; reset has a service opening in the base. The top-mounted raw-display FPC receptacle sits beneath the panel's shaped flex.
Each encoder uses a **14 × 10 mm printed knob** with a deep shaft cavity and radial grub screw. The keys use sourced **KLP Lamé Choc-size keycap CAD**, including normal, homing and thumb profiles. [Model sources and licenses](https://github.com/rushabhcodes/wireless-split-keyboard/blob/main/docs/models.md).

Optional lift-out cradles raise the inner edges of the halves. Choose one matching left/right pair at **5°, 10° or 15°**, or use the cases flat. The cradles follow the case contour and leave the USB and power-switch access paths clear. [Dimensions, printing settings and assembly](https://github.com/rushabhcodes/wireless-split-keyboard/blob/main/docs/enclosure.md).

The battery view shows the cell inside its bay with the upper assembly hidden. CAD checks cover switch/socket alignment, keycap travel, case and screw clearance, the panel/flex, USB and power access, and tenting. The battery and encoder models remain nominal references; printing tolerances, FPC engagement, cap stem fit and stand stability need a physical prototype.
## Open and build on tscircuit
[**Open Wireless Split Keyboard on tscircuit**](https://tscircuit.com/rushabhcodes/wireless-split-keyboard)
1. Choose `left.circuit.tsx` or `right.circuit.tsx`.
2. Open **3D** to inspect the assembled PCB, enclosure, keys, screen, knob and battery model.
3. Use the PCB and schematic views to inspect the electronics, or the **Builds** page to run a hosted rebuild.
The server installs the pinned project dependencies and builds the TypeScript source, native enclosure geometry, PCB views, seven A4 schematic sheets per half and high-resolution 3D previews. Publishing source with `tsci push` queues this server build. A local `dist` upload and Python installation are not required for the hosted build.
## Parts to buy separately
Quantities are for **one complete two-half keyboard**. Agree on the PCB assembly scope first, then order the manual parts; sockets and encoders are conditional purchases if the assembler already fits them. The [assembly checklist](https://github.com/rushabhcodes/wireless-split-keyboard/blob/main/outputs/assembly-parts-DRAFT.csv) and PCB BOMs are drafts: exact remaining MPNs, stock, polarity and fit still need review.
| Item | Total | Required selection / supplied by |
|---|---:|---|
| Custom PCBs and PCB assembly | 1 left + 1 right | Four-layer **1+2+1 HDI**, filled/capped via-in-pad. Have the fabricator review the [left](https://github.com/rushabhcodes/wireless-split-keyboard/blob/main/outputs/left/BOM-DRAFT.csv) and [right](https://github.com/rushabhcodes/wireless-split-keyboard/blob/main/outputs/right/BOM-DRAFT.csv) PCB BOMs, including **all** SoCs, crystals, RF parts/antenna, passives, charger, regulator, FETs, USB-C, slide/reset switches, FPC receptacles and JST battery receptacles. BOM entries marked UNSOURCED still require exact rated MPNs. |
| Choc hot-swap sockets | 58, if omitted by assembler | Kailh CPG135001S30 / JLCPCB C5333465. Already in PCB BOM; do not order a second set if fitted. |
| Low-profile key switches | 58 | Kailh **Choc V1**, e.g. CPG135001D02. Hand-plug into sockets after assembly; Choc V2/MX parts do not fit. |
| Keycaps | 58 × 1u | [KLP Lamé](https://github.com/braindefender/KLP-Lame-Keycaps), **Choc stem + Choc size**, approximately 17.5 × 16.5 mm. The assembly uses the actual normal/homing/thumb CAD meshes; buy a set or have the original high-resolution models printed. Test stem tolerances before a full print run. |
| Rotary encoders | 2, if omitted by assembler | **Bourns PEC11R-4215K-S0012 / C18164806**, 15 mm knurled 6 mm shaft, push switch, 24 detents / 12 pulses. Already in PCB BOM. |
| Encoder knobs | 2 prints | [14 × 10 mm STL](https://github.com/rushabhcodes/wireless-split-keyboard/blob/main/outputs/enclosure/encoder-knob-14x10.stl), 6.2 mm bore and radial M3 pilot. A purchased knob must clear the neck at full push and have a shaft cavity at least 8.3 mm deep; do not substitute a tall closed cap blindly. |
| Knob grub screws | 2 | M3 × 4 mm; tap the printed pilot and use the matching hex key. |
| Raw displays | 2 | **Sharp LS011B7DH03**, with its integral ten-contact FPC; glass only, no display board. Confirm pin 1/contact side and engagement with the top-side Hirose receptacle before assembly. |
| Protected LiPo cells | 2 | 1S **3.7 V / 4.2 V**, 500 mAh reference: [Adafruit 1578](https://www.adafruit.com/product/1578), **29 × 36 × 4.75 mm**, JST-PH 2-pin lead. Check connector polarity against VBAT/GND on each PCB. The bay is sized for this envelope, including protection; larger cells need new CAD. Nominal charge current is about 50 mA. |
| Cell temperature sensors | 2 | **10 kΩ NTC, B25/85 = 3435 K**, one insulated sensor attached to each pouch. Add two insulated wire pairs to the TS/GND pads; direct soldering avoids a tall header. Exact NTC MPN is still to be selected. |
| Battery leads, if the chosen cells lack them | 2 sets, conditional | JST PHR-2 mating housings + four SPH contacts or precrimped leads. No extra leads are needed for the reference cell's included harness. |
| Printed enclosures | 2 bases + 2 plates + 10 spacers | [Enclosure STLs](https://github.com/rushabhcodes/wireless-split-keyboard/blob/main/outputs/enclosure), PLA or a print service. Five spacers per half are separate parts. |
| Case screws | 10 | M2 × 12 mm small button-head screws, head ≤3.5 mm diameter and ≤1.3 mm high, e.g. [SSB-M2-12-A2](https://www.accu.co.uk/socket-button-screws/8086-SSB-M2-12-A2), into trial-tapped 1.6 mm base pilots. No inserts or nuts are required. |
| Battery retention / insulation | 2 strap sets + tape | Thin nonconductive straps through the floor slots, Kapton/electrical insulation for solder joints and NTCs. Keep the pouch clear of sharp leads; never drill it. |
| Display adhesive | Small sheet/strip | **0.2 mm** nonconductive double-sided tape on the support ledge, outside the active area and flex tail. |
| Anti-slip feet | 8 | Four thin rubber feet per flat case. |
| Optional tenting | 1 left + 1 right cradle | Print **one matching angle pair**, 5°, **10°** or 15°, from [outputs/enclosure](https://github.com/rushabhcodes/wireless-split-keyboard/blob/main/outputs/enclosure). Add approximately 1 m of 1 mm-thick, 4–6 mm-wide adhesive rubber strip beneath the frames. No hinge, magnets or extra fasteners are needed. |
| USB cables / supply | 1 data cable; 2 for simultaneous charging | USB-C plugs with an overmould within the checked **11 × 7 mm** corridor. Use a compliant 5 V USB source; each half charges separately. |
| Programming / assembly tools | 1 shared set | 3 V-compatible SWD probe (e.g. J-Link/CMSIS-DAP), pogo leads for SWDIO/SWCLK/RESET/VCC-sense/GND, multimeter, current-limited supply, soldering tools/flux if hand-fitting parts, screwdriver, M2 and M3 taps, 1.3 mm screw hex key and knob hex key. A PC with Bluetooth is needed for wireless use. |
The PCB BOM covers electrical components. Hand-fitted switches, keycaps, raw panels, cells, printed parts and case hardware are listed separately above; the extra assembly CAD models do not add duplicate PCBA purchases.
## Design files and downloads
| Resource | Files |
|---|---|
| tscircuit entries | [Left PCB and assembly](https://github.com/rushabhcodes/wireless-split-keyboard/blob/main/left.circuit.tsx) · [Right PCB and assembly](https://github.com/rushabhcodes/wireless-split-keyboard/blob/main/right.circuit.tsx) · [Standalone tenting cradle](https://github.com/rushabhcodes/wireless-split-keyboard/blob/main/stand.circuit.tsx) |
| PCB previews | [Left](https://github.com/rushabhcodes/wireless-split-keyboard/blob/main/outputs/left/pcb-bottom.svg) · [Right](https://github.com/rushabhcodes/wireless-split-keyboard/blob/main/outputs/right/pcb-bottom.svg) |
| Schematics | [Combined vector PDF](https://github.com/rushabhcodes/wireless-split-keyboard/blob/main/outputs/wireless-split-keyboard-schematics.pdf) · [Left sheets](https://github.com/rushabhcodes/wireless-split-keyboard/blob/main/outputs/left/schematics) · [Right sheets](https://github.com/rushabhcodes/wireless-split-keyboard/blob/main/outputs/right/schematics) |
| Assembled 3D models | [Left GLB](https://github.com/rushabhcodes/wireless-split-keyboard/blob/main/outputs/left/keyboard-placement.glb) · [Right GLB](https://github.com/rushabhcodes/wireless-split-keyboard/blob/main/outputs/right/keyboard-placement.glb) |
| Tenting models | [Left 10° GLB](https://github.com/rushabhcodes/wireless-split-keyboard/blob/main/outputs/left/tenting-10deg.glb) · [Right 10° GLB](https://github.com/rushabhcodes/wireless-split-keyboard/blob/main/outputs/right/tenting-10deg.glb) |
| Printable parts | [Enclosure, spacers, knobs and cradle STLs](https://github.com/rushabhcodes/wireless-split-keyboard/blob/main/outputs/enclosure) |
| PCB assembly drafts | [Left BOM](https://github.com/rushabhcodes/wireless-split-keyboard/blob/main/outputs/left/BOM-DRAFT.csv) · [Right BOM](https://github.com/rushabhcodes/wireless-split-keyboard/blob/main/outputs/right/BOM-DRAFT.csv) · [Manual parts](https://github.com/rushabhcodes/wireless-split-keyboard/blob/main/outputs/assembly-parts-DRAFT.csv) |
| Fabrication review | [Left Gerbers](https://github.com/rushabhcodes/wireless-split-keyboard/blob/main/outputs/left/gerbers.zip) · [Right Gerbers](https://github.com/rushabhcodes/wireless-split-keyboard/blob/main/outputs/right/gerbers.zip) |
| Editable placement | [Component coordinates](https://github.com/rushabhcodes/wireless-split-keyboard/blob/main/src/componentPlacement.ts) · [Mechanical dimensions](https://github.com/rushabhcodes/wireless-split-keyboard/blob/main/src/mechanicalModels.ts) · [GPIO allocation](https://github.com/rushabhcodes/wireless-split-keyboard/blob/main/src/pinout.ts) |
| Component sourcing | [JLCPCB import notes](https://github.com/rushabhcodes/wireless-split-keyboard/blob/main/imports/README.md) · [Supplier manifest](https://github.com/rushabhcodes/wireless-split-keyboard/blob/main/imports/manifest.json) |
| Checks and assembly | [Validation](https://github.com/rushabhcodes/wireless-split-keyboard/blob/main/docs/validation.md) · [Assembly](https://github.com/rushabhcodes/wireless-split-keyboard/blob/main/docs/assembly.md) · [Enclosure](https://github.com/rushabhcodes/wireless-split-keyboard/blob/main/docs/enclosure.md) · [3D model sources](https://github.com/rushabhcodes/wireless-split-keyboard/blob/main/docs/models.md) |
### Geometry and PCB construction
The outer shape, key centers, encoder shaft center and seven mounting drill centers per half follow **Sofle Choc Wireless commit `aae7cc0ac5ca563dab8222320ae8749ed1911e56`**. The PCB measures approximately **143.37 × 111.75 mm per half**, excluding case walls. The reference supplies mechanical geometry; this project's electronics, schematic and routed copper are custom.
Component positions are editable in TypeScript while those external mechanical anchors stay fixed. Moving electrical terminals requires rerouting; the saved-route adapter checks their positions and connection identities. Individual JLCPCB components are imported using `tsci import C<number> --lcsc`.
The routed nRF52840 fanout requires **four-layer 1+2+1 HDI**, with filled/capped via-in-pad construction and bottom-to-inner2 microvias. This is a fabrication requirement, not an ordinary through-via-only four-layer PCB. RF antenna keep-outs are defined on all copper layers. The supplied Gerbers are prototype review outputs pending fabricator approval of the stackup, RF/USB impedance, drill spans, solder mask and stencil.
### Validation and remaining work
The checked routed outputs have zero native errors/warnings and pass independent open-net, short, copper-clearance and antenna keep-out checks. Exported-mesh checks cover the assembly and enclosure; both ZMK targets have compiled. [Current evidence and limits](https://github.com/rushabhcodes/wireless-split-keyboard/blob/main/docs/validation.md) and [machine-readable validation summary](https://github.com/rushabhcodes/wireless-split-keyboard/blob/main/outputs/validation-summary.json).
**No keyboard hardware has been fabricated, flashed or physically tested.** Remaining work includes final sourcing and footprint review, fabricator HDI/impedance approval, battery/NTC and display-flex mating, printed-part fit, RF tuning, charging/current measurements, USB suspend-current handling and display sleep sequencing. CAD validation and firmware compilation do not establish finished-keyboard battery life or RF performance.
<details>
<summary>Optional local development and validation</summary>
Hosted builds are available on tscircuit. These commands are for developers who want to reproduce the outputs and independent checks locally:
```sh
bun install --frozen-lockfile
python3 -m venv .venv
.venv/bin/pip install -r requirements.txt
bun run build
bun scripts/collect-cli-build.ts
bun scripts/check-routed.ts
bun run validate
```
Firmware has its own [ZMK build instructions](https://github.com/rushabhcodes/wireless-split-keyboard/blob/main/firmware/README.md). Recheck routing and mechanical fit after changing placements or component models.
</details>
## References and licenses
[Original brief](https://github.com/rushabhcodes/wireless-split-keyboard/blob/main/docs/original-brief.md) · [Design references](https://github.com/rushabhcodes/wireless-split-keyboard/blob/main/docs/references.md) · [Code license](https://github.com/rushabhcodes/wireless-split-keyboard/blob/main/LICENSE) · [CAD sources and asset licenses](https://github.com/rushabhcodes/wireless-split-keyboard/blob/main/docs/models.md)
Public project: [GitHub](https://github.com/rushabhcodes/wireless-split-keyboard) · [tscircuit](https://tscircuit.com/rushabhcodes/wireless-split-keyboard).