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/controls.tsx

import { schAt, net } from "./helpers"
import { KH_6X6X9_5H_SMT } from "../imports/KH_6X6X9_5H_SMT"
import { RK09D1130C2P } from "../imports/RK09D1130C2P"

// KH-6X6X9.5H 6x6 mm tact switch (C3038675), 9.5 mm tall with a round plunger,
// the part used on the dual-RP2350 handheld. A printed cap sleeves over the plunger.
// Diagonal pins 1 and 4 are always on opposite sides of the contact; pins 2/3
// are solder anchors (same wiring as the handheld board).
export function BoardButton({name, signal, showReference, referenceY}: {
  name: string; signal: string; showReference?: boolean; referenceY?: number
}) {
  return <KH_6X6X9_5H_SMT name={name} {...schAt(name,0,0)}
    noConnect={["pin2","pin3"]}
    pcbSx={showReference===false ? { "& silkscreentext": { visibility: "hidden" } } : undefined}
    connections={{pin1:net(signal),pin4:net("GND")}} />
}


// Alps pin 2 is the wiper; pin 1 is the counterclockwise end.
// CW therefore raises the command voltage. Case tabs are mechanical NCs.
export function SpeedControl() {
  return <RK09D1130C2P name="RV1" {...schAt("RV1",0,0)}
    noConnect={["pin4","pin5"]}
    connections={{pin1:net("GND"),pin2:net("THROTTLE_IN"),pin3:net("V3V3")}} />
}