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/capture-review-input.mjs
import {Circuit} from '@tscircuit/core'
import {mkdirSync,writeFileSync} from 'node:fs'
import Board from '../index.circuit.tsx'
mkdirSync('.tscircuit/routing-candidate',{recursive:true})
let captured=false
const routingAlgorithm=async input=>{
captured=true;writeFileSync('.tscircuit/routing-candidate/input.json',JSON.stringify(input));const events=new Map();return{on(n,f){events.set(n,f)},start(){events.get('complete')({traces:[]})},stop(){}}
}
const c=new Circuit({platform:{partsEngineDisabled:true,schematicDisabled:true}});c.add(Board({routingAlgorithm}));await c.renderUntilSettled();if(!captured)throw Error('No routing input captured')
writeFileSync('.tscircuit/routing-candidate/circuit.json',JSON.stringify(c.getCircuitJson()));console.log('Captured unrouted review geometry')