gokul/macro-six-usbc

A six-key macro keyboard PCB paired with a separate physical enclosure.

Version
0.1.16
License
unset
Stars
0

Use with the tscircuit CLI

tsci is the tscircuit CLI. Install it with npm install -g tscircuit.

tsci clone gokul/macro-six-usbc  # download the package files into ./macro-six-usbc
tsci add gokul/macro-six-usbc    # add it to your project as @tsci/gokul.macro-six-usbc

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.

outputs/release/simulation/power-normal-4.4.cir

SchematicSchematic preview for outputs/release/simulation/power-normal-4.4.cir
* Macro Six power-path approximation; NOT a manufacturer MOSFET model
VUSB VBUS 0 4.4
RFUSE VBUS FUSED_5V 1.5
.model PSW SW(Ron=0.085 Roff=1e9 Vt=1.3 Vh=0)
.model BODY D(Is=1e-12 N=1.5)
.model GREEN D(Is=1e-20 N=2 Rs=10)
R_MAIN_PULL FUSED_5V MAIN_GATE 100000
R_RGB_PULL VCC RGB_GATE 100000
R_PWR VCC PWR_ANODE 10000
C_BULK VCC 0 0.0000047
C_V1 VCC 0 1e-7
C_V2 VCC 0 1e-7
C_V3 VCC 0 1e-7
C_V4 VCC 0 1e-7
C_V5 VCC 0 1e-7
C_LED1 LED_5V 0 1e-7
C_LED2 LED_5V 0 1e-7
C_LED3 LED_5V 0 1e-7
C_LED4 LED_5V 0 1e-7
C_LED5 LED_5V 0 1e-7
C_LED6 LED_5V 0 1e-7
SQ_MAIN FUSED_5V VCC FUSED_5V MAIN_GATE PSW
DQ_MAIN VCC FUSED_5V BODY
SQ_RGB VCC LED_5V VCC RGB_GATE PSW
DQ_RGB LED_5V VCC BODY
RMAIN_CONTROL MAIN_GATE 0 0.1
RRGB_CONTROL RGB_GATE 0 0.1
DPOWER PWR_ANODE 0 GREEN
BMCU VCC 0 I=0.02*min(max(V(VCC)/3.5,0),1)
BRGB LED_5V 0 I=0.03*min(max(V(LED_5V)/3.5,0),1)
.op
.end