imrishabh18/pcbgolf

This code defines detailed PCB footprints for various electronic components (such as resistors, capacitors, connectors, ICs, LEDs, and via/hole patterns), as well as associated metadata (pin mappings, CAD models, labels) for a circuit design, enabling precise rendering and integration into a PCB layout in a React-based schematic editor.

Version
1.4.1
License
unset
Stars
0

imports/TPS25944ARVCR.tsx

// Imported with tsci import --jlcpcb --use-exact-footprint C140313
export const C140313CadModel = {
        objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C140313.obj?uuid=b92c5708b0b84dc4a412331b9c6217c9",
        stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C140313.step?uuid=b92c5708b0b84dc4a412331b9c6217c9",
        pcbRotationOffset: 0,
        modelOriginPosition: { x: 0.00012700000002041634, y: 0.0000762000000804619, z: 0 },
      }

import type { ChipProps } from "@tscircuit/props"

const pinLabels = {
  pin1: ["DMODE"],
  pin2: ["PGOOD"],
  pin3: ["PGTH"],
  pin4: ["OUT3"],
  pin5: ["OUT2"],
  pin6: ["OUT1"],
  pin7: ["OUT5"],
  pin8: ["OUT4"],
  pin9: ["IN5"],
  pin10: ["IN4"],
  pin11: ["IN3"],
  pin12: ["IN2"],
  pin13: ["IN1"],
  pin14: ["EN"],
  pin15: ["OVP"],
  pin16: ["GND"],
  pin17: ["ILIM"],
  pin18: ["dVdT"],
  pin19: ["IMON"],
  pin20: ["N_FLT"],
  pin21: ["EP"]
} as const

const pinAttributes = {
  pin16: {requiresGround: true}
} as const

