imrishabh18/nema-23-stepper-controller

A 57 mm four-layer RP2040 NEMA23 stepper-controller PCB with USB‑C/USB‑PD power input, protected motor rail, DRV8452 dual-winding driver, bidirectional current sensing, temperature/enable interlock, optional magnetic encoder, RGB LED and buzzer status indicators, and motor/test connectors.

Version
1.2.3
License
unset
Stars
0

imports/INA240A1DR.tsx

import type { ChipProps } from "@tscircuit/props";
const pinLabels = {
    pin1: ["IN_NEG"],
    pin2: ["GND"],
    pin3: ["REF2"],
    pin4: ["NC"],
    pin5: ["OUT"],
    pin6: ["VS"],
    pin7: ["REF1"],
    pin8: ["IN_POS"]
} as const;
const pinAttributes = {
    pin2: { requiresGround: true },
    // TI INA240 Table 6-1 allows NC pin 4 to connect to ground.
    pin4: { requiresGround: true }
} as const;
export const INA240A1DR = (props: ChipProps<typeof pinLabels>) => {
    return (<chip schMarginX={0.35} schMarginY={0.7} pinLabels={pinLabels} pinAttributes={pinAttributes} supplierPartNumbers={{
            "jlcpcb": [
                "C2060769"
            ]
        }} manufacturerPartNumber="INA240A1DR" footprint={<footprint>
        <smtpad portHints={["pin1"]} pcbX="-1.905mm" pcbY="-2.7051mm" width="0.5684012mm" height="1.950212mm" radius="0.2842006mm" shape="pill"/>
        <smtpad portHints={["pin2"]} pcbX="-0.635mm" pcbY="-2.7051mm" width="0.5684012mm" height="1.950212mm" radius="0.2842006mm" shape="pill"/>
        <smtpad portHints={["pin3"]} pcbX="0.635mm" pcbY="-2.7051mm" width="0.5684012mm" height="1.950212mm" radius="0.2842006mm" shape="pill"/>
        <smtpad portHints={["pin4"]} pcbX="1.905mm" pcbY="-2.7051mm" width="0.5684012mm" height="1.950212mm" radius="0.2842006mm" shape="pill"/>
        <smtpad portHints={["pin8"]} pcbX="-1.905mm" pcbY="2.7051mm" width="0.5684012mm" height="1.950212mm" radius="0.2842006mm" shape="pill"/>
        <smtpad portHints={["pin7"]} pcbX="-0.635mm" pcbY="2.7051mm" width="0.5684012mm" height="1.950212mm" radius="0.2842006mm" shape="pill"/>
        <smtpad portHints={["pin6"]} pcbX="0.635mm" pcbY="2.7051mm" width="0.5684012mm" height="1.950212mm" radius="0.2842006mm" shape="pill"/>
        <smtpad portHints={["pin5"]} pcbX="1.905mm" pcbY="2.7051mm" width="0.5684012mm" height="1.950212mm" radius="0.2842006mm" shape="pill"/>
        <silkscreenpath route={[{ "x": -2.4999950000001263, "y": -1.4999970000000076 }, { "x": 2.499994999999899, "y": -1.4999970000000076 }]}/>
        <silkscreenpath route={[{ "x": -2.4999950000001263, "y": 1.4999969999998939 }, { "x": 2.499994999999899, "y": 1.4999969999998939 }]}/>
        <silkscreenpath route={[{ "x": -2.4999950000001263, "y": -1.4999970000000076 }, { "x": -2.4999950000001263, "y": -0.7265669999998181 }]}/>
        <silkscreenpath route={[{ "x": -2.4999950000001263, "y": 1.4999969999998939 }, { "x": -2.4999950000001263, "y": 0.7262875999999778 }]}/>
        <silkscreenpath route={[{ "x": 2.499994999999899, "y": 1.4999969999998939 }, { "x": 2.499994999999899, "y": -1.4999970000000076 }]}/>
        <silkscreenpath route={[{ "x": -2.4999950000001263, "y": -0.7265669999998181 }, { "x": -2.2625565730616017, "y": -0.6727720384950544 }, { "x": -2.056152369867391, "y": -0.5436666188794561 }, { "x": -1.9038872877111999, "y": -0.3537028085727343 }, { "x": -1.822805887847835, "y": -0.12414516642888884 }, { "x": -1.8219844264158382, "y": 0.11930961309167287 }, { "x": -1.9015148578508843, "y": 0.34940918924542075 }, { "x": -2.0524945415012326, "y": 0.5403962034508822 }, { "x": -2.25802280368805, "y": 0.6708915593560505 }, { "x": -2.495092800000066, "y": 0.7262876000000915 }]}/>
        <silkscreencircle pcbX="-1.778mm" pcbY="-1.016mm" radius="0.150114mm"/>
        <silkscreentext text="{NAME}" pcbX="0mm" pcbY="0mm" anchorAlignment="center" fontSize="0.55mm"/>
        <courtyardoutline outline={[{ "x": -2.7391999999999825, "y": 3.653599999999983 }, { "x": 2.7645999999998594, "y": 3.653599999999983 }, { "x": 2.7645999999998594, "y": -3.7806000000000495 }, { "x": -2.7391999999999825, "y": -3.7806000000000495 }, { "x": -2.7391999999999825, "y": 3.653599999999983 }]}/>
      </footprint>} cadModel={{
            objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C2060769.obj?uuid=7abc64c95a1a4a04a4ef38f9097c870b",
            stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C2060769.step?uuid=7abc64c95a1a4a04a4ef38f9097c870b",
            pcbRotationOffset: 0,
            modelOriginPosition: { x: 0.000012700000070253736, y: 0, z: 0 },
        }} {...props}/>);
};