anil08607/Smartwatch

A 46 mm smartwatch PCB built around an nRF52810 BLE MCU, with USB‑C PD/Li‑ion charging, buck‑boost power, LCD, accelerometer, RTC, buttons, haptic motor, crystals, antenna, and SWD programming connector.

Version
1.0.14
License
unset
Stars
0

imports/TS_1806SA_2x4x3_5DY_180X.tsx

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

const pinLabels = {
	pin1: ["pin1"],
	pin2: ["pin2"],
	pin3: ["EP1"],
	pin4: ["pin3_alt1"],
} as const;

export const TS_1806SA_2x4x3_5DY_180X = (
	props: PushButtonProps<typeof pinLabels>,
) => {
	const { name = "SW1", ...restProps } = props;

	return (
		<pushbutton
			name={name}
			pinLabels={pinLabels}
			supplierPartNumbers={{ jlcpcb: ["C51927172"] }}
			manufacturerPartNumber="TS-1806SA-2x4x3.5DY-180X"
			footprint={
				<footprint>
					<hole
						pcbX="-0.849884mm"
						pcbY="-0.17502505mm"
						diameter="0.7500112mm"
					/>
					<hole pcbX="0.850138mm" pcbY="-0.17502505mm" diameter="0.7500112mm" />
					<smtpad
						portHints={["pin1"]}
						pcbX="-1.700022mm"
						pcbY="1.12494695mm"
						width="0.5999988mm"
						height="1.1999976mm"
						shape="rect"
					/>
					<smtpad
						portHints={["pin2"]}
						pcbX="1.700022mm"
						pcbY="1.12494695mm"
						width="0.5999988mm"
						height="1.1999976mm"
						shape="rect"
					/>
					<smtpad
						portHints={["pin3"]}
						pcbX="-2.1249894mm"
						pcbY="-1.07494705mm"
						width="1.0500106mm"
						height="1.2999974mm"
						shape="rect"
					/>
					<smtpad
						portHints={["pin4"]}
						pcbX="2.1249894mm"
						pcbY="-1.07494705mm"
						width="1.0500106mm"
						height="1.2999974mm"
						shape="rect"
					/>
					<silkscreenpath
						route={[
							{ x: 2.2311359999999922, y: 1.1650789499998382 },
							{ x: 2.4129999999998972, y: 1.1650789499998382 },
							{ x: 2.4129999999998972, y: -0.19377025000005688 },
						]}
					/>
					<silkscreenpath
						route={[
							{ x: -1.1688572000000477, y: 1.1650789499998382 },
							{ x: 1.168857199999934, y: 1.1650789499998382 },
						]}
					/>
					<silkscreenpath
						route={[
							{ x: -2.3500080000000025, y: 1.1650789499998382 },
							{ x: -2.231136000000106, y: 1.1650789499998382 },
						]}
					/>
					<silkscreenpath
						route={[
							{ x: -2.3500080000000025, y: 1.1650789499998382 },
							{ x: -2.3500080000000025, y: -0.30192345000011755 },
						]}
					/>
					<silkscreenpath
						route={[
							{ x: -1.1688572000000477, y: 1.1650789499998382 },
							{ x: 1.168857199999934, y: 1.1650789499998382 },
						]}
					/>
					<silkscreenpath
						route={[
							{ x: -0.999998000000005, y: -2.3339234500001567 },
							{ x: -0.999998000000005, y: -1.0749216500001921 },
						]}
					/>
					<silkscreenpath
						route={[
							{ x: 0.9999979999998914, y: -2.3339234500001567 },
							{ x: 0.9999979999998914, y: -1.0749216500001921 },
						]}
					/>
					<silkscreenpath
						route={[
							{ x: 0.9999979999998914, y: -2.3339234500001567 },
							{ x: -0.999998000000005, y: -2.3339234500001567 },
						]}
					/>
					<silkscreenpath
						route={[
							{ x: -0.7620000000000573, y: -1.0749216500001921 },
							{ x: -1.4188693999999487, y: -1.0749216500001921 },
						]}
					/>
					<silkscreenpath
						route={[
							{ x: 0.6349999999999909, y: -1.0749216500001921 },
							{ x: 1.4188693999999487, y: -1.0749216500001921 },
						]}
					/>
					<silkscreenpath
						route={[
							{ x: -0.7620000000000573, y: -1.0749216500001921 },
							{ x: 0.6349999999999909, y: -1.0749216500001921 },
						]}
					/>
					<silkscreenpath
						route={[
							{ x: -1.471422000000075, y: 2.184126949999836 },
							{ x: -1.4775409719666186, y: 2.1376487435185254 },
							{ x: -1.4954808900391754, y: 2.09433794999984 },
							{ x: -1.5240191784481567, y: 2.0571461284480392 },
							{ x: -1.5612109999999575, y: 2.0286078400391716 },
							{ x: -1.6045217935186429, y: 2.010667921966615 },
							{ x: -1.6510000000000673, y: 2.0045489499999576 },
							{ x: -1.6974782064814917, y: 2.010667921966615 },
							{ x: -1.7407890000000634, y: 2.0286078400391716 },
							{ x: -1.777980821551978, y: 2.0571461284480392 },
							{ x: -1.8065191099608455, y: 2.09433794999984 },
							{ x: -1.8244590280334023, y: 2.1376487435185254 },
							{ x: -1.8305780000000595, y: 2.184126949999836 },
							{ x: -1.8244590280334023, y: 2.2306051564812606 },
							{ x: -1.8065191099608455, y: 2.2739159500000596 },
							{ x: -1.777980821551978, y: 2.3111077715518604 },
							{ x: -1.7407890000000634, y: 2.3396460599606144 },
							{ x: -1.6974782064814917, y: 2.357585978033285 },
							{ x: -1.6510000000000673, y: 2.363704949999942 },
							{ x: -1.6045217935186429, y: 2.357585978033285 },
							{ x: -1.5612109999999575, y: 2.3396460599606144 },
							{ x: -1.5240191784481567, y: 2.3111077715518604 },
							{ x: -1.4954808900391754, y: 2.2739159500000596 },
							{ x: -1.4775409719666186, y: 2.2306051564812606 },
							{ x: -1.471422000000075, y: 2.184126949999836 },
						]}
					/>
					<silkscreentext
						text="{NAME}"
						pcbX="0.0127mm"
						pcbY="3.35887895mm"
						anchorAlignment="center"
						fontSize="1mm"
					/>
					<courtyardoutline
						outline={[
							{ x: -2.891600000000153, y: 2.6088789499997347 },
							{ x: 2.9169999999999163, y: 2.6088789499997347 },
							{ x: 2.9169999999999163, y: -2.6155210500000976 },
							{ x: -2.891600000000153, y: -2.6155210500000976 },
							{ x: -2.891600000000153, y: 2.6088789499997347 },
						]}
					/>
				</footprint>
			}
			cadModel={{
				objUrl:
					"https://modelcdn.tscircuit.com/easyeda_models/assets/C51927172.obj?uuid=344647488a214e7c8fc1e1a0f7808901",
				stepUrl:
					"https://modelcdn.tscircuit.com/easyeda_models/assets/C51927172.step?uuid=344647488a214e7c8fc1e1a0f7808901",
				pcbRotationOffset: 180,
				modelOriginPosition: {
					x: -0.000012700000070253736,
					y: -0.6626872500001028,
					z: -1.4123228,
				},
			}}
			{...restProps}
		/>
	);
};