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/critical-routing.tsx
/** Paired, top-layer Kelvin paths retained from the reviewed V1 power stage.
* Endpoint selectors follow the MCF land pattern; intermediate coordinates
* follow the notches in kelvin-pour-outlines.json. These must remain isolated
* from other same-net top copper until they reach the two R81 lands.
*/
import { Fragment } from "react"
import placement from "./placement.json"
// Native pcbPath numeric points are local to the first connected component.
// Keep the reviewed waypoints expressed in board coordinates for inspection.
const origin=placement.pcb_placements.find(p=>p.selector==="U7")!
const path=(points:(string|{x:number;y:number})[])=>points.map(p=>{
if(typeof p==="string")return p
const a=-(origin.rotation??0)*Math.PI/180, x=p.x-origin.center.x,y=p.y-origin.center.y
return {x:x*Math.cos(a)-y*Math.sin(a),y:x*Math.sin(a)+y*Math.cos(a)}
})
export function CriticalRouting() {
return <>
{/* Direct gate-resistor-to-gate paths: 0.40 mm on top, no via. The narrow
QFN fan-outs remain on the driver side of the series resistors. */}
{Array.from({length:6},(_,i)=><Fragment key={`gate-${i}`}><trace name={`gate_direct_${i}`}
from={`.R${90+2*i} > .pin2`} to={`.Q${10+i} > .G`} thickness={0.4}
pcbPath={[`.R${90+2*i} > .pin2`,`.Q${10+i} > .G`]} /></Fragment>)}
<trace name="motor_sense_positive" from=".U7 > .pin22" to=".R81 > .pin1" thickness={0.2}
pcbPath={path([".U7 > .pin22",{x:-1.200346,y:11.8157},{x:-1.42,y:12.0357},
{x:-1.42,y:15.3},{x:-0.98,y:15.74},{x:-0.98,y:18.9},
{x:-0.71,y:19.17},{x:-0.1625,y:19.17},".R81 > .pin1"])} />
<trace name="motor_sense_negative" from=".U7 > .pin23" to=".R81 > .pin2" thickness={0.2}
pcbPath={path([".U7 > .pin23",{x:-1.600396,y:11.65},{x:-1.82,y:11.87},
{x:-1.82,y:15.4657},{x:-1.3,y:15.9857},{x:-1.3,y:19.05},
{x:-0.82,y:19.53},{x:4.8,y:19.53},{x:5.4,y:18.93},{x:5.4,y:17.6},".R81 > .pin2"])} />
</>
}