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-controller

In 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/service-pads.tsx

import { schAt, net } from "./helpers"
import banks from "./service-pads.json"

/** Flat exposed copper contacts for factory/service probes; no fitted hardware. */
export function ServicePads({ bank }: { bank: keyof typeof banks }) {
  return <>{banks[bank].map(p => <testpoint key={p.name} name={p.name}
    footprintVariant="pad" padShape="circle" padDiameter="1.5mm" doNotPlace
    footprint={<footprint><smtpad shape="circle" radius={0.75} solderPasteMargin={-0.75}
      solderMaskMargin={0.05} portHints={["pin1"]} />
      {/* 1.5 mm copper + 0.5 mm radial probe clearance, matching KiCad D1.5mm. */}
      <courtyardcircle pcbX={0} pcbY={0} radius={1.25} />
    </footprint>}
    {...schAt(p.name, 0, 0)} connections={{pin1: net(p.net)}} />)}</>
}