imrishabh18/pcbgolf

These code snippets define detailed PCB footprints for various SMD components, through-hole connectors, and chips, specifying pad locations, shapes, silkscreen outlines, and mechanical outlines for physical placement on a circuit board.

Version
1.4.3
License
unset
Stars
0

imports/PJ_002AH_SMT_TR.tsx

// Imported with tsci import --jlcpcb --use-exact-footprint C22434687
export const C22434687CadModel = {
        objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C22434687.obj?uuid=b2f23b222a2245f98d32f11d01f4a98e",
        stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C22434687.step?uuid=b2f23b222a2245f98d32f11d01f4a98e",
        pcbRotationOffset: 180,
        modelOriginPosition: { x: -0.6149593999999752, y: 0.0001015999999935957, z: -0.10000220000000004 },
      }

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

const pinLabels = {
  pin1: ["pin1"],
  pin2: ["pin2"],
  pin3: ["pin3"]
} as const

export const PJ_002AH_SMT_TR = (props: ChipProps<typeof pinLabels>) => {
  return (
    <chip
      pinLabels={pinLabels}
      symbol={
        <symbol>
          <schematicpath points={[{"x":0.1,"y":0.2},{"x":-0.02,"y":0.2}]} strokeColor="#880000" />
          <schematicrect schX={-0.06} schY={0.2} width={0.08} height={0.24} strokeWidth={0.02} color="#880000" />
          <schematicpath points={[{"x":-0.1,"y":0.28},{"x":-0.5,"y":0.28}]} strokeColor="#880000" />
          <schematicpath points={[{"x":-0.1,"y":0.12},{"x":-0.5,"y":0.12}]} strokeColor="#880000" />
          <schematicpath svgPath="M -0.5 0.12 A 0.08 0.08 0 1 0 -0.5 0.28" strokeColor="#880000" />
          <schematicpath points={[{"x":0.1,"y":-0.2},{"x":-0.48,"y":-0.2},{"x":-0.52,"y":-0.12},{"x":-0.56,"y":-0.2}]} strokeColor="#880000" />
          <schematicpath points={[{"x":0.1,"y":0},{"x":-0.24,"y":0},{"x":-0.24,"y":-0.2},{"x":-0.26,"y":-0.1}]} strokeColor="#880000" />
          <schematicpath points={[{"x":-0.24,"y":-0.2},{"x":-0.22,"y":-0.1}]} strokeColor="#880000" />
          <port name="pin1" pinNumber={1} aliases={["1"]} direction="right" schX={0.5} schY={0.2} schStemLength={0.4} />
          <port name="pin2" pinNumber={2} aliases={["2"]} direction="right" schX={0.5} schY={-0.2} schStemLength={0.4} />
          <port name="pin3" pinNumber={3} aliases={["3"]} direction="right" schX={0.5} schY={0} schStemLength={0.4} />
        </symbol>
      }
      supplierPartNumbers={{
  "jlcpcb": [
    "C22434687"
  ]
}}
      manufacturerPartNumber="PJ-002AH-SMT-TR"
      footprint={<footprint>
        <hole pcbX="-2.999994mm" pcbY="0mm" diameter="1.700022mm" />
<hole pcbX="1.500124mm" pcbY="0mm" diameter="1.7999964mm" />
<smtpad portHints={["pin1"]} pcbX="-2.999994mm" pcbY="5.999988mm" width="2.7999944mm" height="2.999994mm" shape="rect" />
<smtpad portHints={["pin1"]} pcbX="2.999994mm" pcbY="5.999988mm" width="2.7999944mm" height="2.999994mm" shape="rect" />
<smtpad portHints={["pin3"]} pcbX="2.999994mm" pcbY="-5.999988mm" width="2.7999944mm" height="2.999994mm" shape="rect" />
<smtpad portHints={["pin2"]} pcbX="-2.999994mm" pcbY="-5.999988mm" width="2.7999944mm" height="2.999994mm" shape="rect" />
<silkscreenpath route={[{"x":-4.631131199999913,"y":4.44510159999993},{"x":-4.824983999999972,"y":4.44510159999993}]} />
<silkscreenpath route={[{"x":1.4689074000001483,"y":4.44510159999993},{"x":-1.3688313999998627,"y":4.44510159999993}]} />
<silkscreenpath route={[{"x":4.731207200000085,"y":-4.571898400000009},{"x":6.732016000000044,"y":-4.571898400000009},{"x":6.732016000000044,"y":4.44510159999993},{"x":4.731207200000085,"y":4.44510159999993}]} />
<silkscreenpath route={[{"x":-1.3688313999998627,"y":-4.571898400000009},{"x":1.4689074000001483,"y":-4.571898400000009}]} />
<silkscreenpath route={[{"x":-4.697983999999906,"y":4.44510159999993},{"x":-7.999983999999927,"y":4.44510159999993},{"x":-7.999983999999927,"y":-4.571898400000009},{"x":-4.631131199999913,"y":-4.571898400000009}]} />
<silkscreentext text="{NAME}" pcbX="-0.608584mm" pcbY="8.5057mm" anchorAlignment="center" fontSize="1mm" />
<fabricationnotepath route={[{"x":-5.524423800000022,"y":0.6351270000000113},{"x":-5.524423800000022,"y":-0.6348729999999705},{"x":-4.889423800000031,"y":0.00012700000002041634},{"x":-5.524423800000022,"y":0.6351270000000113}]} strokeWidth="0.254mm" />
<fabricationnotepath route={[{"x":-7.683423800000014,"y":0.1271270000000868},{"x":-5.524423800000022,"y":0.1271270000000868},{"x":-5.524423800000022,"y":-0.1268729999999323},{"x":-7.683423800000014,"y":-0.1268729999999323},{"x":-7.683423800000014,"y":0.1271270000000868}]} strokeWidth="0.254mm" />
<courtyardoutline outline={[{"x":-8.275383999999917,"y":7.755700000000047},{"x":7.058216000000016,"y":7.755700000000047},{"x":7.058216000000016,"y":-7.755699999999933},{"x":-8.275383999999917,"y":-7.755699999999933},{"x":-8.275383999999917,"y":7.755700000000047}]} />
      </footprint>}
      cadModel={C22434687CadModel}
      {...props}
    />
  )
}