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

// Imported with tsci import --jlcpcb --use-exact-footprint C1880390
export const C1880390CadModel = {
        objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C1880390.obj?uuid=222e8593009c495bb3d3af0c08fa5e6a",
        stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C1880390.step?uuid=222e8593009c495bb3d3af0c08fa5e6a",
        pcbRotationOffset: 90,
        modelOriginPosition: { x: 0, y: 0.000012700000013410317, z: 0.050795 },
      }

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

const pinLabels = {
  pin1: ["GND"],
  pin2: ["SW"],
  pin3: ["VIN"],
  pin4: ["FB"],
  pin5: ["EN"],
  pin6: ["BST"]
} as const

const pinAttributes = {
  pin1: {requiresGround: true},
  pin3: {requiresPower: true}
} as const

export const AP62300WU_7 = (props: ChipProps<typeof pinLabels>) => {
  return (
    <chip
      pinLabels={pinLabels}
      pinAttributes={pinAttributes}
      supplierPartNumbers={{
  "jlcpcb": [
    "C1880390"
  ]
}}
      manufacturerPartNumber="AP62300WU-7"
      footprint={<footprint>
        <smtpad portHints={["pin6"]} pcbX="-0.94996mm" pcbY="1.1999976mm" width="0.5500116mm" height="1.1999976mm" shape="rect" />
<smtpad portHints={["pin4"]} pcbX="0.94996mm" pcbY="1.1999976mm" width="0.5500116mm" height="1.1999976mm" shape="rect" />
<smtpad portHints={["pin3"]} pcbX="0.94996mm" pcbY="-1.1999976mm" width="0.5500116mm" height="1.1999976mm" shape="rect" />
<smtpad portHints={["pin2"]} pcbX="0mm" pcbY="-1.1999976mm" width="0.5500116mm" height="1.1999976mm" shape="rect" />
<smtpad portHints={["pin1"]} pcbX="-0.94996mm" pcbY="-1.1999976mm" width="0.5500116mm" height="1.1999976mm" shape="rect" />
<smtpad portHints={["pin5"]} pcbX="0mm" pcbY="1.1999976mm" width="0.5500116mm" height="1.1999976mm" shape="rect" />
<silkscreenpath route={[{"x":-1.4999969999999934,"y":-0.7999984000000069},{"x":-1.4999969999999934,"y":0.7999984000000069}]} />
<silkscreenpath route={[{"x":1.4999970000000076,"y":0.7999984000000069},{"x":1.4999970000000076,"y":-0.7999984000000069}]} />
<silkscreencircle pcbX="-0.975106mm" pcbY="-2.124964mm" radius="0.127mm" />
<silkscreentext text="{NAME}" pcbX="0mm" pcbY="2.8034mm" anchorAlignment="center" fontSize="1mm" />
<courtyardoutline outline={[{"x":-1.7485999999999962,"y":2.0534000000000106},{"x":1.7486000000000104,"y":2.0534000000000106},{"x":1.7486000000000104,"y":-2.5105999999999824},{"x":-1.7485999999999962,"y":-2.5105999999999824},{"x":-1.7485999999999962,"y":2.0534000000000106}]} />
      </footprint>}
      cadModel={C1880390CadModel}
      {...props}
    />
  )
}