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

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

const pinLabels = {
	pin1: ["GND1"],
	pin2: ["GND2"],
	pin3: ["DIO9"],
	pin4: ["DIO10"],
	pin5: ["DIO8"],
	pin6: ["DIO11"],
	pin7: ["DIO12"],
	pin8: ["DIO13"],
	pin9: ["DIO14"],
	pin10: ["DIO15"],
	pin11: ["GND3"],
	pin12: ["VCC"],
	pin13: ["GND4"],
	pin14: ["RESET"],
	pin15: ["SWDIO"],
	pin16: ["SWDCK"],
	pin17: ["DIO18"],
	pin18: ["DIO19"],
	pin19: ["DIO20"],
	pin20: ["DIO21"],
	pin21: ["DIO5"],
	pin22: ["DIO23"],
	pin23: ["DIO24"],
	pin24: ["DIO25"],
	pin25: ["DIO0"],
	pin26: ["DIO1"],
	pin27: ["DIO2"],
	pin28: ["DIO22"],
	pin29: ["DIO6"],
	pin30: ["DIO7"],
} as const;

const pinAttributes = {
	pin1: { requiresGround: true },
	pin2: { requiresGround: true },
	pin11: { requiresGround: true },
	pin12: { requiresPower: true },
	pin13: { requiresGround: true },
} as const;

