tscircuit/dataset-srj12-bus-routing

The code defines electronic circuit diagrams featuring PCB layouts with USB-C, HDMI, and general-purpose chips, connecting their pins with traces, component footprints, and annotations for hardware design.

Version
1.0.6
License
unset
Stars
0

imports/USBC.tsx

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

const pinLabels = {
  pin1: ["GND1"],
  pin2: ["VBUS1"],
  pin3: ["SBU2"],
  pin4: ["CC1"],
  pin5: ["DN2"],
  pin6: ["DP1"],
  pin7: ["DN1"],
  pin8: ["DP2"],
  pin9: ["SBU1"],
  pin10: ["CC2"],
  pin11: ["VBUS2"],
  pin12: ["GND2"],
  pin13: ["SHELL1"],
  pin14: ["SHELL2"],
  pin15: ["pin13_alt1"],
  pin16: ["pin14_alt1"]
} as const

export const USBC = (props: ChipProps<typeof pinLabels>) => {
  return (
    <chip
      pinLabels={pinLabels}
      supplierPartNumbers={{
  "jlcpcb": [
    "C2765186"
  ]
}}
      manufacturerPartNumber="TYPE_C_16PIN_2MD_073_"
      footprint={<footprint>
        <hole pcbX="-2.889885mm" pcbY="1.05492555mm" diameter="0.700024mm" />
<hole pcbX="2.890139mm" pcbY="1.05492555mm" diameter="0.700024mm" />
<platedhole pcbRotation={90} portHints={["pin13"]} pcbX="-4.324985mm" pcbY="1.57511755mm" holeWidth="0.5999988mm" holeHeight="1.499997mm" outerWidth="1.0999978mm" outerHeight="1.999996mm" shape="pill" />
<platedhole pcbRotation={90} portHints={["pin14"]} pcbX="4.324985mm" pcbY="1.57511755mm" holeWidth="0.5999988mm" holeHeight="1.499997mm" outerWidth="1.0999978mm" outerHeight="1.999996mm" shape="pill" />
<platedhole pcbRotation={90} portHints={["pin15"]} pcbX="-4.324985mm" pcbY="-2.62502645mm" holeWidth="0.5999988mm" holeHeight="1.1999976mm" outerWidth="1.1999976mm" outerHeight="1.7999964mm" shape="pill" />
<platedhole pcbRotation={90} portHints={["pin16"]} pcbX="4.324985mm" pcbY="-2.62502645mm" holeWidth="0.5999988mm" holeHeight="1.1999976mm" outerWidth="1.1999976mm" outerHeight="1.7999964mm" shape="pill" />
<smtpad portHints={["pin1"]} pcbX="-3.200019mm" pcbY="2.12502755mm" width="0.5500116mm" height="1.0999978mm" shape="rect" />
<smtpad portHints={["pin2"]} pcbX="-2.399919mm" pcbY="2.12502755mm" width="0.5500116mm" height="1.0999978mm" shape="rect" />
<smtpad portHints={["pin3"]} pcbX="-1.749933mm" pcbY="2.12502755mm" width="0.2999994mm" height="1.0999978mm" shape="rect" />
<smtpad portHints={["pin4"]} pcbX="-1.249807mm" pcbY="2.12502755mm" width="0.2999994mm" height="1.0999978mm" shape="rect" />
<smtpad portHints={["pin5"]} pcbX="-0.749935mm" pcbY="2.12502755mm" width="0.2999994mm" height="1.0999978mm" shape="rect" />
<smtpad portHints={["pin6"]} pcbX="-0.250063mm" pcbY="2.12502755mm" width="0.2999994mm" height="1.0999978mm" shape="rect" />
<smtpad portHints={["pin7"]} pcbX="0.250063mm" pcbY="2.12502755mm" width="0.2999994mm" height="1.0999978mm" shape="rect" />
<smtpad portHints={["pin8"]} pcbX="0.749935mm" pcbY="2.12502755mm" width="0.2999994mm" height="1.0999978mm" shape="rect" />
<smtpad portHints={["pin9"]} pcbX="1.250061mm" pcbY="2.12502755mm" width="0.2999994mm" height="1.0999978mm" shape="rect" />
<smtpad portHints={["pin10"]} pcbX="1.750187mm" pcbY="2.12502755mm" width="0.2999994mm" height="1.0999978mm" shape="rect" />
<smtpad portHints={["pin11"]} pcbX="2.400173mm" pcbY="2.12502755mm" width="0.5500116mm" height="1.0999978mm" shape="rect" />
<smtpad portHints={["pin12"]} pcbX="3.200019mm" pcbY="2.12502755mm" width="0.5500116mm" height="1.0999978mm" shape="rect" />
<silkscreenpath route={[{"x":4.5720761999999695,"y":-1.646948650000013},{"x":4.5720761999999695,"y":0.34700214999986656}]} />
<silkscreenpath route={[{"x":4.5720761999999695,"y":-5.0759740500000134},{"x":4.5720761999999695,"y":-3.6030026500000076}]} />
<silkscreenpath route={[{"x":-4.499914800000056,"y":-1.6438244500001247},{"x":-4.499914800000056,"y":0.34390335000000505}]} />
<silkscreenpath route={[{"x":-4.499914800000056,"y":-5.224970450000114},{"x":-4.499914800000056,"y":-3.6061268500000097}]} />
<silkscreenpath route={[{"x":4.5000671999999895,"y":-5.224970450000114},{"x":-4.499914800000056,"y":-5.224970450000114}]} />
<silkscreentext text="{NAME}" pcbX="-0.006731mm" pcbY="3.68382755mm" anchorAlignment="center" fontSize="1mm" />
<courtyardoutline outline={[{"x":-5.184331000000043,"y":2.9338275499999327},{"x":5.170869000000039,"y":2.9338275499999327},{"x":5.170869000000039,"y":-5.490972450000072},{"x":-5.184331000000043,"y":-5.490972450000072},{"x":-5.184331000000043,"y":2.9338275499999327}]} />
      </footprint>}
      cadModel={{
        objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C2765186.obj?uuid=4ee8413127e64716b804db03d4b340ae",
        stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C2765186.step?uuid=4ee8413127e64716b804db03d4b340ae",
        pcbRotationOffset: 0,
        modelOriginPosition: { x: -0.000012699999956566899, y: 1.5749970500000927, z: -1.6800018 },
      }}
      {...props}
    />
  )
}