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.
imports/JS202011JAQN.tsx
// C&K JS series right-angle J-bend: 2.50 mm contact pitch; two 0.9 mm locating holes.
// 270° board rotation points the lever toward the left case wall.
import type { SwitchProps } from "@tscircuit/props"
const pinLabels = {
pin1: ["pin1"],
pin2: ["pin2"],
pin3: ["pin3"],
pin5: ["pin5"],
pin6: ["pin6"],
pin7: ["pin7"]
} as const
// Keep the manufacturer's 1 × 1.6 mm land envelope and 0.6 mm terminal
// contact strip. Relieve only the corner facing each locating peg by 0.16 mm
// to provide >0.2 mm NPTH-to-copper clearance at the 0.9 mm drill.
const endLand = (x: number, y: number) => {
const sx = Math.sign(x), sy = Math.sign(y)
return [
{ x: -.499999, y: -.7999984 },
{ x: .339999, y: -.7999984 },
{ x: .499999, y: -.6399984 },
{ x: .499999, y: .7999984 },
{ x: -.499999, y: .7999984 },
].map(p => ({ x: x + sx * p.x, y: y + sy * p.y }))
}
export const JS202011JAQN = (props: SwitchProps) => {
const { name = "SW1", ...restProps } = props
return (
<switch
name={name}
type="dpdt"
pinLabels={pinLabels}
symbol={<symbol>
{/* C&K contact numbering: common 2/6; OFF closes 1-2 and 5-6. */}
<port name="pin1" pinNumber={1} direction="left" schX={-0.8} schY={0.7} schStemLength={0.2} />
<port name="pin2" pinNumber={2} direction="right" schX={0.8} schY={0.4} schStemLength={0.2} />
<port name="pin3" pinNumber={3} direction="left" schX={-0.8} schY={0.1} schStemLength={0.2} />
<port name="pin5" pinNumber={5} direction="left" schX={-0.8} schY={-0.5} schStemLength={0.2} />
<port name="pin6" pinNumber={6} direction="right" schX={0.8} schY={-0.8} schStemLength={0.2} />
<port name="pin7" pinNumber={7} direction="left" schX={-0.8} schY={-1.1} schStemLength={0.2} />
<schematicpath points={[{x:-0.6,y:0.7},{x:-0.4,y:0.7},{x:0.4,y:0.4},{x:0.6,y:0.4}]} />
<schematicpath points={[{x:-0.6,y:0.1},{x:-0.4,y:0.1}]} />
<schematicpath points={[{x:-0.6,y:-0.5},{x:-0.4,y:-0.5},{x:0.4,y:-0.8},{x:0.6,y:-0.8}]} />
<schematicpath points={[{x:-0.6,y:-1.1},{x:-0.4,y:-1.1}]} />
<schematicpath points={[{x:0,y:0.5},{x:0,y:0.25}]} />
<schematicpath points={[{x:0,y:0.05},{x:0,y:-0.2}]} />
<schematicpath points={[{x:0,y:-0.4},{x:0,y:-0.65}]} />
<schematictext text="{NAME}" schX={0} schY={1.15} fontSize={0.2} />
<schematictext text="DPDT • shown OFF" schX={0} schY={-1.5} fontSize={0.16} />
</symbol>}
supplierPartNumbers={{
"jlcpcb": [
"C221664"
]
}}
manufacturerPartNumber="JS202011JAQN"
footprint={<footprint>
<hole pcbX="-3.400044mm" pcbY="0mm" diameter="0.9mm" />
<hole pcbX="3.400044mm" pcbY="0mm" diameter="0.9mm" />
<smtpad portHints={["pin1"]} points={endLand(-2.5, 1.199896)} shape="polygon" />
<smtpad portHints={["pin2"]} pcbX="0mm" pcbY="1.199896mm" width="0.999998mm" height="1.5999968mm" shape="rect" />
<smtpad portHints={["pin3"]} points={endLand(2.5, 1.199896)} shape="polygon" />
<smtpad portHints={["pin5"]} points={endLand(-2.5, -1.199896)} shape="polygon" />
<smtpad portHints={["pin6"]} pcbX="0mm" pcbY="-1.199896mm" width="0.999998mm" height="1.5999968mm" shape="rect" />
<smtpad portHints={["pin7"]} points={endLand(2.5, -1.199896)} shape="polygon" />
<silkscreenpath route={[{"x":-2.839999399999897,"y":-2.1800058000000035},{"x":-2.839999399999897,"y":-3.919981999999891},{"x":-1.129995200000053,"y":-3.919981999999891},{"x":-1.129995200000053,"y":-1.750034600000049}]} />
<silkscreenpath route={[{"x":-4.5000164000000495,"y":-1.750034600000049},{"x":-4.5000164000000495,"y":1.7499837999999954}]} />
<silkscreenpath route={[{"x":4.5000164000000495,"y":1.7499584000000823},{"x":4.5000164000000495,"y":-1.7500091999999086}]} />
<silkscreenpath route={[{"x":-4.5000164000000495,"y":1.7499837999999954},{"x":-3.271139000000062,"y":1.7499837999999954}]} />
<silkscreenpath route={[{"x":-1.8088610000002063,"y":1.7499837999999954},{"x":-0.7311389999999847,"y":1.7499837999999954}]} />
<silkscreenpath route={[{"x":0.731138999999871,"y":1.7499837999999954},{"x":1.808860999999979,"y":1.7499837999999954}]} />
<silkscreenpath route={[{"x":3.2711389999999483,"y":1.7499837999999954},{"x":4.5000164000000495,"y":1.7499837999999954}]} />
<silkscreenpath route={[{"x":-4.5000164000000495,"y":-1.750034600000049},{"x":-3.271139000000062,"y":-1.750034600000049}]} />
<silkscreenpath route={[{"x":-1.8088610000002063,"y":-1.750034600000049},{"x":-0.7311389999999847,"y":-1.750034600000049}]} />
<silkscreenpath route={[{"x":0.731138999999871,"y":-1.750034600000049},{"x":1.808860999999979,"y":-1.750034600000049}]} />
<silkscreenpath route={[{"x":3.2711389999999483,"y":-1.750034600000049},{"x":4.5000164000000495,"y":-1.750034600000049}]} />
<silkscreentext text="{NAME}" pcbX="0mm" pcbY="3.0066mm" anchorAlignment="center" fontSize="1mm" />
<fabricationnotepath route={[{"x":-1.1299951999999394,"y":-1.750034600000049},{"x":-1.1299951999999394,"y":-3.9199820000000045},{"x":-2.8399994000001243,"y":-3.9199820000000045},{"x":-2.8399994000001243,"y":-1.7500092000000222},{"x":-1.1299951999999394,"y":-1.750034600000049}]} strokeWidth="0mm" isFilled hasStroke={false} />
<courtyardoutline outline={[{"x":-4.749991000000023,"y":2.24989440000013},{"x":4.749990999999909,"y":2.24989440000013},{"x":4.749990999999909,"y":-3.9600001999999677},{"x":-4.749991000000023,"y":-3.9600001999999677},{"x":-4.749991000000023,"y":2.24989440000013}]} />
</footprint>}
cadModel={{
objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C221664.obj?uuid=8ea7084ba68e4ece8874c41936db9f76",
stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C221664.step?uuid=8ea7084ba68e4ece8874c41936db9f76",
pcbRotationOffset: 0,
modelOriginPosition: { x: 0, y: 0.4350057000000107, z: -0.7750009999999999 },
}}
{...restProps}
/>
)
}