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/ULN2803ADWMRG/ULN2803ADWMRG.tsx

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

const pinLabels = {
  pin1: ["I1"],
  pin2: ["I2"],
  pin3: ["I3"],
  pin4: ["I4"],
  pin5: ["I5"],
  pin6: ["I6"],
  pin7: ["I7"],
  pin8: ["I8"],
  pin9: ["GND"],
  pin10: ["COM"],
  pin11: ["O8"],
  pin12: ["O7"],
  pin13: ["O6"],
  pin14: ["O5"],
  pin15: ["O4"],
  pin16: ["O3"],
  pin17: ["O2"],
  pin18: ["O1"]
} as const

export const ULN2803ADWMRG = (props: ChipProps<typeof pinLabels>) => {
  return (
    <chip
      pinLabels={pinLabels}
      supplierPartNumbers={{
  "jlcpcb": [
    "C2977078"
  ]
}}
      manufacturerPartNumber="ULN2803ADWMRG"
      footprint={<footprint>
        <smtpad portHints={["pin1"]} pcbX="-5.08mm" pcbY="-4.60502mm" width="0.5599938mm" height="2.310003mm" radius="0.2799969mm" shape="pill" />
<smtpad portHints={["pin2"]} pcbX="-3.81mm" pcbY="-4.60502mm" width="0.5599938mm" height="2.310003mm" radius="0.2799969mm" shape="pill" />
<smtpad portHints={["pin3"]} pcbX="-2.54mm" pcbY="-4.60502mm" width="0.5599938mm" height="2.310003mm" radius="0.2799969mm" shape="pill" />
<smtpad portHints={["pin4"]} pcbX="-1.27mm" pcbY="-4.60502mm" width="0.5599938mm" height="2.310003mm" radius="0.2799969mm" shape="pill" />
<smtpad portHints={["pin5"]} pcbX="0mm" pcbY="-4.60502mm" width="0.5599938mm" height="2.310003mm" radius="0.2799969mm" shape="pill" />
<smtpad portHints={["pin6"]} pcbX="1.27mm" pcbY="-4.60502mm" width="0.5599938mm" height="2.310003mm" radius="0.2799969mm" shape="pill" />
<smtpad portHints={["pin7"]} pcbX="2.54mm" pcbY="-4.60502mm" width="0.5599938mm" height="2.310003mm" radius="0.2799969mm" shape="pill" />
<smtpad portHints={["pin8"]} pcbX="3.81mm" pcbY="-4.60502mm" width="0.5599938mm" height="2.310003mm" radius="0.2799969mm" shape="pill" />
<smtpad portHints={["pin9"]} pcbX="5.08mm" pcbY="-4.60502mm" width="0.5599938mm" height="2.310003mm" radius="0.2799969mm" shape="pill" />
<smtpad portHints={["pin10"]} pcbX="5.08mm" pcbY="4.60502mm" width="0.5599938mm" height="2.310003mm" radius="0.2799969mm" shape="pill" />
<smtpad portHints={["pin11"]} pcbX="3.81mm" pcbY="4.60502mm" width="0.5599938mm" height="2.310003mm" radius="0.2799969mm" shape="pill" />
<smtpad portHints={["pin12"]} pcbX="2.54mm" pcbY="4.60502mm" width="0.5599938mm" height="2.310003mm" radius="0.2799969mm" shape="pill" />
<smtpad portHints={["pin13"]} pcbX="1.27mm" pcbY="4.60502mm" width="0.5599938mm" height="2.310003mm" radius="0.2799969mm" shape="pill" />
<smtpad portHints={["pin14"]} pcbX="0mm" pcbY="4.60502mm" width="0.5599938mm" height="2.310003mm" radius="0.2799969mm" shape="pill" />
<smtpad portHints={["pin15"]} pcbX="-1.27mm" pcbY="4.60502mm" width="0.5599938mm" height="2.310003mm" radius="0.2799969mm" shape="pill" />
<smtpad portHints={["pin16"]} pcbX="-2.54mm" pcbY="4.60502mm" width="0.5599938mm" height="2.310003mm" radius="0.2799969mm" shape="pill" />
<smtpad portHints={["pin17"]} pcbX="-3.81mm" pcbY="4.60502mm" width="0.5599938mm" height="2.310003mm" radius="0.2799969mm" shape="pill" />
<smtpad portHints={["pin18"]} pcbX="-5.08mm" pcbY="4.60502mm" width="0.5599938mm" height="2.310003mm" radius="0.2799969mm" shape="pill" />
<silkscreenpath route={[{"x":-5.801182199999985,"y":-3.1452058000000136},{"x":-5.801182199999985,"y":3.145180400000001},{"x":5.8011821999999995,"y":3.145180400000001},{"x":5.8011821999999995,"y":-3.1452058000000136},{"x":-5.801182199999985,"y":-3.1452058000000136}]} />
<silkscreenpath route={[{"x":-5.769102000000004,"y":-4.572000000000003},{"x":-5.775913359176471,"y":-4.623737409477911},{"x":-5.79588325383429,"y":-4.671949000000012},{"x":-5.827650768654365,"y":-4.7133492313456316},{"x":-5.869050999999999,"y":-4.7451167461657064},{"x":-5.9172625905221,"y":-4.765086640823526},{"x":-5.968999999999994,"y":-4.771897999999993},{"x":-6.020737409477903,"y":-4.765086640823526},{"x":-6.0689490000000035,"y":-4.7451167461657064},{"x":-6.110349231345637,"y":-4.7133492313456316},{"x":-6.142116746165712,"y":-4.671949000000012},{"x":-6.1620866408235315,"y":-4.623737409477911},{"x":-6.1688979999999844,"y":-4.572000000000003},{"x":-6.1620866408235315,"y":-4.520262590522094},{"x":-6.142116746165712,"y":-4.472050999999993},{"x":-6.110349231345637,"y":-4.430650768654374},{"x":-6.0689490000000035,"y":-4.398883253834299},{"x":-6.020737409477903,"y":-4.3789133591764795},{"x":-5.968999999999994,"y":-4.372102000000012},{"x":-5.9172625905221,"y":-4.3789133591764795},{"x":-5.869050999999999,"y":-4.398883253834299},{"x":-5.827650768654365,"y":-4.430650768654374},{"x":-5.79588325383429,"y":-4.472050999999993},{"x":-5.775913359176471,"y":-4.520262590522094},{"x":-5.769102000000004,"y":-4.572000000000003}]} />
<silkscreenpath route={[{"x":-5.007102000000003,"y":-2.5400000000000063},{"x":-5.01391335917647,"y":-2.591737409477915},{"x":-5.03388325383429,"y":-2.6399490000000156},{"x":-5.065650768654365,"y":-2.681349231345635},{"x":-5.1070509999999985,"y":-2.713116746165724},{"x":-5.155262590522099,"y":-2.7330866408235295},{"x":-5.206999999999994,"y":-2.7398979999999966},{"x":-5.258737409477902,"y":-2.7330866408235295},{"x":-5.306949000000003,"y":-2.713116746165724},{"x":-5.348349231345637,"y":-2.681349231345635},{"x":-5.380116746165712,"y":-2.6399490000000156},{"x":-5.400086640823531,"y":-2.591737409477915},{"x":-5.406897999999984,"y":-2.5400000000000063},{"x":-5.400086640823531,"y":-2.4882625905220976},{"x":-5.380116746165712,"y":-2.440050999999997},{"x":-5.348349231345637,"y":-2.3986507686543774},{"x":-5.306949000000003,"y":-2.3668832538343025},{"x":-5.258737409477902,"y":-2.346913359176483},{"x":-5.206999999999994,"y":-2.340102000000016},{"x":-5.155262590522099,"y":-2.346913359176483},{"x":-5.1070509999999985,"y":-2.3668832538343025},{"x":-5.065650768654365,"y":-2.3986507686543774},{"x":-5.03388325383429,"y":-2.440050999999997},{"x":-5.01391335917647,"y":-2.4882625905220976},{"x":-5.007102000000003,"y":-2.5400000000000063}]} />
<silkscreentext text="{NAME}" pcbX="-0.1905mm" pcbY="6.4864mm" anchorAlignment="center" fontSize="1mm" />
<courtyardoutline outline={[{"x":-6.422200000000004,"y":5.736399999999989},{"x":6.0412000000000035,"y":5.736399999999989},{"x":6.0412000000000035,"y":-5.711000000000013},{"x":-6.422200000000004,"y":-5.711000000000013},{"x":-6.422200000000004,"y":5.736399999999989}]} />
      </footprint>}
      cadModel={{
        objUrl: objPath,
        pcbRotationOffset: 0,
        modelOriginPosition: { x: -0.000012700000013410317, y: -0.000012699999984988608, z: -1.2 },
      }}
      {...props}
    />
  )
}