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/bulk-capacitors.tsx
import { EEUFR1H151 } from "../imports/EEUFR1H151"
import { schAt, net } from "./helpers"
// Panasonic FR-A: 150 uF / 50 V, Ø10 x 12.5 mm, pitch 5 mm,
// 1.17 A rms at 100 kHz and 105°C, 42 mΩ maximum impedance at 100 kHz.
// Four parallel parts: 600 uF nominal (480 uF minimum), vs V1 470 uF.
// Nominal body height is 7.5 mm lower; enclosure must allow the body tolerance.
const body = {type:"union",shapes:[
{type:"colorize",color:[0.15,0.23,0.28],shape:{type:"translate",vector:[0,0,6.2],shape:{type:"cylinder",radius:5,height:12.4}}},
{type:"colorize",color:[0.72,0.73,0.74],shape:{type:"translate",vector:[0,0,12.45],shape:{type:"cylinder",radius:4.9,height:0.1}}},
]}
export function BulkCapacitors() {
return <>{[93,94,95,96].map(n => <EEUFR1H151 key={n} name={`C${n}`}
{...schAt(`C${n}`,0,0)} maxVoltageRating={50} cadModel={{jscad:body}}
footprint={<footprint>
<platedhole portHints={["pin1"]} shape="circle" holeDiameter={0.9} outerDiameter={2} pcbX={-2.5} pcbY={0} />
<platedhole portHints={["pin2"]} shape="circle" holeDiameter={0.9} outerDiameter={2} pcbX={2.5} pcbY={0} />
<silkscreencircle pcbX={0} pcbY={0} radius={5.1} />
<courtyardcircle pcbX={0} pcbY={0} radius={5.5} />
<silkscreentext text="+" pcbX={-3.6} pcbY={3.6} fontSize={1} />
</footprint>}
connections={{pin1:net("VMOTOR"),pin2:net("GND")}} />)}</>
}