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/render-routing-review.tsx
/** Native PCB-only validation of the authored saved plan. No DRC filtering. */
import {Circuit} from '@tscircuit/core'
import {mkdirSync,writeFileSync} from 'node:fs'
import Board from '../index.circuit'
const circuit=new Circuit({platform:{partsEngineDisabled:true,schematicDisabled:true}})
circuit.add(Board({includeSystemDiagrams:false}))
await circuit.renderUntilSettled()
const c=circuit.getCircuitJson();mkdirSync('.tscircuit/routing-reviewed',{recursive:true})
writeFileSync('.tscircuit/routing-reviewed/circuit.json',JSON.stringify(c,null,2))
const errors=c.filter(x=>x.type.endsWith('_error'))
writeFileSync('.tscircuit/routing-reviewed/errors.json',JSON.stringify(errors,null,2))
console.log('Native PCB errors',errors.length,Object.groupBy(errors,x=>x.type))
if(errors.length)process.exitCode=1