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/assembly-parts.ts
import selections from "./assembly-parts.json"
// Exact orderable choices. Native source-component metadata feeds the BOM and
// parts-engine orientation analysis; this does not replace the authored lands.
export const assemblyProps = (name: string) => {
const p = (selections as Record<string, { manufacturerPartNumber: string; supplierPartNumbers: Record<string, string[]>; maxVoltageRating?: number }>)[name]
if (!p) return {}
return { ...(/^[RC]\d+$/.test(name) && name !== "C93" ? {
pcbStyle: { silkscreenTextVisibility: "hidden" as const }
} : {}), manufacturerPartNumber: p.manufacturerPartNumber,
supplierPartNumbers: p.supplierPartNumbers,
...(p.maxVoltageRating === undefined ? {} : {maxVoltageRating: p.maxVoltageRating}) }
}