export const TPS25944ARVCR = (props: ChipProps<typeof pinLabels>) => {
  return (
    <chip
      pinLabels={pinLabels}
      pinAttributes={pinAttributes}
      supplierPartNumbers={{
  "jlcpcb": [
    "C140313"
  ]
}}
      manufacturerPartNumber="TPS25944ARVCR"
      footprint={<footprint>
        <smtpad portHints={["pin21"]} pcbX="0mm" pcbY="-0.000127mm" width="2.5999948mm" height="1.5999968mm" shape="rect" />
<smtpad portHints={["pin16"]} pcbX="-1.249934mm" pcbY="1.499997mm" width="0.2999994mm" height="0.8999982mm" radius="0.1499997mm" shape="pill" />
<smtpad portHints={["pin15"]} pcbX="-0.750062mm" pcbY="1.499997mm" width="0.2999994mm" height="0.8999982mm" radius="0.1499997mm" shape="pill" />
<smtpad portHints={["pin14"]} pcbX="-0.249936mm" pcbY="1.499997mm" width="0.2999994mm" height="0.8999982mm" radius="0.1499997mm" shape="pill" />
<smtpad portHints={["pin13"]} pcbX="0.249936mm" pcbY="1.499997mm" width="0.2999994mm" height="0.8999982mm" radius="0.1499997mm" shape="pill" />
<smtpad portHints={["pin12"]} pcbX="0.750062mm" pcbY="1.499997mm" width="0.2999994mm" height="0.8999982mm" radius="0.1499997mm" shape="pill" />
<smtpad portHints={["pin11"]} pcbX="1.249934mm" pcbY="1.499997mm" width="0.2999994mm" height="0.8999982mm" radius="0.1499997mm" shape="pill" />
<smtpad portHints={["pin6"]} pcbX="1.249934mm" pcbY="-1.499997mm" width="0.2999994mm" height="0.8999982mm" radius="0.1499997mm" shape="pill" />
<smtpad portHints={["pin5"]} pcbX="0.750062mm" pcbY="-1.499997mm" width="0.2999994mm" height="0.8999982mm" radius="0.1499997mm" shape="pill" />
<smtpad portHints={["pin4"]} pcbX="0.249936mm" pcbY="-1.499997mm" width="0.2999994mm" height="0.8999982mm" radius="0.1499997mm" shape="pill" />
<smtpad portHints={["pin3"]} pcbX="-0.249936mm" pcbY="-1.499997mm" width="0.2999994mm" height="0.8999982mm" radius="0.1499997mm" shape="pill" />
<smtpad portHints={["pin2"]} pcbX="-0.750062mm" pcbY="-1.499997mm" width="0.2999994mm" height="0.8999982mm" radius="0.1499997mm" shape="pill" />
<smtpad portHints={["pin1"]} pcbX="-1.249934mm" pcbY="-1.499997mm" width="0.2999994mm" height="0.8999982mm" radius="0.1499997mm" shape="pill" />
<smtpad portHints={["pin20"]} pcbX="-1.999996mm" pcbY="-0.749935mm" width="0.8999982mm" height="0.2999994mm" radius="0.1499997mm" shape="pill" />
<smtpad portHints={["pin19"]} pcbX="-1.999996mm" pcbY="-0.250063mm" width="0.8999982mm" height="0.2999994mm" radius="0.1499997mm" shape="pill" />
<smtpad portHints={["pin18"]} pcbX="-1.999996mm" pcbY="0.250063mm" width="0.8999982mm" height="0.2999994mm" radius="0.1499997mm" shape="pill" />
<smtpad portHints={["pin17"]} pcbX="-1.999996mm" pcbY="0.749935mm" width="0.8999982mm" height="0.2999994mm" radius="0.1499997mm" shape="pill" />
<smtpad portHints={["pin10"]} pcbX="1.999996mm" pcbY="0.749935mm" width="0.8999982mm" height="0.2999994mm" radius="0.1499997mm" shape="pill" />
<smtpad portHints={["pin9"]} pcbX="1.999996mm" pcbY="0.250063mm" width="0.8999982mm" height="0.2999994mm" radius="0.1499997mm" shape="pill" />
<smtpad portHints={["pin8"]} pcbX="1.999996mm" pcbY="-0.250063mm" width="0.8999982mm" height="0.2999994mm" radius="0.1499997mm" shape="pill" />
<smtpad portHints={["pin7"]} pcbX="1.999996mm" pcbY="-0.749935mm" width="0.8999982mm" height="0.2999994mm" radius="0.1499997mm" shape="pill" />
<silkscreenpath route={[{"x":1.6509745999999268,"y":-1.7779745999999932},{"x":2.2859745999999177,"y":-1.7779745999999932},{"x":2.2859745999999177,"y":-1.1429746000000023}]} />
<silkscreenpath route={[{"x":1.6509745999999268,"y":1.7780253999999331},{"x":2.2859745999999177,"y":1.7780253999999331},{"x":2.2859745999999177,"y":1.143025400000056}]} />
<silkscreenpath route={[{"x":-2.2860253999999713,"y":1.143025400000056},{"x":-2.2860253999999713,"y":1.7780253999999331},{"x":-1.6510254000000941,"y":1.7780253999999331}]} />
<silkscreenpath route={[{"x":-1.6510254000000941,"y":-1.7779745999999932},{"x":-1.9050253999999995,"y":-1.7779745999999932},{"x":-2.2860253999999713,"y":-1.3969746000000214},{"x":-2.2860253999999713,"y":-1.1429746000000023}]} />
<silkscreencircle pcbX="-1.800098mm" pcbY="-2.200021mm" radius="0.100076mm" />
<silkscreentext text="{NAME}" pcbX="0.0127mm" pcbY="2.955927mm" anchorAlignment="center" fontSize="1mm" />
<courtyardoutline outline={[{"x":-2.6884000000000015,"y":2.205926999999974},{"x":2.713799999999992,"y":2.205926999999974},{"x":2.713799999999992,"y":-2.5358730000001515},{"x":-2.6884000000000015,"y":-2.5358730000001515},{"x":-2.6884000000000015,"y":2.205926999999974}]} />
      </footprint>}
      cadModel={C140313CadModel}
      {...props}
    />
  )
}