AnasSarkiz/usb-c-pwm-pa25

A component library defining an AO3400A N-channel MOSFET, 47 µF polarized capacitor, 3-pin through-hole connector, and 9.1 V Zener diode with PCB footprints and 3D CAD models.

Version
0.1.0-prototype.2
License
unset
Stars
0

imports/LM393BIDR.tsx

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

const pinLabels = {
	pin1: ["OUT_A"],
	pin2: ["IN_A_MINUS"],
	pin3: ["IN_A_PLUS"],
	pin4: ["GND"],
	pin5: ["IN_B_PLUS"],
	pin6: ["IN_B_MINUS"],
	pin7: ["OUT_B"],
	pin8: ["VCC"],
} as const;

export const LM393BIDR = (props: ChipProps<typeof pinLabels>) => {
	return (
		<chip
			pinLabels={pinLabels}
			pinAttributes={{
				pin1: {
					isOutput: true,
					canUseOpenCollector: true,
					isUsingOpenCollector: true,
				},
				pin2: { isInput: true },
				pin3: { isInput: true },
				pin4: { requiresGround: true },
				pin5: { isInput: true },
				pin6: { isInput: true },
				pin7: {
					isOutput: true,
					canUseOpenCollector: true,
					isUsingOpenCollector: true,
				},
				pin8: { requiresPower: true },
			}}
			supplierPartNumbers={{
				jlcpcb: ["C2865059"],
			}}
			manufacturerPartNumber="LM393BIDR"
			footprint={
				<footprint>
					<smtpad
						portHints={["pin5"]}
						pcbX="1.905mm"
						pcbY="2.599944mm"
						width="0.58801mm"
						height="1.7999964mm"
						radius="0.294005mm"
						shape="pill"
					/>
					<smtpad
						portHints={["pin6"]}
						pcbX="0.635mm"
						pcbY="2.599944mm"
						width="0.58801mm"
						height="1.7999964mm"
						radius="0.294005mm"
						shape="pill"
					/>
					<smtpad
						portHints={["pin7"]}
						pcbX="-0.635mm"
						pcbY="2.599944mm"
						width="0.58801mm"
						height="1.7999964mm"
						radius="0.294005mm"
						shape="pill"
					/>
					<smtpad
						portHints={["pin8"]}
						pcbX="-1.905mm"
						pcbY="2.599944mm"
						width="0.58801mm"
						height="1.7999964mm"
						radius="0.294005mm"
						shape="pill"
					/>
					<smtpad
						portHints={["pin4"]}
						pcbX="1.905mm"
						pcbY="-2.599944mm"
						width="0.58801mm"
						height="1.7999964mm"
						radius="0.294005mm"
						shape="pill"
					/>
					<smtpad
						portHints={["pin3"]}
						pcbX="0.635mm"
						pcbY="-2.599944mm"
						width="0.58801mm"
						height="1.7999964mm"
						radius="0.294005mm"
						shape="pill"
					/>
					<smtpad
						portHints={["pin2"]}
						pcbX="-0.635mm"
						pcbY="-2.599944mm"
						width="0.58801mm"
						height="1.7999964mm"
						radius="0.294005mm"
						shape="pill"
					/>
					<smtpad
						portHints={["pin1"]}
						pcbX="-1.905mm"
						pcbY="-2.599944mm"
						width="0.58801mm"
						height="1.7999964mm"
						radius="0.294005mm"
						shape="pill"
					/>
					<silkscreenpath
						route={[
							{ x: -2.5262078000000656, y: -1.5214091999999937 },
							{ x: 2.526207799999952, y: -1.5214091999999937 },
						]}
					/>
					<silkscreenpath
						route={[
							{ x: -2.5262078000000656, y: 1.5214092000001074 },
							{ x: 2.526207799999952, y: 1.5214092000001074 },
						]}
					/>
					<silkscreenpath
						route={[
							{ x: -2.5262078000000656, y: -0.43538139999998293 },
							{ x: -2.5262078000000656, y: -1.5214091999999937 },
						]}
					/>
					<silkscreenpath
						route={[
							{ x: -2.5262078000000656, y: 0.44889420000004066 },
							{ x: -2.5262078000000656, y: 1.5214092000001074 },
						]}
					/>
					<silkscreenpath
						route={[
							{ x: -2.0675600000000713, y: -1.5214091999999937 },
							{ x: -2.5262078000000656, y: -1.5214091999999937 },
						]}
					/>
					<silkscreenpath
						route={[
							{ x: -0.7975599999999758, y: -1.5214091999999937 },
							{ x: -1.7424400000001015, y: -1.5214091999999937 },
						]}
					/>
					<silkscreenpath
						route={[
							{ x: 0.47244000000000597, y: -1.5214091999999937 },
							{ x: -0.47244000000011965, y: -1.5214091999999937 },
						]}
					/>
					<silkscreenpath
						route={[
							{ x: 1.7424399999999878, y: -1.5214091999999937 },
							{ x: 0.7975599999999758, y: -1.5214091999999937 },
						]}
					/>
					<silkscreenpath
						route={[
							{ x: 2.526207799999952, y: -1.5214091999999937 },
							{ x: 2.0675599999999577, y: -1.5214091999999937 },
						]}
					/>
					<silkscreenpath
						route={[
							{ x: 2.526207799999952, y: 1.5214092000001074 },
							{ x: 2.526207799999952, y: -1.5214091999999937 },
						]}
					/>
					<silkscreenpath
						route={[
							{ x: -2.0675600000000713, y: 1.5214092000001074 },
							{ x: -2.5262078000000656, y: 1.5214092000001074 },
						]}
					/>
					<silkscreenpath
						route={[
							{ x: -0.7975599999999758, y: 1.5214092000001074 },
							{ x: -1.7424400000001015, y: 1.5214092000001074 },
						]}
					/>
					<silkscreenpath
						route={[
							{ x: 0.47244000000000597, y: 1.5214092000001074 },
							{ x: -0.47244000000011965, y: 1.5214092000001074 },
						]}
					/>
					<silkscreenpath
						route={[
							{ x: 1.7424399999999878, y: 1.5214092000001074 },
							{ x: 0.7975599999999758, y: 1.5214092000001074 },
						]}
					/>
					<silkscreenpath
						route={[
							{ x: 2.526207799999952, y: 1.5214092000001074 },
							{ x: 2.0675599999999577, y: 1.5214092000001074 },
						]}
					/>
					<silkscreenpath
						route={[
							{ x: -2.5262078000000656, y: -0.43538139999998293 },
							{ x: -2.5262078000000656, y: 0.44889420000004066 },
						]}
					/>
					<silkscreencircle
						pcbX="-1.905mm"
						pcbY="-1.016mm"
						radius="0.150114mm"
					/>
					<silkscreentext
						text="{NAME}"
						pcbX="0.0127mm"
						pcbY="4.2004mm"
						anchorAlignment="center"
						fontSize="1mm"
					/>
					<courtyardoutline
						outline={[
							{ x: -2.764599999999973, y: 3.4504000000000588 },
							{ x: 2.7899999999999636, y: 3.4504000000000588 },
							{ x: 2.7899999999999636, y: -3.80600000000004 },
							{ x: -2.764599999999973, y: -3.80600000000004 },
							{ x: -2.764599999999973, y: 3.4504000000000588 },
						]}
					/>
				</footprint>
			}
			cadModel={{
				objUrl:
					"https://modelcdn.tscircuit.com/easyeda_models/assets/C2865059.obj?uuid=ec3b9f9b31a74655be3e55848dbee9c1",
				stepUrl:
					"https://modelcdn.tscircuit.com/easyeda_models/assets/C2865059.step?uuid=ec3b9f9b31a74655be3e55848dbee9c1",
				pcbRotationOffset: 0,
				modelOriginPosition: { x: -0.000012700000070253736, y: 0, z: 0 },
			}}
			{...props}
		/>
	);
};