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/ESDA25P35_1U1M.tsx
import type { ChipProps } from "@tscircuit/props"
const pinLabels = {
pin1: ["pin1"],
pin2: ["pin2"]
} as const
export const ESDA25P35_1U1M = (props: ChipProps<typeof pinLabels>) => {
return (
<chip
pinLabels={pinLabels}
symbol={
<symbol>
<schematicpath points={[{"x":-0.2,"y":0.14},{"x":-0.2,"y":-0.14}]} strokeColor="#880000" />
<schematicpath svgPath="M 0 0.12 L -0.2 0 L 0 -0.14 Z" strokeColor="#880000" isFilled fillColor="#880000" />
<port name="pin1" pinNumber={1} aliases={["1"]} direction="left" schX={-0.5} schY={0} schStemLength={0.3} />
<port name="pin2" pinNumber={2} aliases={["2"]} direction="right" schX={0.3} schY={0} schStemLength={0.3} />
</symbol>
}
supplierPartNumbers={{
"jlcpcb": [
"C1974707"
]
}}
manufacturerPartNumber="ESDA25P35-1U1M"
footprint={<footprint>
<smtpad portHints={["pin2"]} pcbX="0.524891mm" pcbY="0mm" width="0.5999988mm" height="0.8999982mm" shape="rect" />
<smtpad portHints={["pin1"]} pcbX="-0.524891mm" pcbY="0mm" width="0.5999988mm" height="0.8999982mm" shape="rect" />
<silkscreenpath route={[{"x":1.1500103999999283,"y":0.6999223999999913},{"x":1.1500103999999283,"y":-0.7000747999999248}]} />
<silkscreenpath route={[{"x":-1.3999972000001435,"y":0.6999223999999913},{"x":1.1500103999999283,"y":0.6999223999999913}]} />
<silkscreenpath route={[{"x":-1.3999972000001435,"y":-0.7000747999999248},{"x":1.1500103999999283,"y":-0.7000747999999248}]} />
<silkscreenpath route={[{"x":-1.1500104000001556,"y":0.6999223999999913},{"x":-1.1500104000001556,"y":-0.7000747999999248}]} />
<silkscreenpath route={[{"x":-1.3999972000001435,"y":0.6999223999999913},{"x":-1.3999972000001435,"y":-0.7000747999999248}]} />
<silkscreentext text="{NAME}" pcbX="-0.127635mm" pcbY="1.688848mm" anchorAlignment="center" fontSize="1mm" />
<courtyardoutline outline={[{"x":-1.6476350000000366,"y":0.9388480000000072},{"x":1.392364999999927,"y":0.9388480000000072},{"x":1.392364999999927,"y":-0.958152000000041},{"x":-1.6476350000000366,"y":-0.958152000000041},{"x":-1.6476350000000366,"y":0.9388480000000072}]} />
</footprint>}
cadModel={{
objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C1974707.obj?uuid=f410d8974c0443bc9ff656f954d8e306",
stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C1974707.step?uuid=f410d8974c0443bc9ff656f954d8e306",
pcbRotationOffset: 0,
modelOriginPosition: { x: 0, y: 0.0000762000000804619, z: -0.02 },
}}
{...props}
/>
)
}