abse/boostxl-uln2003

This code defines a React component that models a through-hole or surface-mount LED with specified pin labels, footprint, silkscreen, and 3D CAD model for PCB layout.

Version
1.0.5
License
unset
Stars
0

imports/CSD17571Q2_TP/CSD17571Q2_TP.tsx

import objPath from "./CSD17571Q2_TP.obj"
import type { ChipProps } from "@tscircuit/props"

const pinLabels = {
  pin1: ["D1"],
  pin2: ["D2"],
  pin3: ["G"],
  pin4: ["S1"],
  pin5: ["D3"],
  pin6: ["D4"],
  pin7: ["D5"],
  pin8: ["S2"]
} as const

export const CSD17571Q2_TP = (props: ChipProps<typeof pinLabels>) => {
  return (
    <chip
      pinLabels={pinLabels}
      symbol={
        <symbol>
          <port name="pin8" pinNumber={8} aliases={["S2","S"]} direction="down" schX={0} schY={-5.08} schStemLength={2.54} />
          <port name="pin7" pinNumber={7} aliases={["D5","D"]} direction="up" schX={7.62} schY={5.08} schStemLength={2.54} />
          <port name="pin6" pinNumber={6} aliases={["D4","D"]} direction="up" schX={5.08} schY={5.08} schStemLength={2.54} />
          <port name="pin5" pinNumber={5} aliases={["D3","D"]} direction="up" schX={2.54} schY={5.08} schStemLength={2.54} />
          <port name="pin2" pinNumber={2} aliases={["D2","D"]} direction="up" schX={0} schY={5.08} schStemLength={2.54} />
          <port name="pin4" pinNumber={4} aliases={["S1","S"]} direction="down" schX={-2.54} schY={-5.08} schStemLength={2.54} />
          <port name="pin3" pinNumber={3} aliases={["G"]} direction="left" schX={-10.16} schY={0} schStemLength={2.54} />
          <port name="pin1" pinNumber={1} aliases={["D1","D"]} direction="up" schX={-2.54} schY={5.08} schStemLength={2.54} />
          <schematicpath points={[{"x":1.016,"y":0.508},{"x":0.508,"y":0.508},{"x":-0.508,"y":0.508},{"x":-1.016,"y":0.508}]} strokeWidth={0.254} strokeColor="#880000" />
          <schematicpath points={[{"x":-7.62,"y":0},{"x":-5.588,"y":0}]} strokeWidth={0.254} strokeColor="#880000" />
          <schematicpath points={[{"x":-5.08,"y":-2.286},{"x":-5.08,"y":-1.27}]} strokeWidth={0.254} strokeColor="#880000" />
          <schematicpath points={[{"x":-5.08,"y":-0.508},{"x":-5.08,"y":0.508}]} strokeWidth={0.254} strokeColor="#880000" />
          <schematicpath points={[{"x":-5.08,"y":2.286},{"x":-5.08,"y":1.27}]} strokeWidth={0.254} strokeColor="#880000" />
          <schematicpath points={[{"x":-5.588,"y":2.286},{"x":-5.588,"y":-2.286}]} strokeWidth={0.254} strokeColor="#880000" />
          <schematicpath points={[{"x":-2.54,"y":-1.778},{"x":-5.08,"y":-1.778}]} strokeWidth={0.254} strokeColor="#880000" />
          <schematicpath points={[{"x":-5.08,"y":0},{"x":-2.54,"y":0},{"x":-2.54,"y":-2.54},{"x":0,"y":-2.54},{"x":0,"y":-0.762}]} strokeWidth={0.254} strokeColor="#880000" />
          <schematicpath points={[{"x":-5.08,"y":1.778},{"x":-2.54,"y":1.778},{"x":-2.54,"y":2.54},{"x":7.62,"y":2.54},{"x":0,"y":2.54},{"x":0,"y":0.508}]} strokeWidth={0.254} strokeColor="#880000" />
          <schematicpath points={[{"x":0,"y":0.508},{"x":-0.762,"y":-0.762},{"x":0.762,"y":-0.762},{"x":0,"y":0.508}]} strokeWidth={0.254} strokeColor="#880000" isFilled fillColor="#880000" />
          <schematicpath points={[{"x":-5.08,"y":0},{"x":-3.556,"y":-0.508},{"x":-3.556,"y":0.508},{"x":-5.08,"y":0}]} strokeWidth={0.254} strokeColor="#880000" isFilled fillColor="#880000" />
        </symbol>
      }
      supplierPartNumbers={{
  "jlcpcb": [
    "C50314239"
  ]
}}
      manufacturerPartNumber="CSD17571Q2_TP"
      footprint={<footprint>
        <smtpad portHints={["pin1"]} pcbX="-0.65500885mm" pcbY="-0.999998mm" width="0.350012mm" height="0.499999mm" shape="rect" />
<smtpad portHints={["pin2"]} pcbX="-0.00502285mm" pcbY="-0.999998mm" width="0.350012mm" height="0.499999mm" shape="rect" />
<smtpad portHints={["pin3"]} pcbX="0.64496315mm" pcbY="-0.999998mm" width="0.350012mm" height="0.499999mm" shape="rect" />
<smtpad portHints={["pin4"]} pcbX="0.64496315mm" pcbY="0.999998mm" width="0.350012mm" height="0.499999mm" shape="rect" />
<smtpad portHints={["pin5"]} pcbX="-0.00502285mm" pcbY="0.999998mm" width="0.350012mm" height="0.499999mm" shape="rect" />
<smtpad portHints={["pin6"]} pcbX="-0.65500885mm" pcbY="0.999998mm" width="0.350012mm" height="0.499999mm" shape="rect" />
<smtpad portHints={["pin8"]} pcbX="0.68001515mm" pcbY="0mm" width="0.2999994mm" height="0.850011mm" shape="rect" />
<smtpad portHints={["pin7"]} pcbX="-0.29991685mm" pcbY="-0.018034mm" width="0.9500108mm" height="0.999998mm" shape="rect" />
<silkscreenpath route={[{"x":1.0001059500000338,"y":-0.999998000000005},{"x":1.044987750000132,"y":-0.999998000000005}]} />
<silkscreenpath route={[{"x":-1.0550080499998558,"y":-0.999998000000005},{"x":-1.010151649999898,"y":-0.999998000000005}]} />
<silkscreenpath route={[{"x":1.0001313500001743,"y":0.999998000000005},{"x":1.044987750000132,"y":0.999998000000005}]} />
<silkscreenpath route={[{"x":-1.0550080499998558,"y":0.999998000000005},{"x":-1.010151649999898,"y":0.999998000000005}]} />
<silkscreenpath route={[{"x":-1.0550080499998558,"y":-0.999998000000005},{"x":-1.0550080499998558,"y":0.999998000000005}]} />
<silkscreenpath route={[{"x":1.044987750000132,"y":0.999998000000005},{"x":1.044987750000132,"y":-0.999998000000005}]} />
<silkscreenpath route={[{"x":-1.0291508499999509,"y":-1.2999720000000252},{"x":-1.031738647196562,"y":-1.3196282711994627},{"x":-1.0393256846841723,"y":-1.3379449999999906},{"x":-1.0513949183958857,"y":-1.3536739316040212},{"x":-1.0671238499999163,"y":-1.3657431653157346},{"x":-1.0854405788004442,"y":-1.373330202803345},{"x":-1.1050968499998817,"y":-1.375917999999956},{"x":-1.1247531211992055,"y":-1.373330202803345},{"x":-1.1430698499999608,"y":-1.3657431653157346},{"x":-1.158798781603764,"y":-1.3536739316040212},{"x":-1.1708680153157047,"y":-1.3379449999999906},{"x":-1.1784550528032014,"y":-1.3196282711994627},{"x":-1.1810428499998125,"y":-1.2999720000000252},{"x":-1.1784550528032014,"y":-1.2803157288007014},{"x":-1.1708680153157047,"y":-1.2619989999999461},{"x":-1.158798781603764,"y":-1.246270068396143},{"x":-1.1430698499999608,"y":-1.2342008346842022},{"x":-1.1247531211992055,"y":-1.2266137971967055},{"x":-1.1050968499998817,"y":-1.2240260000000944},{"x":-1.0854405788004442,"y":-1.2266137971967055},{"x":-1.0671238499999163,"y":-1.2342008346842022},{"x":-1.0513949183958857,"y":-1.246270068396143},{"x":-1.0393256846841723,"y":-1.2619989999999461},{"x":-1.031738647196562,"y":-1.2803157288007014},{"x":-1.0291508499999509,"y":-1.2999720000000252}]} />
<silkscreentext text="{NAME}" pcbX="-0.06369685mm" pcbY="2.251966mm" anchorAlignment="center" fontSize="1mm" />
<courtyardoutline outline={[{"x":-1.4312968499998533,"y":1.5019660000000385},{"x":1.3039031500002238,"y":1.5019660000000385},{"x":1.3039031500002238,"y":-1.6142340000000104},{"x":-1.4312968499998533,"y":-1.6142340000000104},{"x":-1.4312968499998533,"y":1.5019660000000385}]} />
      </footprint>}
      cadModel={{
        objUrl: objPath,
        pcbRotationOffset: 0,
        modelOriginPosition: { x: 0.007486649999918882, y: 0, z: -0.02 },
      }}
      {...props}
    />
  )
}