Devesh36/bench-eight

Eight-channel 0–10 V measurement and control console: dual ADS1115 ADCs, buffered inputs, Pico controller, microSD, RTC, RS-485, four protected low-voltage outputs and a separate OLED/encoder panel in a tscircuit assembly.

Version
0.1.3
License
unset
Stars
0

Use with the tscircuit CLI

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

tsci clone Devesh36/bench-eight  # download the package files into ./bench-eight
tsci add Devesh36/bench-eight    # add it to your project as @tsci/Devesh36.bench-eight

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

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

const pinLabels = {
	pin1: ["DAT2_RSV"],
	pin2: ["CDDAT3_CS"],
	pin3: ["CMD_DI"],
	pin4: ["VDD"],
	pin5: ["CLK_SCLK"],
	pin6: ["VSS"],
	pin7: ["DAT0_D0"],
	pin8: ["DAT1_RSV"],
	pin9: ["CD"],
	pin10: ["GND1"],
	pin11: ["GND4"],
	pin12: ["GND3"],
	pin13: ["GND2"],
} as const;

const pinAttributes = {
	pin4: { requiresPower: true },
	pin6: { requiresGround: true },
	pin10: { requiresGround: true },
	pin11: { requiresGround: true },
	pin12: { requiresGround: true },
	pin13: { requiresGround: true },
} as const;

