MustafaMulla29/bluetooth-connected-pedometer

It defines a PCB footprint and schematic symbol for a row of solder pads used as wire connection points, featuring customizable spacing and label annotations.

Version
0.3.0
License
unset
Stars
0

Use with the tscircuit CLI

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

tsci clone MustafaMulla29/bluetooth-connected-pedometer  # download the package files into ./bluetooth-connected-pedometer
tsci add MustafaMulla29/bluetooth-connected-pedometer    # add it to your project as @tsci/MustafaMulla29.bluetooth-connected-pedometer

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

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

const pinLabels = {
	pin1: ["VIN"],
	pin2: ["GND"],
	pin3: ["ON"],
	pin4: ["CT"],
	pin5: ["QOD"],
	pin6: ["VOUT"],
} as const;

export const TPS22917DBVR = (props: ChipProps<typeof pinLabels>) => {
	const { name = "U6", ...restProps } = props;

	return (
		<chip
			name={name}
			pinLabels={pinLabels}
			pinAttributes={{ pin2: { requiresGround: true } }}
			supplierPartNumbers={{
				jlcpcb: ["C2681320"],
			}}
			manufacturerPartNumber="TPS22917DBVR"
			footprint={
				<footprint>
					<smtpad
						solderMaskMargin={0.025}
						solderPasteMargin={0}
						portHints={["pin3"]}
						pcbX="1.35001mm"
						pcbY="0.94996mm"
						width="1.0999978mm"
						height="0.5999988mm"
						shape="rect"
					/>
					<smtpad
						solderMaskMargin={0.025}
						solderPasteMargin={0}
						portHints={["pin2"]}
						pcbX="1.35001mm"
						pcbY="-0mm"
						width="1.0999978mm"
						height="0.5999988mm"
						shape="rect"
					/>
					<smtpad
						solderMaskMargin={0.025}
						solderPasteMargin={0}
						portHints={["pin1"]}
						pcbX="1.35001mm"
						pcbY="-0.94996mm"
						width="1.0999978mm"
						height="0.5999988mm"
						shape="rect"
					/>
					<smtpad
						solderMaskMargin={0.025}
						solderPasteMargin={0}
						portHints={["pin6"]}
						pcbX="-1.35001mm"
						pcbY="-0.94996mm"
						width="1.0999978mm"
						height="0.5999988mm"
						shape="rect"
					/>
					<smtpad
						solderMaskMargin={0.025}
						solderPasteMargin={0}
						portHints={["pin5"]}
						pcbX="-1.35001mm"
						pcbY="-0mm"
						width="1.0999978mm"
						height="0.5999988mm"
						shape="rect"
					/>
					<smtpad
						solderMaskMargin={0.025}
						solderPasteMargin={0}
						portHints={["pin4"]}
						pcbX="-1.35001mm"
						pcbY="0.94996mm"
						width="1.0999978mm"
						height="0.5999988mm"
						shape="rect"
					/>
					<silkscreenpath
						route={[
							{ x: -0.899998200000141, y: 1.5499080000000731 },
							{ x: 0.9000236000000541, y: 1.5499080000000731 },
						]}
					/>
					<silkscreenpath
						route={[
							{ x: -0.899998200000141, y: -1.5501111999999466 },
							{ x: 0.9000236000000541, y: -1.5501111999999466 },
						]}
					/>
					<silkscreencircle pcbX="1.397mm" pcbY="-1.651mm" radius="0.127mm" />
					<silkscreentext
						text="{NAME}"
						pcbX="0.012446mm"
						pcbY="2.562354mm"
						anchorAlignment="center"
						fontSize="1mm"
					/>
					<courtyardrect width={4.3} height={3.4} />
				</footprint>
			}
			cadModel={{
				objUrl:
					"https://modelcdn.tscircuit.com/easyeda_models/assets/C2681320.obj?uuid=229b69761e2c45dba6a83d8866dec72d",
				stepUrl:
					"https://modelcdn.tscircuit.com/easyeda_models/assets/C2681320.step?uuid=229b69761e2c45dba6a83d8866dec72d",
				pcbRotationOffset: 180,
				modelOriginPosition: {
					x: 0.000025399999913133797,
					y: -0.0000889000000370288,
					z: -0.048939,
				},
			}}
			{...restProps}
		/>
	);
};