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.
src/schematicPlacement.ts
/** Schematic units are independent of physical PCB placement.
* Common rail capacitors are collected in a schematic bank; their physical
* decoupling positions remain in the corresponding subsystem specifications.
*/
export const schematicPlacement: Record<string,{schX?:number;schY?:number;schRotation?:number;schSectionName?:string}> = {
C_N5:{schX:45.65,schY:-4.7}, C_DEC3:{schX:46,schY:-7}, C_N9:{schX:46,schY:-9},
C_N6:{schX:54,schY:-7.3}, C_N21:{schX:54,schY:-4.8},
C_X1:{schX:64,schY:-12.5}, C_X2:{schX:66,schY:-12.5},
C_XL1:{schX:63.32,schY:-15.0}, C_XL2:{schX:66.68,schY:-15.0},
C_CH_BAT:{schX:42,schY:-35}, C_CH_SYS:{schX:44.2,schY:-37.5}, C_REG_IN:{schX:46,schY:-37.5},
C_REG_OUT1:{schX:51,schY:-46,schSectionName:'regulator'},
C_REG_OUT2:{schX:52.8,schY:-46,schSectionName:'regulator'},
C_LCD2:{schX:92.8,schY:-13},
R_FB_TOP:{schX:41.5,schY:-39,schRotation:-90},
R_FB_BOTTOM:{schX:41.5,schY:-41}, L_BUCK:{schX:48.09,schY:-40,schRotation:180},
R_REG_EN:{schX:43,schY:-44}, R_RST:{schX:86,schY:-33},
...Object.fromEntries(['C_N7','C_N8','C_N12','C_N14','C_N20'].map((ref,i)=>[ref,{schX:62+i*1.8,schY:3.7,schSectionName:'rail_decoupling'}])),
}