imrishabh18/rp2040-motor-controller
An RP2040-based NEMA17 stepper-motor controller with USB-C programming and PD motor-power negotiation, DRV8825 dual H-bridge drive, current/temperature telemetry, protected power filtering, status RGB LED, buzzer alarm, and optional magnetic encoder.
- Version
- 1.0.41
- License
- unset
- Stars
- 3
imports/INA241A1IDDFR.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
// TI INA241x datasheet Table 5-1: pin 4 is reserved and MUST connect to GND.
// Override the imported EasyEDA NC attribute, which is incorrect here.
const pinAttributes = {
pin2: {requiresGround: true},
pin4: {requiresGround: true}
} as const
export const INA241A1IDDFR = (props: ChipProps<typeof pinLabels>) => {
return (
<chip
pinLabels={pinLabels}
pinAttributes={pinAttributes}
supplierPartNumbers={{
"jlcpcb": [
"C19712054"
]
}}
manufacturerPartNumber="INA241A1IDDFR"
footprint={<footprint>
<smtpad portHints={["pin1"]} pcbX="1.226058mm" pcbY="-0.975106mm" width="1.2519914mm" height="0.350012mm" radius="0.175006mm" shape="pill" />
<smtpad portHints={["pin2"]} pcbX="1.226058mm" pcbY="-0.32512mm" width="1.2519914mm" height="0.350012mm" radius="0.175006mm" shape="pill" />
<smtpad portHints={["pin3"]} pcbX="1.226058mm" pcbY="0.324866mm" width="1.2519914mm" height="0.350012mm" radius="0.175006mm" shape="pill" />
<smtpad portHints={["pin4"]} pcbX="1.226058mm" pcbY="0.975106mm" width="1.2519914mm" height="0.350012mm" radius="0.175006mm" shape="pill" />
<smtpad portHints={["pin8"]} pcbX="-1.226058mm" pcbY="-0.975106mm" width="1.2519914mm" height="0.350012mm" radius="0.175006mm" shape="pill" />
<smtpad portHints={["pin7"]} pcbX="-1.226058mm" pcbY="-0.32512mm" width="1.2519914mm" height="0.350012mm" radius="0.175006mm" shape="pill" />
<smtpad portHints={["pin6"]} pcbX="-1.226058mm" pcbY="0.324866mm" width="1.2519914mm" height="0.350012mm" radius="0.175006mm" shape="pill" />
<smtpad portHints={["pin5"]} pcbX="-1.226058mm" pcbY="0.975106mm" width="1.2519914mm" height="0.350012mm" radius="0.175006mm" shape="pill" />
<silkscreenpath route={[{"x":0.8099551999999903,"y":-1.3361669999999322},{"x":0.8099551999999903,"y":-1.4499590000000353},{"x":-0.8000492000001032,"y":-1.4499590000000353},{"x":-0.8000492000001032,"y":-1.3361669999999322}]} />
<silkscreenpath route={[{"x":-0.810006000000044,"y":1.3362432000001263},{"x":-0.810006000000044,"y":1.4499844000000621},{"x":0.7999984000000495,"y":1.4499844000000621},{"x":0.7999984000000495,"y":1.3362432000001263}]} />
<silkscreencircle pcbX="1.226058mm" pcbY="-1.609344mm" radius="0.150114mm" />
<silkscreentext text="{NAME}" pcbX="0.1397mm" pcbY="2.4478mm" anchorAlignment="center" fontSize="0.55mm" />
{/* TI DDF: 2.9 x 2.8 mm package. Imported pad span 3.704 x 2.3 mm; >=0.25 mm courtyard margin. */}
<courtyardrect width={4.25} height={3.6} />
</footprint>}
cadModel={{
objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C19712054.obj?uuid=7304035254c941188b587adb626783d8",
stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C19712054.step?uuid=7304035254c941188b587adb626783d8",
pcbRotationOffset: 180,
modelOriginPosition: { x: 0, y: -0.000012699999956566899, z: -0.049083 },
}}
{...props}
/>
)
}