aj0070/usb-pd-supply

A 2-layer USB‑C PD power board with STUSB4500 negotiation, SCT2330 synchronous buck conversion using a 10 µH inductor, adjustable VOUT, INA219 shunt current/voltage monitoring over I²C, and status LEDs/connectors.

Version
1.0.0
License
unset
Stars
0

Use with the tscircuit CLI

tsci is the tscircuit CLI. Install it with npm install -g tscircuit.

tsci clone aj0070/usb-pd-supply  # download the package files into ./usb-pd-supply
tsci add aj0070/usb-pd-supply    # add it to your project as @tsci/aj0070.usb-pd-supply

In a cloned or new (tsci init) project: tsci dev starts a local preview, tsci build outputs Circuit JSON, and tsci push publishes to tscircuit.com.

imports/A_3224W_1_503E.tsx

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

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

export const A_3224W_1_503E = (props: ChipProps<typeof pinLabels>) => {
  return (
    <chip
      pinLabels={pinLabels}
      symbol={
        <symbol>
          <port name="pin1" pinNumber={1} aliases={["1"]} direction="up" schX={0.2} schY={0.4} schStemLength={0.2} />
          <schematicpath points={[{"x":0.12,"y":-0.2},{"x":0.12,"y":0.2},{"x":0.32,"y":0.2},{"x":0.32,"y":-0.2},{"x":0.12,"y":-0.2}]} strokeColor="#880000" />
          <port name="pin2" pinNumber={2} aliases={["2"]} direction="left" schX={-0.2} schY={0} schStemLength={0.2} />
          <port name="pin3" pinNumber={3} aliases={["3"]} direction="down" schX={0.2} schY={-0.4} schStemLength={0.2} />
          <schematicpath points={[{"x":0.08,"y":0},{"x":-0.02,"y":0}]} strokeColor="#880000" />
          <schematicpath points={[{"x":0.12,"y":0},{"x":0.02,"y":-0.04},{"x":0.02,"y":0.04},{"x":0.12,"y":0}]} strokeColor="#880000" isFilled fillColor="#EFEFEF" />
          <schematictext schX={0.05} schY={0.62} text="{NAME}" fontSize={0.2} anchor="bottom_center" />
        </symbol>
      }
      supplierPartNumbers={{
  "jlcpcb": [
    "C48484"
  ]
}}
      manufacturerPartNumber="3224W-1-503E"
      footprint={<footprint>
        <smtpad portHints={["pin1"]} pcbX="-1.249934mm" pcbY="-1.449959mm" width="1.2999974mm" height="1.5999968mm" shape="rect" />
<smtpad portHints={["pin3"]} pcbX="1.249934mm" pcbY="-1.449959mm" width="1.2999974mm" height="1.5999968mm" shape="rect" />
<smtpad portHints={["pin2"]} pcbX="0mm" pcbY="1.449959mm" width="1.999996mm" height="1.5999968mm" shape="rect" />
<silkscreenpath route={[{"x":2.1310600000000477,"y":-1.7499583999999828},{"x":2.399995199999978,"y":-1.7499583999999828}]} />
<silkscreenpath route={[{"x":-0.36880800000000136,"y":-1.7499837999999954},{"x":0.36880800000000136,"y":-1.7499837999999954}]} />
<silkscreenpath route={[{"x":-2.3991062000000056,"y":-1.7500091999999796},{"x":-2.1310854000000177,"y":-1.7500091999999796}]} />
<silkscreenpath route={[{"x":1.2311379999999872,"y":1.7499837999999954},{"x":2.399995199999978,"y":1.7499837999999954}]} />
<silkscreenpath route={[{"x":-2.3991062000000056,"y":1.749933000000027},{"x":-1.2311379999999872,"y":1.749933000000027}]} />
<silkscreenpath route={[{"x":2.399995199999978,"y":1.7499837999999954},{"x":2.399995199999978,"y":-1.7499583999999828}]} />
<silkscreenpath route={[{"x":-2.3991062000000056,"y":1.749933000000027},{"x":-2.3991062000000056,"y":-1.7500091999999796}]} />
<silkscreentext text="{NAME}" pcbX="-0.0254mm" pcbY="3.237359mm" anchorAlignment="center" fontSize="1mm" />
<courtyardoutline outline={[{"x":-2.649995199999978,"y":2.4999573999999996},{"x":2.649995199999978,"y":2.4999573999999996},{"x":2.649995199999978,"y":-2.4999573999999996},{"x":-2.649995199999978,"y":-2.4999573999999996},{"x":-2.649995199999978,"y":2.4999573999999996}]} />
      </footprint>}
      cadModel={{
        objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C48484.obj?uuid=f9320f329eac4b51b08187751f429450",
        stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C48484.step?uuid=f9320f329eac4b51b08187751f429450",
        pcbRotationOffset: 180,
        modelOriginPosition: { x: 0, y: 0.000012700000013410317, z: -0.2 },
      }}
      {...props}
    />
  )
}