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

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

const pinLabels = {
	pin1: ["SYS"],
	pin2: ["BAT"],
	pin3: ["N_PG"],
	pin4: ["N_CE"],
	pin5: ["GND"],
	pin6: ["TS_MR"],
	pin7: ["SDA"],
	pin8: ["SCL"],
	pin9: ["N_INT"],
	pin10: ["IN"],
	pin11: ["THERMAL"],
} as const;

const pinAttributes = {
	pin5: { requiresGround: true },
	pin11: { requiresGround: true },
} as const;

export const BQ25186DLHR = (props: ChipProps<typeof pinLabels>) => {
	return (
		<chip
			pinLabels={pinLabels}
			pinAttributes={pinAttributes}
			supplierPartNumbers={{
				jlcpcb: ["C44639442"],
			}}
			manufacturerPartNumber="BQ25186DLHR"
			footprint={
				<footprint>
					<smtpad
						solderMaskMargin={0.025}
						solderPasteMargin={0}
						portHints={["pin1"]}
						pcbX="-0.799973mm"
						pcbY="-1.050036mm"
						width="0.1999996mm"
						height="0.499999mm"
						shape="rect"
					/>
					<smtpad
						solderMaskMargin={0.025}
						solderPasteMargin={0}
						portHints={["pin2"]}
						pcbX="-0.399923mm"
						pcbY="-1.049782mm"
						width="0.1999996mm"
						height="0.499999mm"
						shape="rect"
					/>
					<smtpad
						solderMaskMargin={0.025}
						solderPasteMargin={0}
						portHints={["pin3"]}
						pcbX="-0.000127mm"
						pcbY="-1.049782mm"
						width="0.1999996mm"
						height="0.499999mm"
						shape="rect"
					/>
					<smtpad
						solderMaskMargin={0.025}
						solderPasteMargin={0}
						portHints={["pin4"]}
						pcbX="0.399923mm"
						pcbY="-1.049782mm"
						width="0.1999996mm"
						height="0.499999mm"
						shape="rect"
					/>
					<smtpad
						solderMaskMargin={0.025}
						solderPasteMargin={0}
						portHints={["pin5"]}
						pcbX="0.799973mm"
						pcbY="-1.049782mm"
						width="0.1999996mm"
						height="0.499999mm"
						shape="rect"
					/>
					<smtpad
						solderMaskMargin={0.025}
						solderPasteMargin={0}
						portHints={["pin6"]}
						pcbX="0.799973mm"
						pcbY="1.050036mm"
						width="0.1999996mm"
						height="0.499999mm"
						shape="rect"
					/>
					<smtpad
						solderMaskMargin={0.025}
						solderPasteMargin={0}
						portHints={["pin7"]}
						pcbX="0.399923mm"
						pcbY="1.050036mm"
						width="0.1999996mm"
						height="0.499999mm"
						shape="rect"
					/>
					<smtpad
						solderMaskMargin={0.025}
						solderPasteMargin={0}
						portHints={["pin8"]}
						pcbX="-0.000127mm"
						pcbY="1.050036mm"
						width="0.1999996mm"
						height="0.499999mm"
						shape="rect"
					/>
					<smtpad
						solderMaskMargin={0.025}
						solderPasteMargin={0}
						portHints={["pin9"]}
						pcbX="-0.399923mm"
						pcbY="1.050036mm"
						width="0.1999996mm"
						height="0.499999mm"
						shape="rect"
					/>
					<smtpad
						solderMaskMargin={0.025}
						solderPasteMargin={0}
						portHints={["pin10"]}
						pcbX="-0.799973mm"
						pcbY="1.050036mm"
						width="0.1999996mm"
						height="0.499999mm"
						shape="rect"
					/>
					<smtpad
						solderMaskMargin={0.025}
						solderPasteMargin={0}
						portHints={["pin11"]}
						pcbX="-0.000127mm"
						pcbY="0mm"
						width="1.499997mm"
						height="0.8999982mm"
						shape="rect"
					/>
					<silkscreenpath
						route={[
							{ x: -1.1311890000001767, y: 1.143101599999909 },
							{ x: -1.1430254000001696, y: 1.143101599999909 },
							{ x: -1.1430254000001696, y: 0.0001015999999935957 },
						]}
					/>
					<silkscreenpath
						route={[
							{ x: 1.131061999999929, y: -1.1428984000000355 },
							{ x: 1.1429745999998886, y: -1.1428984000000355 },
							{ x: 1.1429745999998886, y: 1.143101599999909 },
							{ x: 1.131061999999929, y: 1.143101599999909 },
						]}
					/>
					<silkscreenpath
						route={[
							{ x: -1.1430254000001696, y: 0.0001015999999935957 },
							{ x: -1.1430254000001696, y: -1.1428984000000355 },
							{ x: -1.1311890000001767, y: -1.1428984000000355 },
						]}
					/>
					<silkscreentext
						text="{NAME}"
						pcbX="-0.157861mm"
						pcbY="2.295908mm"
						anchorAlignment="center"
						fontSize="1mm"
					/>
					<courtyardrect width={2.7} height={3.1} />
				</footprint>
			}
			cadModel={{
				objUrl:
					"https://modelcdn.tscircuit.com/easyeda_models/assets/C44639442.obj?uuid=84b6971711e948be84ed2f33439ec745",
				stepUrl:
					"https://modelcdn.tscircuit.com/easyeda_models/assets/C44639442.step?uuid=84b6971711e948be84ed2f33439ec745",
				pcbRotationOffset: 90,
				modelOriginPosition: {
					x: -0.00007619999996677507,
					y: -0.005038100000210766,
					z: -0.02,
				},
			}}
			{...props}
		/>
	);
};