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

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

const pinLabels = {
  pin1: ["BOOT"],
  pin2: ["PG"],
  pin3: ["EN1"],
  pin4: ["FB"],
  pin5: ["EN2"],
  pin6: ["GND"],
  pin7: ["VIN"],
  pin8: ["SW"],
  pin9: ["PAD"]
} as const

export const ST1S14PHR = (props: ChipProps<typeof pinLabels>) => {
  return (
    <chip
      pinLabels={pinLabels}
      supplierPartNumbers={{
  "jlcpcb": [
    "C84130"
  ]
}}
      manufacturerPartNumber="ST1S14PHR"
      footprint={<footprint>
        <smtpad portHints={["pin1"]} pcbX="-1.905mm" pcbY="-2.769108mm" width="0.5739892mm" height="2.0379944mm" radius="0.2869946mm" shape="pill" />
<smtpad portHints={["pin2"]} pcbX="-0.635mm" pcbY="-2.769108mm" width="0.5739892mm" height="2.0379944mm" radius="0.2869946mm" shape="pill" />
<smtpad portHints={["pin3"]} pcbX="0.635mm" pcbY="-2.769108mm" width="0.5739892mm" height="2.0379944mm" radius="0.2869946mm" shape="pill" />
<smtpad portHints={["pin4"]} pcbX="1.905mm" pcbY="-2.769108mm" width="0.5739892mm" height="2.0379944mm" radius="0.2869946mm" shape="pill" />
<smtpad portHints={["pin8"]} pcbX="-1.905mm" pcbY="2.769108mm" width="0.5739892mm" height="2.0379944mm" radius="0.2869946mm" shape="pill" />
<smtpad portHints={["pin7"]} pcbX="-0.635mm" pcbY="2.769108mm" width="0.5739892mm" height="2.0379944mm" radius="0.2869946mm" shape="pill" />
<smtpad portHints={["pin6"]} pcbX="0.635mm" pcbY="2.769108mm" width="0.5739892mm" height="2.0379944mm" radius="0.2869946mm" shape="pill" />
<smtpad portHints={["pin5"]} pcbX="1.905mm" pcbY="2.769108mm" width="0.5739892mm" height="2.0379944mm" radius="0.2869946mm" shape="pill" />
<smtpad portHints={["pin9"]} pcbX="0mm" pcbY="0mm" width="3.1999936mm" height="2.3999952mm" shape="rect" />
<silkscreenpath route={[{"x":-2.5262078000000656,"y":-1.5214091999999937},{"x":-2.5262078000000656,"y":1.5214092000001074},{"x":2.526207799999952,"y":1.5214092000001074},{"x":2.526207799999952,"y":-1.5214091999999937},{"x":-2.5262078000000656,"y":-1.5214091999999937}]} />
<silkscreenpath route={[{"x":-1.8818860000001223,"y":-1.0159999999999627},{"x":-1.887001010512563,"y":-1.0548523621365575},{"x":-1.9019974625363147,"y":-1.0910570000000916},{"x":-1.9258533726489304,"y":-1.1221466273509577},{"x":-1.9569430000000239,"y":-1.1460025374635734},{"x":-1.993147637863558,"y":-1.1609989894875525},{"x":-2.032000000000039,"y":-1.1661139999999932},{"x":-2.070852362136634,"y":-1.1609989894875525},{"x":-2.107057000000168,"y":-1.1460025374635734},{"x":-2.138146627351034,"y":-1.1221466273509577},{"x":-2.16200253746365,"y":-1.0910570000000916},{"x":-2.176998989487629,"y":-1.0548523621365575},{"x":-2.1821140000000696,"y":-1.0159999999999627},{"x":-2.176998989487629,"y":-0.9771476378634816},{"x":-2.16200253746365,"y":-0.9409429999999475},{"x":-2.138146627351034,"y":-0.909853372648854},{"x":-2.107057000000168,"y":-0.8859974625362383},{"x":-2.070852362136634,"y":-0.8710010105124866},{"x":-2.032000000000039,"y":-0.8658860000000459},{"x":-1.993147637863558,"y":-0.8710010105124866},{"x":-1.9569430000000239,"y":-0.8859974625362383},{"x":-1.9258533726489304,"y":-0.909853372648854},{"x":-1.9019974625363147,"y":-0.9409429999999475},{"x":-1.887001010512563,"y":-0.9771476378634816},{"x":-1.8818860000001223,"y":-1.0159999999999627}]} />
<silkscreenpath route={[{"x":-2.494280000000117,"y":-2.76910799999996},{"x":-2.499395010512444,"y":-2.8079603621364413},{"x":-2.514391462536423,"y":-2.844165000000089},{"x":-2.538247372649039,"y":-2.875254627351069},{"x":-2.569336999999905,"y":-2.8991105374636845},{"x":-2.605541637863439,"y":-2.91410698948755},{"x":-2.644394000000034,"y":-2.919221999999877},{"x":-2.683246362136515,"y":-2.91410698948755},{"x":-2.719451000000163,"y":-2.8991105374636845},{"x":-2.7505406273511426,"y":-2.875254627351069},{"x":-2.7743965374637582,"y":-2.844165000000089},{"x":-2.7893929894876237,"y":-2.8079603621364413},{"x":-2.7945079999999507,"y":-2.76910799999996},{"x":-2.7893929894876237,"y":-2.7302556378633653},{"x":-2.7743965374637582,"y":-2.694050999999945},{"x":-2.7505406273511426,"y":-2.6629613726488515},{"x":-2.719451000000163,"y":-2.639105462536236},{"x":-2.683246362136515,"y":-2.624109010512484},{"x":-2.644394000000034,"y":-2.6189940000000433},{"x":-2.605541637863439,"y":-2.624109010512484},{"x":-2.569336999999905,"y":-2.639105462536236},{"x":-2.538247372649039,"y":-2.6629613726488515},{"x":-2.514391462536423,"y":-2.694050999999945},{"x":-2.499395010512444,"y":-2.7302556378633653},{"x":-2.494280000000117,"y":-2.76910799999996}]} />
<silkscreentext text="{NAME}" pcbX="-0.1397mm" pcbY="4.5052mm" anchorAlignment="center" fontSize="1mm" />
<courtyardoutline outline={[{"x":-3.0439999999999827,"y":3.7552000000001726},{"x":2.764599999999973,"y":3.7552000000001726},{"x":2.764599999999973,"y":-3.80600000000004},{"x":-3.0439999999999827,"y":-3.80600000000004},{"x":-3.0439999999999827,"y":3.7552000000001726}]} />
      </footprint>}
      cadModel={{
        objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C84130.obj?uuid=bc65995474e34a35a984be00a21713ca",
        stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C84130.step?uuid=bc65995474e34a35a984be00a21713ca",
        pcbRotationOffset: 90,
        modelOriginPosition: { x: -0.000012700000070253736, y: 0.000012700000070253736, z: -0.099425 },
      }}
      {...props}
    />
  )
}