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/validation.md
# Validation record — 2026-11-30
**Routed prototype. Manufacturing and hardware validation remain open.** The left and right default entries include the complete PCB copper. No board has been ordered or physically tested.
| Check | Left | Right |
|---|---:|---:|
| Native errors | 0 | 0 |
| Native warnings | 0 | 0 |
| PCB trace records | 1139 | 1277 |
| Unique vias | 242 | 273 |
| Bottom–inner2 blind vias, 0.15/0.35 mm | 25 | 26 |
| Independent open nets | 0 | 0 |
| Independent copper shorts | 0 | 0 |
| Copper clearances below 0.1 mm | 0 | 0 |
| Copper outside board / keep-out intrusions | 0 | 0 |
| Gap in checked RF reference strip | 0 mm² | 0 mm² |
| Gerber-derived all-layer shorts | 0 | 0 |
Trace-record counts include standalone vias and explicit contacts inside via-in-pad lands. Physical continuity is checked independently from pad, wire, via and pour geometry, including the component's declared internal connections. The checker uses a 0.0005 mm comparison allowance at the 0.1 mm copper-clearance threshold. Native DRC and the independent checker also check routed copper against non-plated holes; the current independent hole-clearance violation counts are zero.
The current hashes and results are in [validation-summary.json](../outputs/validation-summary.json), [build-manifest.json](../outputs/build-manifest.json), and each half's `native-copper-check.json` and `gerber-shorts-check.json`. `bun scripts/check-routed.ts` reruns the physical checks and `tsci check shorts` in Gerber mode on all layers. `bun run validate` rejects stale reports, failed contracts, missing copper or any native errors or warnings.
The pinned CLI builds both board entries successfully. TypeScript passes. Contract tests cover locked geometry, real socket drills, all 74 MCU terminals, regulator nodes, raw LCD mapping, both USB orientations, matrix/GPIO allocation, supplier IDs, native routing, unique drills and HDI layer spans. Netlist checks report zero errors and zero warnings for both entries; schematic-placement checks report no issues.
## Enclosure and switch access
Both default entries include a native JSCAD base, key plate with supported display pocket, and five mounting spacers. The fourteen case/spacer STLs, six alternate-angle cradle STLs and shared knob STL are watertight with positive volume. The switch moved 1 mm outboard: its lever extends about 0.875 mm beyond the unchanged PCB outline, while copper lands remain at least 0.535 mm inside it. The 12 mm side opening clears both ends of its 1.5 mm travel. The ground return around the shifted locator holes was rerouted and checked. USB-C and the power switch are bottom-mounted. The 12 mm side windows span Z −6 to +1.8 mm, and the base has a 3 mm reset service hole. Independent corridor checks report no obstruction for both switch detents, an 11 × 7 mm USB plug envelope and a 1.6 mm reset probe. CAD checks cover glass/tail, cell, full key travel, small M2 fasteners and removable 5°/10°/15° cradles. Physical glass/FPC mating, cell and printed-part fit remain untested; see [enclosure.md](enclosure.md).
The CLI build renders both assembled 3D views with native 4096-pixel board textures and antialiased 1600 × 1200 preview images. Seven native A4 schematic sheets per half separate matrix/encoder, processor/clocks, power, display, USB, programming/measurement and RF. Individual 2400-pixel sheet images and vector SVGs are exported alongside a combined vector PDF. All silkscreen is on the bottom; engineering courtyard records remain separately selectable in PCB viewers. Optional exploded-view stages were removed because the SDK cannot validate closed collision geometry for all supplier meshes. Separate battery-bay and 10° tenting GLBs remain available. Actual exported meshes are checked independently; see the method below.
## Hosted builds
Both default entries build from TypeScript on tscircuit's server; publishing does not upload a local `dist`. The linked GitHub repository also queues hosted builds. The earlier `0.2.2` server build is preserved as [historical publication evidence](../outputs/publication-history/0.2.2.json); it predates the socket correction and is superseded. Current source/PCB/model validation is recorded separately, and the website's Builds page gives the live cloud release state.
## Bottom socket footprint correction
The previous top-authored socket footprint was incorrectly marked `originalLayer="bottom"`. This suppressed its bottom-side mirror while CAD still received the mirror, producing a 2.200 mm peg/drill error on all 58 sockets. Native placement now applies the same frame to both footprint and model. The actual exported meshes are independently checked for post/drill alignment and full solder-leg land coverage, including non-cardinal thumb rotations. The four outer-column sockets per half use a 2.3 mm-wide outboard land with measured metal coverage. The left battery connector moves 2 mm down for body clearance. All switch stems, PCB outlines, mounting centers and enclosure apertures stay locked. See the [3D comparison and method](socket-alignment.md).
## Routing and fabrication evidence
Only this project's own netlist, individual pads and exact locked outlines were sent to Freerouting 2.6.0. The initial routing inputs and sessions are preserved under `references/routing`. Protected surface RF traces, MCU blind escapes and final reviewed repairs are persisted in `src/routing`. The final charger/regulator/status connections and reset clearances were checked after repair. Merging protected input vias with session vias initially produced duplicate records; these were removed before publication, and a contract checks unique via centers.
The default native router adapter rejects changed terminal positions or connection identities. Its independent all-layer check validates complete copper connectivity. Standalone via records avoid fictitious outer-layer wire tails. Explicit contacts remain inside existing pad/via copper. The current complete-saved-phase cache cannot save standalone via-only routes; its cache warning does not remove copper from the generated circuit.
Gerber ZIPs contain all four copper layers, solder mask/paste/silkscreen, outline, separate `drill-L1-L4.drl`, `drill-L3-L4.drl`, and non-plated drills. The blind-drill hit counts match the unique native blind vias. The automatic BOM/PnP files inside these ZIPs still have unverified rotations and unsourced parts; they are review outputs, not assembly order files.
The MCU requires 1+2+1 HDI and filled/capped via-in-pad construction. The conventional through-hole-only stackup considered earlier was superseded. The 0.20 mm RF feed and illustrative 0.103 mm outer dielectric require a fabricator field-solver result and stackup approval. Both inner pours exclude the antenna reservation and Nordic matching-network clearance. The checked 0.2 mm-wide strip beneath the RF feed has continuous inner2 ground.
## Mechanical, schematic and firmware limits
All 58 switch stems and 14 mounting drill centers match the pinned Sofle reference; outline arcs are tessellated within 0.005 mm. Component lands stay within the outline. CLI PCB, schematic and 3D previews and GLBs render successfully. Top switches and the JST battery connector use supplier CAD. Keycaps use published KLP Lamé Choc meshes with hollow undersides and real stems. The raw Sharp panel uses layered glass/polarizer CAD and a shaped ten-contact flex corrected to the Sharp drawing; no display PCB is imported. Knob, cell and encoder geometry remains nominal. [Model sources and licenses](models.md) are recorded with pinned revisions and asset hashes. The plate top meets the actual switch flange underside at Z 3.0 mm; the former 3.8 mm plane intersected the flange. The 1.0 mm upper spacers have locating collars for the unchanged 4.1 mm PCB holes. Small M2 × 12 screw heads clear both the fixed switch flanges and full-press caps; M3 heads are unsuitable here. Mesh checks do not replace a physical fit test. The reset switch moves to (±57, −0.5) mm with base access. The right battery connector moves 2 mm up for its full side-entry body clearance. The external PCB anchors stay fixed.
Current placement DRC reports zero errors and warnings. The adviser's orientation recommendations use connection direction rather than verified routed copper. The right-side overlap recommendation uses axis-aligned bounds for the rotated, stepped SW26 footprint. An [exact courtyard-polygon review](../outputs/right/placement-review.json) confirms no intersection: SW26–D26 gap 4.773 mm, SW26–C_REG_OUT1 gap 5.093 mm. The SWD access direction is perpendicular probing. The internal LCD connector has an explicit internal-access role and a +Y mouth matching the shaped flex. Contact engagement and pin-1/contact side still need a physical check.
Native source diagnostics are zero for both halves. Switches, FETs and connectors use their proper primitives; power/ground/passive and unused pins are explicit; wire/test pads are marked do-not-place; dense-island courtyards are documented. A narrow pinned-package patch exempts only connectors tagged `ConnectorAccess=internal` from the nearest-board-edge heuristic. Regression tests prove external USB warnings remain enabled and removing the tag restores the FPC warning. No diagnostic records are filtered out. The cloud build rejects all warning/error records. See [diagnostic policy](models.md#diagnostic-policy).
Twenty individual JLCPCB definitions were imported with `tsci import`; 17 are selected in 84 PCBA placements per half. C400230 supplies the separate hand-fitted switch models. Each assembly also contains seven native printed parts, 29 top mechanical switches, 29 sourced sculpted keycaps, layered raw glass/active-area/flex, the lowered knob, five small M2 screws, protected-cell envelope and NTC wire reference. The assembly models are excluded from the PCBA inventory. The finished LCD flex tip is 5.5 mm wide and approximately 0.30 mm thick; its 9.47 mm root clears the widened 9.9 mm internal channel. The length-preserving bend stays within Sharp's 0.8–6.0 mm bend region and has a nominal minimum radius above 4.3 mm. Physical mating remains untested.
Previously compiled native ZMK targets linked successfully: left 345,456 B flash / 66,772 B RAM; right 300,836 B flash / 48,576 B RAM. The 960 KiB application / 64 KiB settings split is enforced. Development binaries, configurations and hashes are under `outputs/firmware`; they have not been flashed. PCB placement/routing updates did not change the GPIO allocation.
## Before manufacturing
Obtain fabricator approval of the HDI stackup, RF and USB differential impedance/skew, filled/capped vias, mask webs and exposed-pad stencil. Complete the remaining MPN/rating/footprint and availability audit. Validate battery polarity/retention/NTC, raw FPC contact side and engagement, panel/case clearances and component heights. Implement USB suspend-current behavior and panel shutdown/wake sequencing before enabling deep sleep. Bring up current-limited prototypes, measure rails/charging/current/VCOM, test firmware, and tune RF in the final enclosure.
`bun run validate -- --fabrication` intentionally fails until those release tasks are complete.
## Mechanical fit method
Each half's `enclosure-fit-check.json` measures the exported native GLB. It compares the case and spacer bounds/volumes with their watertight STLs (20 ppm volume allowance for native tessellation/float precision), then uses those solids for intersections. Switch/plate checks use conservative height-clipped envelopes. Other open vendor shells use conservative convex solids where appropriate. The hollow keycap versus fixed switch housing uses FCL surface collision checks on the actual supplier primitives, with the moving plunger identified separately.
The cap seating land meets the plunger top at Z 8.8 mm with a 0.02 mm mesh allowance. Case and screw clearances are checked through a 3.5 mm stroke. Fixed switch housing clearance is checked at the nominal 3.0 mm stroke: the supplier mechanism model does not validate the extra tolerance endpoint. The physical switch's travel tolerance, cap stem fit and bottom-out need measurement. The checks also include bottom components and NTC wires versus the base, spacers, glass/tail, USB/power access, battery and all cradle angles. The 10° assembled reference applies the documented rigid pose to the same exported meshes. No physical fit or strength test is claimed.
The actual knob top moves from Z 28 to 24 mm; its deep bore clears the nominal 15 mm Bourns shaft and leaves 0.9 mm above the fixed neck at maximum push. Caps have a measured minimum 1.563 mm neighbor gap. The cell is shown in native battery-in-bay references, and the README lists all separate purchases and conditional assembler items.