ShiboSoftwareDev/nema8-20mm-dual-usbc-stepper-controller
A compact 20 mm four-layer USB‑C stepper-controller PCB combining CH32X035 MCU control, TMC2209 motor driving, USB‑C PD/data interfaces, protection/power regulation, temperature/LED status hardware, and NEMA8 motor connectivity.
- Version
- 1.0.34
- License
- unset
- Stars
- 0
imports/WNM2046_3_TR.tsx
import type { ChipProps } from "tscircuit"
const pinLabels = {
pin1: ["G"],
pin2: ["S"],
pin3: ["D"]
} as const
const footprinterPinLabels = {
...pinLabels,
"pin3": [...pinLabels["pin3"], "thermalpad"],
} as const
export const WNM2046_3_TR = (props: ChipProps<typeof pinLabels>) => {
return (
<chip
pinLabels={footprinterPinLabels}
symbol={
<symbol>
<schematicpath points={[{"x":-0.2,"y":0},{"x":-0.08,"y":-0.04},{"x":-0.08,"y":0.04},{"x":-0.2,"y":0}]} strokeColor="#880000" isFilled fillColor="#880000" />
<schematicpath points={[{"x":0.2,"y":0.06},{"x":0.26,"y":-0.04},{"x":0.14,"y":-0.04},{"x":0.2,"y":0.06}]} strokeColor="#880000" isFilled fillColor="#880000" />
<schematicpath points={[{"x":-0.2,"y":0.14},{"x":0,"y":0.14},{"x":0,"y":0.2},{"x":0.2,"y":0.2},{"x":0.2,"y":0.2},{"x":0.2,"y":0.04}]} strokeColor="#880000" />
<schematicpath points={[{"x":-0.2,"y":0},{"x":0,"y":0},{"x":0,"y":-0.2},{"x":0.2,"y":-0.2},{"x":0.2,"y":-0.2},{"x":0.2,"y":0}]} strokeColor="#880000" />
<schematicpath points={[{"x":0,"y":-0.14},{"x":-0.2,"y":-0.14}]} strokeColor="#880000" />
<schematicpath points={[{"x":-0.24,"y":0.18},{"x":-0.24,"y":-0.18}]} strokeColor="#880000" />
<schematicpath points={[{"x":-0.2,"y":0.18},{"x":-0.2,"y":0.1}]} strokeColor="#880000" />
<schematicpath points={[{"x":-0.2,"y":-0.04},{"x":-0.2,"y":0.04}]} strokeColor="#880000" />
<schematicpath points={[{"x":-0.2,"y":-0.18},{"x":-0.2,"y":-0.1}]} strokeColor="#880000" />
<schematicpath points={[{"x":0.14,"y":0.06},{"x":0.16,"y":0.06},{"x":0.24,"y":0.06},{"x":0.26,"y":0.06}]} strokeColor="#880000" />
<port name="pin3" pinNumber={3} aliases={["D"]} direction="up" schX={0} schY={0.4} schStemLength={0.2} />
<port name="pin1" pinNumber={1} aliases={["G"]} direction="left" schX={-0.4} schY={0} schStemLength={0.16} />
<port name="pin2" pinNumber={2} aliases={["S"]} direction="down" schX={0} schY={-0.4} schStemLength={0.2} />
<schematictext schX={-0.08} schY={0.62} text="{NAME}" fontSize={0.2} anchor="bottom_center" />
</symbol>
}
supplierPartNumbers={{
"jlcpcb": [
"C239671"
]
}}
manufacturerPartNumber="WNM2046-3/TR"
footprint={<footprint>
<smtpad portHints={["pin1", "G"]} pcbX="0mm" pcbY="0.22505mm"
width="0.45mm" height="0.25mm" shape="rect" />
<smtpad portHints={["pin2", "S"]} pcbX="0mm" pcbY="-0.22505mm"
width="0.45mm" height="0.25mm" shape="rect" />
<smtpad portHints={["pin3", "D", "thermalpad"]} pcbX="-0.7mm" pcbY="0mm"
width="0.45mm" height="0.7mm" shape="rect" />
<courtyardoutline outline={[
{ x: -1.075, y: -0.5 }, { x: 0.375, y: -0.5 },
{ x: 0.375, y: 0.5 }, { x: -1.075, y: 0.5 },
{ x: -1.075, y: -0.5 },
]} />
</footprint>}
cadModel={{
objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C239671.obj?uuid=3c6aa1b3c8734b518abac20bb90bd1e0",
stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C239671.step?uuid=3c6aa1b3c8734b518abac20bb90bd1e0",
pcbRotationOffset: 0,
modelOriginPosition: { x: 0, y: 0, z: -0.03 },
}}
{...props}
/>
)
}