techmannih/circuit
This code renders a 50mm by 50mm circuit board with a Texas Instruments TXS0104EQPWRQ1 level translator component placed at specified coordinates.
- Version
- 0.0.1
- License
- unset
- Stars
- 0
TXS0104EQPWRQ1.tsx
import type { ChipProps } from "@tscircuit/props"
const pinLabels = {
pin1: ["VCCA"],
pin2: ["A1"],
pin3: ["A2"],
pin4: ["A3"],
pin5: ["A4"],
pin6: ["NC1"],
pin7: ["GND"],
pin8: ["OE"],
pin9: ["NC2"],
pin10: ["B4"],
pin11: ["B3"],
pin12: ["B2"],
pin13: ["B1"],
pin14: ["VCCB"]
} as const
export const TXS0104EQPWRQ1 = (props: ChipProps<typeof pinLabels>) => {
return (
<chip
pinLabels={pinLabels}
supplierPartNumbers={{
"jlcpcb": [
"C2652953"
]
}}
manufacturerPartNumber="TXS0104EQPWRQ1"
footprint={<footprint>
<smtpad portHints={["pin1"]} pcbX="-2.7999690000000044mm" pcbY="1.9499579999999952mm" width="1.6999966mm" height="0.39999919999999994mm" shape="rect" />
<smtpad portHints={["pin2"]} pcbX="-2.7999690000000044mm" pcbY="1.299972000000011mm" width="1.6999966mm" height="0.39999919999999994mm" shape="rect" />
<smtpad portHints={["pin3"]} pcbX="-2.7999690000000044mm" pcbY="0.6499859999999984mm" width="1.6999966mm" height="0.39999919999999994mm" shape="rect" />
<smtpad portHints={["pin4"]} pcbX="-2.7999690000000044mm" pcbY="1.4210854715202004e-14mm" width="1.6999966mm" height="0.39999919999999994mm" shape="rect" />
<smtpad portHints={["pin5"]} pcbX="-2.7999690000000044mm" pcbY="-0.6499859999999984mm" width="1.6999966mm" height="0.39999919999999994mm" shape="rect" />
<smtpad portHints={["pin6"]} pcbX="-2.7999690000000044mm" pcbY="-1.299972000000011mm" width="1.6999966mm" height="0.39999919999999994mm" shape="rect" />
<smtpad portHints={["pin7"]} pcbX="-2.7999690000000044mm" pcbY="-1.9499579999999952mm" width="1.6999966mm" height="0.39999919999999994mm" shape="rect" />
<smtpad portHints={["pin8"]} pcbX="2.79996899999999mm" pcbY="-1.9499579999999952mm" width="1.6999966mm" height="0.39999919999999994mm" shape="rect" />
<smtpad portHints={["pin9"]} pcbX="2.79996899999999mm" pcbY="-1.299972000000011mm" width="1.6999966mm" height="0.39999919999999994mm" shape="rect" />
<smtpad portHints={["pin10"]} pcbX="2.79996899999999mm" pcbY="-0.6499859999999984mm" width="1.6999966mm" height="0.39999919999999994mm" shape="rect" />
<smtpad portHints={["pin11"]} pcbX="2.79996899999999mm" pcbY="1.4210854715202004e-14mm" width="1.6999966mm" height="0.39999919999999994mm" shape="rect" />
<smtpad portHints={["pin12"]} pcbX="2.79996899999999mm" pcbY="0.6499859999999984mm" width="1.6999966mm" height="0.39999919999999994mm" shape="rect" />
<smtpad portHints={["pin13"]} pcbX="2.79996899999999mm" pcbY="1.299972000000011mm" width="1.6999966mm" height="0.39999919999999994mm" shape="rect" />
<smtpad portHints={["pin14"]} pcbX="2.79996899999999mm" pcbY="1.9499579999999952mm" width="1.6999966mm" height="0.39999919999999994mm" shape="rect" />
<silkscreenpath route={[{ "x": -1.60014919999999, "y": 2.514574599999989 }, { "x": -0.6857492000000036, "y": 2.514574599999989 }]} />
<silkscreenpath route={[{ "x": 0.6858508000000114, "y": 2.514574599999989 }, { "x": 1.6002507999999978, "y": 2.514574599999989 }]} />
<silkscreenpath route={[{ "x": 2.2500590000000074, "y": 2.4999696000000142 }, { "x": 2.2500590000000074, "y": 2.3843233999999995 }]} />
<silkscreenpath route={[{ "x": 2.2500590000000074, "y": -2.3843741999999963 }, { "x": 2.2500590000000074, "y": -2.500020399999997 }, { "x": -2.2499573999999996, "y": -2.500020399999997 }, { "x": -2.2499573999999996, "y": -2.3843741999999963 }]} />
<silkscreenpath route={[{ "x": -2.2499573999999996, "y": 2.3843233999999995 }, { "x": -2.2499573999999996, "y": 2.4999696000000142 }]} />
<silkscreenpath route={[{ "x": 1.6002507999999978, "y": 2.514574599999989 }, { "x": 2.2500590000000074, "y": 2.514574599999989 }]} />
<silkscreenpath route={[{ "x": -1.60014919999999, "y": 2.514574599999989 }, { "x": -2.2499573999999996, "y": 2.514574599999989 }]} />
<silkscreenpath route={[{ "x": 0.6858508000000114, "y": 2.514574599999989 }, { "x": -0.6857492000000036, "y": 2.514574599999989 }]} />
</footprint>}
cadModel={{
objUrl: "https://modelcdn.tscircuit.com/easyeda_models/download?uuid=5377177da492449fa1a3111d646cac17&pn=C2652953",
rotationOffset: { x: 0, y: 0, z: 0 },
positionOffset: { x: 0.00005079999999679785, y: -0.000025399999998398926, z: -1.3499575999999933 },
}}
{...props}
/>
)
}