rushabhcodes/wireless-split-keyboard
Wireless Split Keyboard — custom routed nRF52840 split PCBs with a printable enclosure
- Version
- 0.4.5
- License
- unset
- Stars
- 0
Use with the tscircuit CLI
tsci is the tscircuit CLI. Install it with npm install -g tscircuit.
tsci clone rushabhcodes/wireless-split-keyboard # download the package files into ./wireless-split-keyboard
tsci add rushabhcodes/wireless-split-keyboard # add it to your project as @tsci/rushabhcodes.wireless-split-keyboardIn a cloned or new (tsci init) project: tsci dev starts a local preview, tsci build outputs Circuit JSON, and tsci push publishes to tscircuit.com.
docs/pinout.md
# Shared GPIO assignment
`src/pinout.ts` records the current allocation. SPI pinctrl and the ADC input selection are explicit bindings in the firmware generator and must also be updated if those peripheral pins change. Regenerate with `bun scripts/generate-firmware.ts` after changes; rerun the GPIO/netlist tests and both firmware builds.
| Function | GPIOs |
|---|---|
| Rows 0–4 | P0.11, P0.12, P0.13, P0.14, P0.15 |
| Columns 0–5 | P0.16, P0.17, P0.19, P0.20, P0.21, P0.22 |
| Encoder A / B | P0.23 / P0.24 |
| LCD SCLK / SI | P0.26 / P0.27 |
| LCD SCS / DISP / EXTCOMIN | P1.08 / P1.09 / P1.10 |
| LCD power enable | P1.11 (high turns on P-channel supply through N-channel driver) |
| Battery ADC / enable | P0.04 (AIN2) / P1.12 |
| LF crystal | P0.00 / P0.01 |
| Reset | P0.18 |
P0.09/P0.10 remain unused NFC pins. USB and SWD use dedicated peripheral terminals. No GPIO appears in two assigned functions.
The column drives high, through the closed switch and diode anode, into a row with pull-down. Diode cathode/band faces ROW. Firmware uses `col2row`. Encoder push is COL0 → switch → D_ENC anode → cathode → ROW4. A/C/B are quadrature channels/common, and the encoder's mechanical anchor tabs are grounded.
## Raw display connector
| FPC contact | Raw panel signal | Net |
|---|---|---|
| 1 | SCLK | displaySck |
| 2 | SI | displayMosi |
| 3 | SCS, active high | displayCs |
| 4 | EXTCOMIN | displayVcom, 60 Hz |
| 5 | DISP | displayDisp |
| 6 | VDDA | LCD_VDD |
| 7 | VDD | LCD_VDD |
| 8 | EXTMODE | LCD_VDD (external inversion mode) |
| 9 | VSS | GND |
| 10 | VSSA | GND |
The Hirose FH34SRJ-10S-0.5SH(50) has ten electrical contacts and two mechanical lands. Mechanical lands are not extra display contacts. Confirm the physical contact side and FPC pin-1 orientation before assembly. This table is not the five-pin nice!view header pinout.
## SWD pads
Bottom view, footprint local coordinate origins before side/rotation transforms:
| Pad | Net | Local x,y (mm) |
|---|---|---|
| 1 | VCC target reference | 0,0 |
| 2 | SWDIO | 1.5,0 |
| 3 | SWDCLK | 3,0 |
| 4 | GND | 0,1.5 |
| 5 | RESET | 1.5,1.5 |
| 6 | GND | 3,1.5 |
VCC is a target-voltage reference. Do not enable an external debugger power output without separately reviewing the power path.