imrishabh18/pcbgolf
These code snippets define detailed PCB footprints for various SMD components, through-hole connectors, and chips, specifying pad locations, shapes, silkscreen outlines, and mechanical outlines for physical placement on a circuit board.
- Version
- 1.4.3
- License
- unset
- Stars
- 0
imports/NCS20071SN2T1G.tsx
// Imported with tsci import --jlcpcb --use-exact-footprint C457774
export const C457774CadModel = {
objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C457774.obj?uuid=70abde00f3e942f8aa87eef7d43c43c0",
stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C457774.step?uuid=70abde00f3e942f8aa87eef7d43c43c0",
pcbRotationOffset: 0,
modelOriginPosition: { x: 0, y: 0.00012700000000620548, z: -0.17485 },
}
import type { ChipProps } from "@tscircuit/props"
const pinLabels = {
pin1: ["OUT"],
pin2: ["VSS"],
pin3: ["IN_POS"],
pin4: ["IN_NEG"],
pin5: ["VDD"]
} as const
const pinAttributes = {
pin2: {requiresGround: true},
pin5: {requiresPower: true}
} as const
export const NCS20071SN2T1G = (props: ChipProps<typeof pinLabels>) => {
return (
<chip
pinLabels={pinLabels}
pinAttributes={pinAttributes}
symbol={
<symbol>
<schematicpath points={[{"x":-0.4,"y":-0.4},{"x":0.4,"y":0},{"x":-0.4,"y":0.4},{"x":-0.4,"y":-0.4}]} strokeColor="#880000" />
<schematicpath points={[{"x":-0.32,"y":0.2},{"x":-0.2,"y":0.2}]} strokeColor="#880000" />
<schematicpath points={[{"x":-0.32,"y":-0.2},{"x":-0.2,"y":-0.2}]} strokeColor="#880000" />
<schematicpath points={[{"x":-0.26,"y":-0.14},{"x":-0.26,"y":-0.26}]} strokeColor="#880000" />
<schematicpath points={[{"x":0,"y":0.4},{"x":0,"y":0.2}]} strokeColor="#880000" />
<schematicpath points={[{"x":0,"y":-0.2},{"x":0,"y":-0.4}]} strokeColor="#880000" />
<port name="pin4" pinNumber={4} aliases={["IN_NEG"]} direction="left" schX={-0.8} schY={0.2} schStemLength={0.4} />
<port name="pin3" pinNumber={3} aliases={["IN_POS"]} direction="left" schX={-0.8} schY={-0.2} schStemLength={0.4} />
<port name="pin2" pinNumber={2} aliases={["VSS"]} direction="down" schX={0} schY={-0.8} schStemLength={0.4} />
<port name="pin1" pinNumber={1} aliases={["OUT"]} direction="right" schX={0.8} schY={0} schStemLength={0.4} />
<port name="pin5" pinNumber={5} aliases={["VDD"]} direction="up" schX={0} schY={0.8} schStemLength={0.4} />
</symbol>
}
supplierPartNumbers={{
"jlcpcb": [
"C457774"
]
}}
manufacturerPartNumber="NCS20071SN2T1G"
footprint={<footprint>
<smtpad portHints={["pin1"]} pcbX="-0.94996mm" pcbY="-1.200023mm" width="0.700024mm" height="0.999998mm" shape="rect" />
<smtpad portHints={["pin2"]} pcbX="0mm" pcbY="-1.200023mm" width="0.700024mm" height="0.999998mm" shape="rect" />
<smtpad portHints={["pin3"]} pcbX="0.94996mm" pcbY="-1.200023mm" width="0.700024mm" height="0.999998mm" shape="rect" />
<smtpad portHints={["pin4"]} pcbX="0.94996mm" pcbY="1.200023mm" width="0.700024mm" height="0.999998mm" shape="rect" />
<smtpad portHints={["pin5"]} pcbX="-0.94996mm" pcbY="1.200023mm" width="0.700024mm" height="0.999998mm" shape="rect" />
<silkscreenpath route={[{"x":-1.4801595999999932,"y":-0.812927000000002},{"x":-1.4985999999999962,"y":-0.812927000000002}]} />
<silkscreenpath route={[{"x":1.4985999999999962,"y":-0.812927000000002},{"x":1.4801596000000075,"y":-0.812927000000002}]} />
<silkscreenpath route={[{"x":1.4801596000000075,"y":0.8126729999999895},{"x":1.4985999999999962,"y":0.8126729999999895}]} />
<silkscreenpath route={[{"x":-0.41986199999999485,"y":0.8126729999999895},{"x":0.41986200000000906,"y":0.8126729999999895}]} />
<silkscreenpath route={[{"x":-1.4985999999999962,"y":0.8126729999999895},{"x":-1.4801595999999932,"y":0.8126729999999895}]} />
<silkscreenpath route={[{"x":1.4985999999999962,"y":0.8126729999999895},{"x":1.4985999999999962,"y":-0.812927000000002}]} />
<silkscreenpath route={[{"x":-1.4985999999999962,"y":-0.812927000000002},{"x":-1.4985999999999962,"y":0.8126729999999895}]} />
<silkscreencircle pcbX="-1.651mm" pcbY="-1.1176mm" radius="0.0999998mm" />
<silkscreentext text="{NAME}" pcbX="-0.127mm" pcbY="2.702181mm" anchorAlignment="center" fontSize="1mm" />
<courtyardoutline outline={[{"x":-2.002599999999987,"y":1.952180999999996},{"x":1.7486000000000104,"y":1.952180999999996},{"x":1.7486000000000104,"y":-2.0276190000000014},{"x":-2.002599999999987,"y":-2.0276190000000014},{"x":-2.002599999999987,"y":1.952180999999996}]} />
</footprint>}
cadModel={C457774CadModel}
{...props}
/>
)
}