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

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

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

export const IRM_20_24 = (props: ChipProps<typeof pinLabels>) => {
  return (
    <chip
      pinLabels={pinLabels}
      supplierPartNumbers={{
  "jlcpcb": [
    "C194964"
  ]
}}
      manufacturerPartNumber="IRM-20-24"
      footprint={<footprint>
        <platedhole  portHints={["pin1"]} pcbX="-22.499955mm" pcbY="-10.40003mm" outerDiameter="2.1999956mm" holeDiameter="1.5000224mm" shape="circle" />
<platedhole  portHints={["pin2"]} pcbX="22.499955mm" pcbY="-10.40003mm" outerDiameter="2.1999956mm" holeDiameter="1.5000224mm" shape="circle" />
<platedhole  portHints={["pin3"]} pcbX="22.499955mm" pcbY="-2.400046mm" outerDiameter="2.1999956mm" holeDiameter="1.5000224mm" shape="circle" />
<platedhole  portHints={["pin4"]} pcbX="-22.499955mm" pcbY="10.40003mm" outerDiameter="2.1999956mm" holeDiameter="1.5000224mm" shape="circle" />
<silkscreenpath route={[{"x":-26.000201999999945,"y":-13.599972800000046},{"x":26.39976939999997,"y":-13.599972800000046}]} />
<silkscreenpath route={[{"x":-26.000201999999945,"y":-13.599972800000046},{"x":-26.000201999999945,"y":13.599972799999932}]} />
<silkscreenpath route={[{"x":26.39976939999997,"y":13.599972799999932},{"x":-26.000201999999945,"y":13.599972799999932}]} />
<silkscreenpath route={[{"x":26.39976939999997,"y":13.599972799999932},{"x":26.39976939999997,"y":-13.599972800000046}]} />
<silkscreenpath route={[{"x":-21.140038999999888,"y":-11.937999999999988},{"x":-21.14855536268044,"y":-12.002688196856752},{"x":-21.173524074679676,"y":-12.062968000000069},{"x":-21.213243559537204,"y":-12.114731440462492},{"x":-21.265006999999855,"y":-12.154450925320248},{"x":-21.32528680314317,"y":-12.17941963731937},{"x":-21.389974999999936,"y":-12.187936000000036},{"x":-21.4546631968567,"y":-12.17941963731937},{"x":-21.514943000000017,"y":-12.154450925320248},{"x":-21.566706440462667,"y":-12.114731440462492},{"x":-21.606425925320195,"y":-12.062968000000069},{"x":-21.63139463731943,"y":-12.002688196856752},{"x":-21.639910999999984,"y":-11.937999999999988},{"x":-21.63139463731943,"y":-11.873311803143224},{"x":-21.606425925320195,"y":-11.813031999999907},{"x":-21.566706440462667,"y":-11.761268559537257},{"x":-21.514943000000017,"y":-11.721549074679729},{"x":-21.4546631968567,"y":-11.696580362680493},{"x":-21.389974999999936,"y":-11.68806399999994},{"x":-21.32528680314317,"y":-11.696580362680493},{"x":-21.265006999999855,"y":-11.721549074679729},{"x":-21.213243559537204,"y":-11.761268559537257},{"x":-21.173524074679676,"y":-11.813031999999907},{"x":-21.14855536268044,"y":-11.873311803143224},{"x":-21.140038999999888,"y":-11.937999999999988}]} />
<silkscreentext text="{NAME}" pcbX="0.263271mm" pcbY="14.589mm" anchorAlignment="center" fontSize="1mm" />
<courtyardoutline outline={[{"x":-26.23762899999997,"y":13.839000000000055},{"x":26.764171000000033,"y":13.839000000000055},{"x":26.764171000000033,"y":-13.889799999999923},{"x":-26.23762899999997,"y":-13.889799999999923},{"x":-26.23762899999997,"y":13.839000000000055}]} />
      </footprint>}
      cadModel={{
        objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C194964.obj?uuid=99d6f4eecc8244d6a7fc53960f7fc2de",
        stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C194964.step?uuid=99d6f4eecc8244d6a7fc53960f7fc2de",
        pcbRotationOffset: 0,
        modelOriginPosition: { x: -0.19999959999995554, y: 0.0005005000000002369, z: -12.100006 },
      }}
      {...props}
    />
  )
}