export const RF_BM_2340B1 = (props: ChipProps<typeof pinLabels>) => {
	return (
		<chip
			pinLabels={pinLabels}
			pinAttributes={pinAttributes}
			supplierPartNumbers={{
				jlcpcb: ["C7500868"],
			}}
			manufacturerPartNumber="RF-BM-2340B1"
			footprint={
				<footprint>
					<smtpad
						solderMaskMargin={0.025}
						portHints={["pin1"]}
						pcbX="-7.525004mm"
						pcbY="7.55001665mm"
						width="1.499997mm"
						height="0.7999984mm"
						shape="rect"
					/>
					<smtpad
						solderMaskMargin={0.025}
						portHints={["pin2"]}
						pcbX="-7.525004mm"
						pcbY="6.28001665mm"
						width="1.499997mm"
						height="0.7999984mm"
						shape="rect"
					/>
					<smtpad
						solderMaskMargin={0.025}
						portHints={["pin3"]}
						pcbX="-7.525004mm"
						pcbY="5.01001665mm"
						width="1.499997mm"
						height="0.7999984mm"
						shape="rect"
					/>
					<smtpad
						solderMaskMargin={0.025}
						portHints={["pin4"]}
						pcbX="-7.525004mm"
						pcbY="3.74001665mm"
						width="1.499997mm"
						height="0.7999984mm"
						shape="rect"
					/>
					<smtpad
						solderMaskMargin={0.025}
						portHints={["pin5"]}
						pcbX="-7.525004mm"
						pcbY="2.47001665mm"
						width="1.499997mm"
						height="0.7999984mm"
						shape="rect"
					/>
					<smtpad
						solderMaskMargin={0.025}
						portHints={["pin6"]}
						pcbX="-7.525004mm"
						pcbY="1.20001665mm"
						width="1.499997mm"
						height="0.7999984mm"
						shape="rect"
					/>
					<smtpad
						solderMaskMargin={0.025}
						portHints={["pin7"]}
						pcbX="-7.525004mm"
						pcbY="-0.06998335mm"
						width="1.499997mm"
						height="0.7999984mm"
						shape="rect"
					/>
					<smtpad
						solderMaskMargin={0.025}
						portHints={["pin8"]}
						pcbX="-7.525004mm"
						pcbY="-1.33998335mm"
						width="1.499997mm"
						height="0.7999984mm"
						shape="rect"
					/>
					<smtpad
						solderMaskMargin={0.025}
						portHints={["pin9"]}
						pcbX="-7.525004mm"
						pcbY="-2.60998335mm"
						width="1.499997mm"
						height="0.7999984mm"
						shape="rect"
					/>
					<smtpad
						solderMaskMargin={0.025}
						portHints={["pin10"]}
						pcbX="-7.525004mm"
						pcbY="-3.87998335mm"
						width="1.499997mm"
						height="0.7999984mm"
						shape="rect"
					/>
					<smtpad
						solderMaskMargin={0.025}
						portHints={["pin11"]}
						pcbX="-7.525004mm"
						pcbY="-5.14998335mm"
						width="1.499997mm"
						height="0.7999984mm"
						shape="rect"
					/>
					<smtpad
						solderMaskMargin={0.025}
						portHints={["pin12"]}
						pcbX="-4.445mm"
						pcbY="-7.20001735mm"
						width="0.7999984mm"
						height="1.499997mm"
						shape="rect"
					/>
					<smtpad
						solderMaskMargin={0.025}
						portHints={["pin13"]}
						pcbX="-3.175mm"
						pcbY="-7.20001735mm"
						width="0.7999984mm"
						height="1.499997mm"
						shape="rect"
					/>
					<smtpad
						solderMaskMargin={0.025}
						portHints={["pin14"]}
						pcbX="-1.905mm"
						pcbY="-7.20001735mm"
						width="0.7999984mm"
						height="1.499997mm"
						shape="rect"
					/>
					<smtpad
						solderMaskMargin={0.025}
						portHints={["pin15"]}
						pcbX="-0.635mm"
						pcbY="-7.20001735mm"
						width="0.7999984mm"
						height="1.499997mm"
						shape="rect"
					/>
					<smtpad
						solderMaskMargin={0.025}
						portHints={["pin16"]}
						pcbX="0.635mm"
						pcbY="-7.20001735mm"
						width="0.7999984mm"
						height="1.499997mm"
						shape="rect"
					/>
					<smtpad
						solderMaskMargin={0.025}
						portHints={["pin17"]}
						pcbX="1.905mm"
						pcbY="-7.20001735mm"
						width="0.7999984mm"
						height="1.499997mm"
						shape="rect"
					/>
					<smtpad
						solderMaskMargin={0.025}
						portHints={["pin18"]}
						pcbX="3.175mm"
						pcbY="-7.20001735mm"
						width="0.7999984mm"
						height="1.499997mm"
						shape="rect"
					/>
					<smtpad
						solderMaskMargin={0.025}
						portHints={["pin19"]}
						pcbX="4.445mm"
						pcbY="-7.20001735mm"
						width="0.7999984mm"
						height="1.499997mm"
						shape="rect"
					/>
					<smtpad
						solderMaskMargin={0.025}
						portHints={["pin20"]}
						pcbX="7.525004mm"
						pcbY="-5.14998335mm"
						width="1.499997mm"
						height="0.7999984mm"
						shape="rect"
					/>
					<smtpad
						solderMaskMargin={0.025}
						portHints={["pin21"]}
						pcbX="7.525004mm"
						pcbY="-3.87998335mm"
						width="1.499997mm"
						height="0.7999984mm"
						shape="rect"
					/>
					<smtpad
						solderMaskMargin={0.025}
						portHints={["pin22"]}
						pcbX="7.525004mm"
						pcbY="-2.60998335mm"
						width="1.499997mm"
						height="0.7999984mm"
						shape="rect"
					/>
					<smtpad
						solderMaskMargin={0.025}
						portHints={["pin23"]}
						pcbX="7.525004mm"
						pcbY="-1.33998335mm"
						width="1.499997mm"
						height="0.7999984mm"
						shape="rect"
					/>
					<smtpad
						solderMaskMargin={0.025}
						portHints={["pin24"]}
						pcbX="7.525004mm"
						pcbY="-0.06998335mm"
						width="1.499997mm"
						height="0.7999984mm"
						shape="rect"
					/>
					<smtpad
						solderMaskMargin={0.025}
						portHints={["pin25"]}
						pcbX="7.525004mm"
						pcbY="1.20001665mm"
						width="1.499997mm"
						height="0.7999984mm"
						shape="rect"
					/>
					<smtpad
						solderMaskMargin={0.025}
						portHints={["pin26"]}
						pcbX="7.525004mm"
						pcbY="2.47001665mm"
						width="1.499997mm"
						height="0.7999984mm"
						shape="rect"
					/>
					<smtpad
						solderMaskMargin={0.025}
						portHints={["pin27"]}
						pcbX="7.525004mm"
						pcbY="3.74001665mm"
						width="1.499997mm"
						height="0.7999984mm"
						shape="rect"
					/>
					<smtpad
						solderMaskMargin={0.025}
						portHints={["pin28"]}
						pcbX="7.525004mm"
						pcbY="5.01001665mm"
						width="1.499997mm"
						height="0.7999984mm"
						shape="rect"
					/>
					<smtpad
						solderMaskMargin={0.025}
						portHints={["pin29"]}
						pcbX="7.525004mm"
						pcbY="6.28001665mm"
						width="1.499997mm"
						height="0.7999984mm"
						shape="rect"
					/>
					<smtpad
						solderMaskMargin={0.025}
						portHints={["pin30"]}
						pcbX="7.525004mm"
						pcbY="7.55001665mm"
						width="1.499997mm"
						height="0.7999984mm"
						shape="rect"
					/>
					<silkscreenpath
						route={[
							{ x: -5.076139200000057, y: -7.450029549999954 },
							{ x: -7.729982000000064, y: -7.450029549999954 },
						]}
					/>
					<silkscreenpath
						route={[
							{ x: 7.779994600000009, y: -5.7811479499999905 },
							{ x: 7.779994600000009, y: -7.450029549999954 },
							{ x: 5.07611380000003, y: -7.450029549999954 },
						]}
					/>
					<silkscreenpath
						route={[
							{ x: -7.779994600000123, y: 8.181105049999928 },
							{ x: -7.779994600000123, y: 15.049925449999932 },
							{ x: 7.779994600000009, y: 15.049925449999932 },
							{ x: 7.779994600000009, y: 8.181054249999875 },
						]}
					/>
					<silkscreenpath
						route={[
							{ x: -7.779994600000123, y: -7.450029549999954 },
							{ x: -7.779994600000123, y: -5.7810971500000505 },
						]}
					/>
					<silkscreentext
						text="{NAME}"
						pcbX="-0.007112mm"
						pcbY="16.07298865mm"
						anchorAlignment="center"
						fontSize="1mm"
					/>
					<fabricationnotepath
						route={[
							{ x: -7.826984599999946, y: 7.9999522499999784 },
							{ x: -7.826984599999946, y: 14.899938449999922 },
							{ x: -7.789787161210825, y: 14.989741011210526 },
							{ x: -7.699984599999993, y: 15.026938449999875 },
							{ x: 7.699984600000107, y: 15.026938449999875 },
							{ x: 7.789787161210825, y: 14.989741011210526 },
							{ x: 7.82698460000006, y: 14.899938449999922 },
							{ x: 7.82698460000006, y: 7.9999522499999784 },
							{ x: 7.699984600000107, y: 8.126952249999931 },
							{ x: 7.572984600000154, y: 7.9999522499999784 },
							{ x: 7.572984600000154, y: 14.772938449999856 },
							{ x: -7.572984600000041, y: 14.772938449999856 },
							{ x: -7.572984600000041, y: 7.9999522499999784 },
							{ x: -7.699984599999993, y: 8.126952249999931 },
							{ x: -7.826984599999946, y: 7.9999522499999784 },
						]}
						strokeWidth="0.254mm"
					/>
					<courtyardoutline
						outline={[
							{ x: -8.537512000000106, y: 15.322988649999957 },
							{ x: 8.523288000000093, y: 15.322988649999957 },
							{ x: 8.523288000000093, y: -8.21481134999999 },
							{ x: -8.537512000000106, y: -8.21481134999999 },
							{ x: -8.537512000000106, y: 15.322988649999957 },
						]}
					/>
				</footprint>
			}
			cadModel={{
				objUrl:
					"https://modelcdn.tscircuit.com/easyeda_models/assets/C7500868.obj?uuid=91f9678f64b74f02bb2f07c18726989f",
				stepUrl:
					"https://modelcdn.tscircuit.com/easyeda_models/assets/C7500868.step?uuid=91f9678f64b74f02bb2f07c18726989f",
				pcbRotationOffset: 0,
				modelOriginPosition: {
					x: 0.000012700000070253736,
					y: -3.7779477499999574,
					z: -0.01,
				},
			}}
			{...props}
		/>
	);
};