imrishabh18/corne-keyboard
The code defines and renders two surface-mount chip components with SMT pads, silkscreen outlines, and 3D CAD models (OBJ and STEP) for PCB assembly.
- Version
- 2.0.21
- License
- unset
- Stars
- 1
imports/NCP1117LPST33T3G/NCP1117LPST33T3G.tsx
import objPath from "./NCP1117LPST33T3G.obj"
import stepPath from "./NCP1117LPST33T3G.step"
import type { ChipProps } from "@tscircuit/props"
const pinLabels = {
pin1: ["pin1"],
pin2: ["VOUT"],
pin3: ["VIN"],
pin4: ["EP"]
} as const
export const NCP1117LPST33T3G = (props: ChipProps<typeof pinLabels>) => {
return (
<chip
pinLabels={pinLabels}
supplierPartNumbers={{
"jlcpcb": [
"C146799"
]
}}
manufacturerPartNumber="NCP1117LPST33T3G"
footprint={<footprint>
<smtpad portHints={["pin1"]} pcbX="2.8575mm" pcbY="-2.29997mm" width="2.4649938mm" height="1.0500106mm" shape="rect" />
<smtpad portHints={["pin2"]} pcbX="2.8575mm" pcbY="0mm" width="2.4649938mm" height="1.0500106mm" shape="rect" />
<smtpad portHints={["pin3"]} pcbX="2.8575mm" pcbY="2.29997mm" width="2.4649938mm" height="1.0500106mm" shape="rect" />
<smtpad portHints={["pin4"]} pcbX="-2.8575mm" pcbY="0mm" width="2.4649938mm" height="3.539998mm" shape="rect" />
<silkscreenpath route={[{"x":-1.3963904000000866,"y":-3.4012124000000767},{"x":-1.3963904000000866,"y":3.4012124000000767},{"x":1.396390399999973,"y":3.4012124000000767},{"x":1.396390399999973,"y":-3.4012124000000767},{"x":-1.3963904000000866,"y":-3.4012124000000767}]} />
<silkscreentext text="{NAME}" pcbX="0.1905mm" pcbY="4.4036mm" anchorAlignment="center" fontSize="1mm" />
<courtyardoutline outline={[{"x":-4.339400000000069,"y":3.653599999999983},{"x":4.720399999999927,"y":3.653599999999983},{"x":4.720399999999927,"y":-3.6535999999998694},{"x":-4.339400000000069,"y":-3.6535999999998694},{"x":-4.339400000000069,"y":3.653599999999983}]} />
</footprint>}
cadModel={{
objUrl: objPath,
stepUrl: stepPath,
pcbRotationOffset: 180,
modelOriginPosition: { x: 0.000012700000070253736, y: 0.000012700000070253736, z: -0.049394 },
}}
{...props}
/>
)
}