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-keyboard

In 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/enclosure.md

# Enclosure, lower knobs and removable tenting

Both default tscircuit entries compile the native JSCAD base, key plate and five spacers directly on the server. Their PCB outline, switch centers, encoder shaft centers and seven source drill centers stay fixed. [Editable model dimensions](../src/mechanicalModels.ts), [enclosure plan](../src/generated/enclosure.json) and [tenting plans](../src/generated/tenting.json) are committed source inputs; the authoring helpers are `scripts/generate-enclosure.py` and `scripts/generate-tenting.py`.

## Fit dimensions

Z is measured from the PCB center; its faces are ±0.8 mm.

| Feature | Design and clearance |
|---|---|
| Case | 0.35 mm PCB-edge clearance; 1.8 mm wall/floor; floor −10.8…−9 mm |
| Key plate | Z 1.8…3.0 mm, 1.2 mm thick, 14 × 14 mm switch apertures |
| Choc switches | Actual imported C400230 geometry; 15 mm flange underside rests at Z 3.0 mm |
| KLP Lamé Choc-size keycap CAD | Approximately 17.5 × 16.5 mm, rest Z 5.62…11.80 including two stems; source geometry is unscaled |
| Key travel | Case and screw clearance checked through 3.5 mm; cap rim remains about 0.92 mm above the plate. Fixed switch housing is checked at its nominal 3.0 mm CAD stroke. |
| Lower encoder | Bourns PEC11R-4215K-S0012, 15 mm / 6 mm knurled shaft, nominal shaft tip Z 22.3 mm |
| Knob | Printable 14 mm OD × 10 mm height; Z 14…24 mm (previous top 28 mm), 6.2 mm bore / 9 mm cavity, 1 mm roof and radial M3 pilot |
| Encoder travel | Maximum allocation 0.8 mm; 0.7 mm roof-to-shaft clearance and ≥0.9 mm clearance above fixed neck during push |
| Encoder aperture | 15 × 15 mm; verified nominal 12.5 × 13.4 mm body |
| Screen | 14 × 32 × 0.745 mm glass, bottom Z 1.8; 0.2 mm XY play per side |
| Screen retention | Support ledge top Z 1.6 + 0.2 mm tape; upper lip starts Z 2.8, 0.255 mm above glass |
| Screen window | 11.5 × 26 mm; centered at Y 30.173 to match the offset active area, minimum margins 0.378 / 0.36 mm |
| Screen tail | 13.63 mm length, 9.47 mm root / 5.5 mm finished tail, through 9.9 mm channel, into top J_LCD at (±53.3, 0.5) |
| Battery | Protected 500 mAh reference cell, 29 × 36 × 4.75 mm, top Z −4.25; bay 30 × 37 mm |
| USB-C | Bottom-mounted; 12 mm side window, Z −6…1.8; checked 11 × 7 mm plug corridor |
| Power | Bottom-mounted PCM12; lever projects about 0.875 mm beyond PCB; 12 mm pocket clears both 1.5 mm travel endpoints |
| Reset | 3 mm base access hole for 1.6 mm probe; lift case out of optional cradle for service |
| Mounts | Five original TH3–TH7 centers; 1.0 mm upper spacers with 3.9 mm OD × 1.4 mm centering collars; M2 × 12 mm small button-head screws (head ≤3.5 mm OD, ≤1.3 mm high) in trial-tapped 1.6 mm pilots |

The short display flex could not reach the former bottom connector without crossing the PCB. The connector is now directly below the tail on top; its support electronics retain their bottom placements. The glass is lower and supported rather than floating inside a tall bezel. The cap and raw panel use attributed CAD, including their actual undersides and shaped flex. Pin-1/contact side, actual connector engagement, glass tolerances and cap stem fit remain physical checks. See [model sources and limitations](models.md).

## Tenting stands

Print **one left/right pair** at the same angle. The default reference uses 10°; 5° and 15° alternatives are supplied. Each is a rigid, lift-out cradle following the case contour, with a 0.5 mm contour gap, a 1.4 mm retaining lip, and a broad frame underneath. No PCB holes, hinges or metal legs are added. **Inner edges rise** (+X left / −X right); the front-to-back pitch stays unchanged.