export const TF_01A = (props: ChipProps<typeof pinLabels>) => {
	return (
		<connector
			pinLabels={pinLabels}
			pinAttributes={pinAttributes}
			supplierPartNumbers={{
				jlcpcb: ["C91145"],
			}}
			manufacturerPartNumber="TF-01A"
			footprint={
				<footprint>
					<hole
						pcbX="-4.9499393mm"
						pcbY="-5.39108015mm"
						diameter="0.999998mm"
					/>
					<hole pcbX="3.0500447mm" pcbY="-5.39108015mm" diameter="0.999998mm" />
					<smtpad
						portHints={["pin1"]}
						pcbX="2.2400133mm"
						pcbY="5.45108765mm"
						width="0.5999988mm"
						height="1.2999974mm"
						shape="rect"
					/>
					<smtpad
						portHints={["pin2"]}
						pcbX="1.1399647mm"
						pcbY="5.45108765mm"
						width="0.5999988mm"
						height="1.2999974mm"
						shape="rect"
					/>
					<smtpad
						portHints={["pin3"]}
						pcbX="0.0399161mm"
						pcbY="5.45108765mm"
						width="0.5999988mm"
						height="1.2999974mm"
						shape="rect"
					/>
					<smtpad
						portHints={["pin4"]}
						pcbX="-1.0601325mm"
						pcbY="5.45108765mm"
						width="0.5999988mm"
						height="1.2999974mm"
						shape="rect"
					/>
					<smtpad
						portHints={["pin5"]}
						pcbX="-2.1599525mm"
						pcbY="5.45108765mm"
						width="0.5999988mm"
						height="1.2999974mm"
						shape="rect"
					/>
					<smtpad
						portHints={["pin6"]}
						pcbX="-3.2600011mm"
						pcbY="5.45108765mm"
						width="0.5999988mm"
						height="1.2999974mm"
						shape="rect"
					/>
					<smtpad
						portHints={["pin7"]}
						pcbX="-4.3600497mm"
						pcbY="5.45108765mm"
						width="0.5999988mm"
						height="1.2999974mm"
						shape="rect"
					/>
					<smtpad
						portHints={["pin8"]}
						pcbX="-5.4598697mm"
						pcbY="5.45108765mm"
						width="0.5999988mm"
						height="1.2999974mm"
						shape="rect"
					/>
					<smtpad
						portHints={["pin9"]}
						pcbX="-6.5599691mm"
						pcbY="5.45068125mm"
						width="0.5999988mm"
						height="1.2999974mm"
						shape="rect"
					/>
					<smtpad
						portHints={["pin10"]}
						pcbX="-7.7599667mm"
						pcbY="4.60069565mm"
						width="1.1999976mm"
						height="1.3999972mm"
						shape="rect"
					/>
					<smtpad
						portHints={["pin13"]}
						pcbX="6.9200141mm"
						pcbY="4.60069565mm"
						width="1.1999976mm"
						height="1.3999972mm"
						shape="rect"
					/>
					<smtpad
						portHints={["pin12"]}
						pcbX="7.7599667mm"
						pcbY="-5.10108835mm"
						width="1.1999976mm"
						height="1.999996mm"
						shape="rect"
					/>
					<smtpad
						portHints={["pin11"]}
						pcbX="-7.7599667mm"
						pcbY="-5.10108835mm"
						width="1.1999976mm"
						height="1.999996mm"
						shape="rect"
					/>
					<silkscreenpath
						route={[
							{ x: -7.365987300000029, y: 3.581139650000182 },
							{ x: -7.365987300000029, y: -3.927989349999848 },
						]}
					/>
					<silkscreenpath
						route={[
							{ x: 7.366012699999828, y: -3.991514749999851 },
							{ x: 7.366012699999828, y: 3.501485250000087 },
						]}
					/>
					<silkscreenpath
						route={[
							{ x: -7.365987300000029, y: -6.340963949999946 },
							{ x: -7.365987300000029, y: -9.401054349999981 },
							{ x: 7.366012699999828, y: -9.401028949999954 },
							{ x: 7.366012699999828, y: -6.491027149999923 },
						]}
					/>
					<silkscreenpath
						route={[
							{ x: -7.365987300000029, y: -8.915685749999966 },
							{ x: -7.365987300000029, y: -8.691022750000116 },
							{ x: 1.000010699999848, y: -8.691022750000116 },
							{ x: 3.9370126999999684, y: -9.388100349999945 },
						]}
					/>
					<silkscreentext
						text="{NAME}"
						pcbX="0.0000127mm"
						pcbY="7.11097965mm"
						anchorAlignment="center"
						fontSize="1mm"
					/>
					<fabricationnotepath
						route={[
							{ x: -6.999998699999992, y: -9.490995750000025 },
							{ x: -6.999998699999992, y: 2.0090066500000603 },
							{ x: -5.999975300000074, y: 2.0090066500000603 },
							{ x: -5.999975300000074, y: -9.490995750000025 },
							{ x: -6.999998699999992, y: -9.490995750000025 },
						]}
						strokeWidth="0mm"
						isFilled
						hasStroke={false}
					/>
					<fabricationnotepath
						route={[
							{ x: 7.000024100000019, y: -9.490995750000025 },
							{ x: 7.000024100000019, y: 2.0090066500000603 },
							{ x: 6.0000007000001006, y: 2.0090066500000603 },
							{ x: 6.0000007000001006, y: -9.490995750000025 },
							{ x: 7.000024100000019, y: -9.490995750000025 },
						]}
						strokeWidth="0mm"
						isFilled
						hasStroke={false}
					/>
					<fabricationnotepath
						route={[
							{ x: -5.999975300000074, y: 2.0090066500000603 },
							{ x: 6.0000007000001006, y: 2.0090066500000603 },
							{ x: 6.0000007000001006, y: 1.0090086500000552 },
							{ x: -5.999975300000074, y: 1.0090086500000552 },
							{ x: -5.999975300000074, y: 2.0090066500000603 },
						]}
						strokeWidth="0mm"
						isFilled
						hasStroke={false}
					/>
					<courtyardoutline
						outline={[
							{ x: -8.60996549999993, y: 6.35108635000006 },
							{ x: 8.609965500000044, y: 6.35108635000006 },
							{ x: 8.609965500000044, y: -9.74998734999997 },
							{ x: -8.60996549999993, y: -9.74998734999997 },
							{ x: -8.60996549999993, y: 6.35108635000006 },
						]}
					/>
				</footprint>
			}
			cadModel={{
				objUrl:
					"https://modelcdn.tscircuit.com/easyeda_models/assets/C91145.obj?uuid=5685a23adc9a4e3e9b914abe5ae03aae",
				stepUrl:
					"https://modelcdn.tscircuit.com/easyeda_models/assets/C91145.step?uuid=5685a23adc9a4e3e9b914abe5ae03aae",
				pcbRotationOffset: 0,
				modelOriginPosition: {
					x: -0.0022224999997728645,
					y: 5.101310850000045,
					z: -0.14733820000000009,
				},
			}}
			{...props}
		/>
	);
};