seveibar/usbc-pd-charger

This code defines and assembles a hardware schematic of an 18W USB-C PD wall charger with mains input, protection, high-voltage isolation, a DC buck converter with switching regulator, filtering, and USB-C output with ESD protection.

Version
1.0.2
License
unset
Stars
0

imports/STPS3L60U.tsx

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

const pinLabels = {
  pin1: ["cathode","neg"],
  pin2: ["anode","pos"]
} as const

export const STPS3L60U = (props: DiodeProps) => {
  const { name = "D1", ...restProps } = props

  return (
    <diode
      name={name}
      pinLabels={pinLabels}
      supplierPartNumbers={{
  "jlcpcb": [
    "C132769"
  ]
}}
      manufacturerPartNumber="STPS3L60U"
      footprint={<footprint>
        <smtpad portHints={["pin2","anode","pos"]} pcbX="2.360676mm" pcbY="0mm" width="2.047494mm" height="2.192401mm" shape="rect" />
<smtpad portHints={["pin1","cathode","neg"]} pcbX="-2.360676mm" pcbY="0mm" width="2.047494mm" height="2.192401mm" shape="rect" />
<silkscreenpath route={[{"x":-1.0160000000000764,"y":1.8862040000000206},{"x":-1.0160000000000764,"y":-1.886203999999907}]} />
<silkscreenpath route={[{"x":-2.7437080000000833,"y":1.8862040000000206},{"x":2.7437079999999696,"y":1.8862040000000206}]} />
<silkscreenpath route={[{"x":-2.7437080000000833,"y":-1.886203999999907},{"x":2.7437079999999696,"y":-1.886203999999907}]} />
<silkscreenpath route={[{"x":2.7437079999999696,"y":1.8862040000000206},{"x":2.7437079999999696,"y":1.2993877999999768}]} />
<silkscreenpath route={[{"x":2.7437079999999696,"y":-1.886203999999907},{"x":2.7437079999999696,"y":-1.2993877999999768}]} />
<silkscreentext text="{NAME}" pcbX="0mm" pcbY="2.9558mm" anchorAlignment="center" fontSize="1mm" />
<courtyardoutline outline={[{"x":-3.6282000000001062,"y":2.2058000000000675},{"x":3.628199999999879,"y":2.2058000000000675},{"x":3.628199999999879,"y":-2.231200000000058},{"x":-3.6282000000001062,"y":-2.231200000000058},{"x":-3.6282000000001062,"y":2.2058000000000675}]} />
      </footprint>}
      cadModel={{
        objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C132769.obj?uuid=892cc756ed79448ab4afad0e5bfcdfa6",
        stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C132769.step?uuid=892cc756ed79448ab4afad0e5bfcdfa6",
        pcbRotationOffset: 0,
        modelOriginPosition: { x: 0, y: 0, z: -0.1 },
      }}
      {...restProps}
    />
  )
}