| Pair | Lowest case floor above desk | Highest nominal retaining lip | Minimum key/cell load-center margin inside support hull |
|---|---:|---:|---:|
| 5° | 3 mm | 17.49 mm | 12.44 mm |
| 10° | 3 mm | 30.48 mm | 10.50 mm |
| 15° | 3 mm | 43.29 mm | 8.51 mm |

The frame underside is at Z 1 mm, leaving room for a 1 mm adhesive rubber strip. Keep the strip under the frame; do not fill the central opening. The retaining lip stays below the side access windows; the fit checker also tests plug and switch-access corridors at every supplied angle. The load-center calculation is a static support check, not a measured tipping/sliding test. Try 5° or 10° first, and verify comfort and stability with the printed prototype.

[Left 10° assembled GLB](../outputs/left/tenting-10deg.glb), [right 10° GLB](../outputs/right/tenting-10deg.glb), and [tenting checks](../outputs/enclosure/tenting-check.json). These references apply a rigid transform to the **same native PCB/case/key models** and add the native cradle geometry. The regular PCB entries stay flat for routing inspection. Open `stand.circuit.tsx` to inspect an editable standalone native cradle; choose its half/angle in TypeScript.

## Printing and assembly

STLs under [outputs/enclosure](../outputs/enclosure): two bases, two plates, ten spacers, two copies of `encoder-knob-14x10.stl`, and optionally the selected cradle pair. All must be watertight with positive volume. Place bases and cradles flat-side down; use roughly 0.2 mm layers, at least four walls and 25–35% infill as an initial PLA prototype setting. Print knobs roof-side down with the bore open upward. Trial-fit one switch aperture, spacer/pilot and knob before a full set. Printing shrinkage and unsupported holes may require tuning.

1. Deburr holes, trial-tap the case pilots and radial knob pilots, and clean out debris.
2. Secure and insulate the protected cell in its bay using the strap slots. Attach the 10 kΩ NTC to the pouch with insulating tape, run its wires to TS/GND, and verify JST polarity before connecting power. Keep straps and soldered leads away from the pouch faces and screw tips.
3. Bring up the PCB and firmware, then seat it on the five base posts. Add five loose upper spacers.
4. Apply 0.2 mm tape only to the screen support ledge, seat the glass, and insert its flat tail into the open FPC connector. Close the actuator gently. Fit the plate and the ten total M2 screws without stressing the glass.
5. Fit 58 switches/caps. Press every key fully and verify that the caps clear the plate and neighbors. Fit the two low-mounted knobs and lightly secure their grub screws; test rotation and push.
6. Check both slide-switch detents, USB insertion/removal and reset access. Add anti-slip feet for flat use or rubber strips beneath the selected cradles, then lower each case into its matching cradle.

`open-case` lifts the key assemblies, plate/glass group and spacers; the disconnected tail reference stays with the PCB. `battery-access` lowers the base and cell for inspection; disconnect the real cell and panel before disassembly. [Battery-in-bay reference](../outputs/left/battery-bay.png) hides the PCB to make the allocation visible.

The fit checker intersects exported GLB triangles against the base/plate, including 3.5 mm case/screw travel clearance and nominal 3.0 mm fixed-housing clearance, screen/tail, USB-C, power, cell and 10° cradle. The separate corridor checks cover USB overmould clearance and both power-switch endpoints. See [left](../outputs/left/enclosure-fit-check.json), [right](../outputs/right/enclosure-fit-check.json), [enclosure dimensions](../outputs/enclosure/clearance-check.json). This is CAD validation; no physical case, panel, battery or stand has been tested. RF tuning and manufacturing release work remain open.

The case uses small-head **M2** screws because M3 heads crowded the switch flanges. The five 3.9 mm collars locate the PCB inside its unchanged 4.1 mm mounting holes; they stop 0.2 mm above the base posts so tightening clamps the PCB rather than bottoming out a collar. Use a head diameter no larger than 3.5 mm and height no greater than 1.3 mm. The head top is Z 4.3 mm. At full travel, the sourced hollow caps clear the head by their actual shell geometry; a filled keycap box is not an adequate check. Ordinary tall cap/pan heads are not interchangeable.