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/A_2010T1A250V.tsx
import type { ChipProps } from "@tscircuit/props"
const pinLabels = {
pin1: ["pin1"],
pin2: ["pin2"]
} as const
export const A_2010T1A250V = (props: ChipProps<typeof pinLabels>) => {
return (
<chip
pinLabels={pinLabels}
symbol={
<symbol>
<schematictext schX={-0.44} schY={0.21} text="{NAME}" fontSize={0.18} anchor="left" color="#006464" />
<schematicrect schX={0} schY={0} width={0.4} height={0.16} color="#A00000" strokeWidth={0.02} />
<port name="pin2" pinNumber={2} aliases={["2"]} direction="right" schX={0.4} schY={0} schStemLength={0.2} />
<port name="pin1" pinNumber={1} aliases={["1"]} direction="left" schX={-0.4} schY={0} schStemLength={0.2} />
<schematicpath points={[{"x":-0.2,"y":0},{"x":0.2,"y":0}]} strokeColor="#880000" />
</symbol>
}
supplierPartNumbers={{
"jlcpcb": [
"C354900"
]
}}
manufacturerPartNumber="2010T1A250V"
footprint={<footprint>
<platedhole portHints={["pin1"]} pcbX="-2.54mm" pcbY="0mm" outerDiameter="1.7999964mm" holeDiameter="0.999998mm" shape="circle" />
<platedhole portHints={["pin2"]} pcbX="2.54mm" pcbY="0mm" outerDiameter="1.7999964mm" holeDiameter="0.999998mm" shape="circle" />
<silkscreenpath route={[{"x":-4.249978800000008,"y":1.99999600000001},{"x":4.250029599999948,"y":1.99999600000001}]} />
<silkscreenpath route={[{"x":4.250029599999948,"y":1.99999600000001},{"x":4.250029599999948,"y":-1.9999959999998964}]} />
<silkscreenpath route={[{"x":4.250004199999921,"y":-1.9999959999998964},{"x":-4.250004200000149,"y":-1.9999959999998964}]} />
<silkscreenpath route={[{"x":-4.250004200000149,"y":-1.9999959999998964},{"x":-4.250004200000149,"y":1.99999600000001}]} />
<silkscreentext text="{NAME}" pcbX="-0.0254mm" pcbY="3.0066mm" anchorAlignment="center" fontSize="1mm" />
<courtyardoutline outline={[{"x":-4.542599999999993,"y":2.2566000000001623},{"x":4.491799999999898,"y":2.2566000000001623},{"x":4.491799999999898,"y":-2.2819999999999254},{"x":-4.542599999999993,"y":-2.2819999999999254},{"x":-4.542599999999993,"y":2.2566000000001623}]} />
</footprint>}
cadModel={{
objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C354900.obj?uuid=6842cf7d0e914ff8945ad05eb706165d",
stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C354900.step?uuid=6842cf7d0e914ff8945ad05eb706165d",
pcbRotationOffset: 0,
modelOriginPosition: { x: 0.000012700000070253736, y: 0, z: -0.000006999999999646178 },
}}
{...props}
/>
)
}