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

// Imported with tsci import --jlcpcb --use-exact-footprint C1985412
export const C1985412CadModel = {
        objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C1985412.obj?uuid=02485e56ba8d4732a26526d2983fc729",
        stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C1985412.step?uuid=02485e56ba8d4732a26526d2983fc729",
        pcbRotationOffset: 0,
        modelOriginPosition: { x: 0, y: -0.000012700000070253736, z: 0 },
      }

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

const pinLabels = {
  pin1: ["OSC1"],
  pin2: ["GND1"],
  pin3: ["OSC2"],
  pin4: ["GND2"]
} as const

const pinAttributes = {
  pin2: {requiresGround: true},
  pin4: {requiresGround: true}
} as const

export const ABM8AIG_25_000MHZ_12_2Z_T3 = (props: ChipProps<typeof pinLabels>) => {
  return (
    <chip
      pinLabels={pinLabels}
      pinAttributes={pinAttributes}
      symbol={
        <symbol>
          <port name="pin3" pinNumber={3} aliases={["OSC2"]} direction="right" schX={0.6} schY={0.2} schStemLength={0.2} />
          <port name="pin1" pinNumber={1} aliases={["OSC1"]} direction="left" schX={-0.6} schY={-0.2} schStemLength={0.2} />
          <schematicrect schX={0} schY={0} width={0.8} height={0.8} strokeWidth={0.02} color="#880000" />
          <port name="pin2" pinNumber={2} aliases={["GND1","GND"]} direction="right" schX={0.6} schY={-0.2} schStemLength={0.2} />
          <port name="pin4" pinNumber={4} aliases={["GND2","GND"]} direction="left" schX={-0.6} schY={0.2} schStemLength={0.2} />
          <schematicpath points={[{"x":0.06,"y":0.14},{"x":0.06,"y":-0.14},{"x":-0.06,"y":-0.14},{"x":-0.06,"y":0.14},{"x":0.06,"y":0.14}]} strokeColor="#880011" />
          <schematicpath points={[{"x":-0.1,"y":-0.14},{"x":-0.1,"y":0.14}]} strokeColor="#880011" />
          <schematicpath points={[{"x":0.1,"y":-0.14},{"x":0.1,"y":0.14}]} strokeColor="#880011" />
          <schematicpath points={[{"x":-0.4,"y":-0.2},{"x":-0.2,"y":-0.2},{"x":-0.2,"y":0},{"x":-0.12,"y":0}]} strokeColor="#880011" />
          <schematicpath points={[{"x":0.4,"y":0.2},{"x":0.2,"y":0.2},{"x":0.2,"y":0},{"x":0.12,"y":0}]} strokeColor="#880011" />
          <schematicpath points={[{"x":-0.06,"y":-0.14},{"x":-0.06,"y":0.14},{"x":0.06,"y":0.14},{"x":0.06,"y":-0.14}]} strokeColor="#880011" />
          <schematicpath points={[{"x":0.1,"y":-0.08},{"x":0.1,"y":0.08}]} strokeColor="#880011" />
          <schematicpath points={[{"x":0.06,"y":-0.14},{"x":-0.06,"y":-0.14}]} strokeColor="#880011" />
          <schematicpath points={[{"x":-0.1,"y":-0.08},{"x":-0.1,"y":0.08}]} strokeColor="#880011" />
        </symbol>
      }
      supplierPartNumbers={{
  "jlcpcb": [
    "C1985412"
  ]
}}
      manufacturerPartNumber="ABM8AIG-25.000MHZ-12-2Z-T3"
      footprint={<footprint>
        <smtpad portHints={["pin1"]} pcbX="-1.100074mm" pcbY="-0.850011mm" width="1.3999972mm" height="1.1999976mm" shape="rect" />
<smtpad portHints={["pin2"]} pcbX="1.100074mm" pcbY="-0.850011mm" width="1.3999972mm" height="1.1999976mm" shape="rect" />
<smtpad portHints={["pin3"]} pcbX="1.100074mm" pcbY="0.850011mm" width="1.3999972mm" height="1.1999976mm" shape="rect" />
<smtpad portHints={["pin4"]} pcbX="-1.100074mm" pcbY="0.850011mm" width="1.3999972mm" height="1.1999976mm" shape="rect" />
<silkscreenpath route={[{"x":-2.028596400000083,"y":-1.6784827999999834},{"x":-2.028596400000083,"y":1.678736800000138},{"x":2.0285963999999694,"y":1.678736800000138},{"x":2.0285963999999694,"y":-1.6784827999999834},{"x":-2.028596400000083,"y":-1.6784827999999834}]} />
<silkscreenpath route={[{"x":-2.257196399999998,"y":-0.24988519999988057},{"x":-2.257196399999998,"y":-1.9070827999998983},{"x":-0.39999920000002476,"y":-1.9070827999998983}]} />
<silkscreentext text="{NAME}" pcbX="-0.1143mm" pcbY="2.676527mm" anchorAlignment="center" fontSize="1mm" />
<courtyardoutline outline={[{"x":-2.5106000000000677,"y":1.9265270000000783},{"x":2.2819999999999254,"y":1.9265270000000783},{"x":2.2819999999999254,"y":-2.1548729999999523},{"x":-2.5106000000000677,"y":-2.1548729999999523},{"x":-2.5106000000000677,"y":1.9265270000000783}]} />
      </footprint>}
      cadModel={C1985412CadModel}
      {...props}
    />
  )
}