pixalynx/pixal-nfc-card
This code defines React components representing specific electronic hardware components—namely, a 100-ohm SMD resistor, a surface-mount LED, and a chip with labeled pins—each modeled with detailed footprints, 3D CAD models, and manufacturer part information for PCB design.
- Version
- 1.1.0
- License
- unset
- Stars
- 0
imports/ST25TN01K_AFH5.tsx
import type { ChipProps } from "@tscircuit/props"
const pinLabels = {
pin1: ["NC3"],
pin2: ["NC1"],
pin3: ["AC0"],
pin4: ["AC1"],
pin5: ["NC2"]
} as const
const pinAttributes = {
pin1: {doNotConnect: true},
pin2: {doNotConnect: true},
pin5: {doNotConnect: true}
} as const
export const ST25TN01K_AFH5 = (props: ChipProps<typeof pinLabels>) => {
return (
<chip
pinLabels={pinLabels}
pinAttributes={pinAttributes}
schHeight={0.6}
schPinArrangement={{ leftSide: { pins: [3, 4], direction: "top-to-bottom" }, rightSide: { pins: [1, 2, 5], direction: "top-to-bottom" } }}
supplierPartNumbers={{
"jlcpcb": [
"C3303589"
]
}}
manufacturerPartNumber="ST25TN01K-AFH5"
footprint={<footprint>
<smtpad portHints={["pin2"]} pcbX="0mm" pcbY="0mm" width="0.2mm" height="1.6mm" shape="rect" solderPasteMargin={0} />
<smtpad portHints={["pin5"]} pcbX="-0.4mm" pcbY="0.5mm" width="0.2mm" height="0.6mm" shape="rect" solderPasteMargin={0} />
<smtpad portHints={["pin4"]} pcbX="0.4mm" pcbY="0.5mm" width="0.2mm" height="0.6mm" shape="rect" solderPasteMargin={0} />
<smtpad portHints={["pin3"]} pcbX="0.4mm" pcbY="-0.5mm" width="0.2mm" height="0.6mm" shape="rect" solderPasteMargin={0} />
<smtpad portHints={["pin1"]} pcbX="-0.4mm" pcbY="-0.5mm" width="0.2mm" height="0.6mm" shape="rect" solderPasteMargin={0} />
{/* Pin 1 is at board (+13.90005,+0.5) for U1 rotation 180. */}
<silkscreencircle pcbX="-0.65mm" pcbY="-1.55mm" radius="0.2mm" strokeWidth="0.15mm" />
<courtyardoutline outline={[{"x":-1.0120000000000573,"y":1.2659999999999627},{"x":1.0119999999999436,"y":1.2659999999999627},{"x":1.0119999999999436,"y":-1.774000000000001},{"x":-1.0120000000000573,"y":-1.774000000000001},{"x":-1.0120000000000573,"y":1.2659999999999627}]} />
</footprint>}
cadModel={{
objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C3303589.obj?uuid=189ea70a213f482e9891f9d83f16ed14",
stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C3303589.step?uuid=189ea70a213f482e9891f9d83f16ed14",
pcbRotationOffset: 90,
modelOriginPosition: { x: 0.00013969999997698324, y: 0, z: -0.01 },
}}
{...props}
/>
)
}