tscircuit/autorouting-dataset-01

This code manages the hardware and electronic components for circuit design and PCB layout, defining components like resistors, capacitors, transistors, connectors, and footprints, and providing tools for component placement, PCB topology, and electrical connections.

Version
1.0.102
License
unset
Stars
4

lib/imports/SM04B_SRSS_TB_LF__SN.tsx

/** JST SH 4-pin right-angle connector footprint. */
import type { ChipProps } from "@tscircuit/props"

const pinLabels = {
  pin1: ["GND"],
  pin2: ["VCC"],
  pin3: ["SDA"],
  pin4: ["SCL"],
} as const

export const SM04B_SRSS_TB_LF__SN = (props: ChipProps<typeof pinLabels>) => {
  return (
    <chip
      schWidth={0.7}
      pinLabels={pinLabels}
      schPinArrangement={{
        leftSide: {
          direction: "top-to-bottom",
          pins: ["SCL", "SDA", "VCC", "GND"],
        },
      }}
      supplierPartNumbers={{
        jlcpcb: ["C160404"],
      }}
      manufacturerPartNumber="SM04B_SRSS_TB_LF_SN"
      footprint={
        <footprint>
          <smtpad
            portHints={["pin2"]}
            pcbX="-0.4998720000000958mm"
            pcbY="2.0005166999999346mm"
            width="0.5999987999999999mm"
            height="1.5500095999999999mm"
            shape="rect"
          />
          <smtpad
            portHints={["pin1"]}
            pcbX="-1.4998699999999872mm"
            pcbY="2.0005166999999346mm"
            width="0.5999987999999999mm"
            height="1.5500095999999999mm"
            shape="rect"
          />
          <smtpad
            portHints={["pin4"]}
            pcbX="1.5003779999999551mm"
            pcbY="2.0000086999999667mm"
            width="0.5999987999999999mm"
            height="1.5500095999999999mm"
            shape="rect"
          />
          <smtpad
            portHints={["pin3"]}
            pcbX="0.5003800000000638mm"
            pcbY="2.0000086999999667mm"
            width="0.5999987999999999mm"
            height="1.5500095999999999mm"
            shape="rect"
          />
          <smtpad
            portHints={["pin6"]}
            pcbX="-2.800096000000053mm"
            pcbY="-1.8750152999999727mm"
            width="1.1999975999999999mm"
            height="1.7999964mm"
            shape="rect"
          />
          <smtpad
            portHints={["pin5"]}
            pcbX="2.800096000000053mm"
            pcbY="-1.8755233000000544mm"
            width="1.1999975999999999mm"
            height="1.7999964mm"
            shape="rect"
          />
          <silkscreenpath
            route={[
              { x: -2.019960400000059, y: -2.397467900000038 },
              { x: 1.8800063999999566, y: -2.397467900000038 },
            ]}
          />
          <silkscreenpath
            route={[
              { x: -1.9400266000000101, y: 1.8624676999997973 },
              { x: -3.019958400000064, y: 1.8624676999997973 },
              { x: -3.019958400000064, y: -0.7374763000001394 },
            ]}
          />
          <silkscreenpath
            route={[
              { x: 2.040000999999961, y: 1.8624676999997973 },
              { x: 2.9600143999999773, y: 1.8624676999997973 },
              { x: 2.9600143999999773, y: -0.7443089000000782 },
            ]}
          />
        </footprint>
      }
      cadModel={{
        objUrl:
          "https://modelcdn.tscircuit.com/easyeda_models/download?uuid=96ff162c26934a308e7bbf01d083d593&pn=C160404",
        rotationOffset: { x: 0, y: 0, z: 0 },
        positionOffset: { x: 0, y: -1.5, z: 0 },
      }}
      {...props}
    />
  )
}