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.
scripts/check-source-cache.tsx
import {sourceCacheStats} from './source-render-cache'
import {Circuit} from '@tscircuit/core'
import {writeFileSync} from 'node:fs'
const c=new Circuit({platform:{pcbDisabled:true,schematicDisabled:true,partsEngineDisabled:true}})
c.add(<board><chip name="U1" pinLabels={{pin1:'VCC',pin2:'GND',pin3:'OUT'}} connections={{VCC:'net.VCC',GND:'net.GND',OUT:'net.SIGNAL'}}/>{Array.from({length:5},(_,i)=><capacitor key={i} name={`C${i}`} capacitance="100nF" connections={{pin1:i===4?'net.SIGNAL':'net.VCC',pin2:'net.GND'}}/>)}<resistor name="R1" resistance="10k" connections={{pin1:'net.VCC',pin2:'net.SIGNAL'}}/></board>)
await c.renderUntilSettled()
const json=c.getCircuitJson().filter((r:any)=>r.type.startsWith('source_'))
writeFileSync(process.argv[2],JSON.stringify(json))
console.log(sourceCacheStats)