MustafaMulla29/rp2040-bldc-motor-controller
Hardware assembly metadata and PCB geometry for a controller board with a snap-off rotary-encoder section, plus four parallel 150 µF/50 V bulk electrolytic capacitors filtering the motor supply.
- Version
- 2.0.40
- License
- unset
- Stars
- 0
Use with the tscircuit CLI
tsci is the tscircuit CLI. Install it with npm install -g tscircuit.
tsci clone MustafaMulla29/rp2040-bldc-motor-controller # download the package files into ./rp2040-bldc-motor-controller
tsci add MustafaMulla29/rp2040-bldc-motor-controller # add it to your project as @tsci/MustafaMulla29.rp2040-bldc-motor-controllerIn 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.
circuit/rearm-interlock.tsx
import { SN74LVC1G14DBVR } from "../imports/SN74LVC1G14DBVR"
import { A_74LVC1G74DP_125 } from "../imports/A_74LVC1G74DP_125"
import { TLV803SDBZR } from "../imports/TLV803SDBZR"
import { net, schAt, Npn, Passives, type Passive } from "./helpers"
// SW4 OFF asynchronously clears U15, independently of MCU polling. Turning
// ON releases reset but cannot clock the flip-flop. Only a fresh physical ARM
// press (inverted by U17) sets Q; /Q otherwise clamps ARM_BASE through Q9. The existing
// R71/Q5 MCU disable and Q6 PD inhibit remain independently effective.
// U16 holds reset through 3V3 startup/brownout (2.93 V, 200 ms nominal delay).
// Nexperia 74LVC1G74 has Schmitt action on ALL inputs; no TI substitution
// without rechecking the reset input's transition-rate requirements.
const parts: Passive[] = [
{name:"C173",kind:"C",value:"100nF",a:"V3V3",b:"GND",x:0,y:0,footprint:"0402",volts:16},
{name:"R170",kind:"R",value:"10k",a:"REARM_INHIBIT",b:"REARM_INHIBIT_B",x:0,y:0,footprint:"0402"},
{name:"R171",kind:"R",value:"100k",a:"REARM_INHIBIT_B",b:"GND",x:0,y:0,footprint:"0402"},
{name:"R172",kind:"R",value:"100k",a:"MOTOR_ARM",b:"GND",x:0,y:0,footprint:"0402"},
{name:"R173",kind:"R",value:"4.7k",a:"V3V3",b:"REARM_RESET_N",x:0,y:0,footprint:"0402"},
{name:"C170",kind:"C",value:"100nF",a:"V3V3",b:"GND",x:0,y:0,footprint:"0402",volts:16},
{name:"C171",kind:"C",value:"100nF",a:"V3V3",b:"GND",x:0,y:0,footprint:"0402",volts:16},
{name:"C172",kind:"C",value:"10nF",a:"REARM_RESET_N",b:"GND",x:0,y:0,footprint:"0402",volts:16},
]
export function RearmInterlock() {
return <>
<A_74LVC1G74DP_125 name="U15" {...schAt("U15",0,0)} noConnect={["pin5"]}
connections={{pin1:net("REARM_CLOCK"),pin2:net("V3V3"),pin3:net("REARM_INHIBIT"),pin4:net("GND"),
pin6:net("REARM_RESET_N"),pin7:net("V3V3"),pin8:net("V3V3")}} />
<TLV803SDBZR name="U16" {...schAt("U16",0,0)} connections={{pin1:net("GND"),pin2:net("REARM_RESET_N"),pin3:net("V3V3")}} />
<SN74LVC1G14DBVR name="U17" {...schAt("U17",0,0)} noConnect={["pin1"]}
connections={{pin2:net("ARM_REQUEST_N"),pin3:net("GND"),pin4:net("REARM_CLOCK"),pin5:net("V3V3")}} />
<Npn name="Q9" base="REARM_INHIBIT_B" collector="ARM_BASE" x={0} y={0} sx={0} sy={0}/>
<Passives parts={parts} sx={0} sy={0}/>
</>
}