Devesh36/usb-c-aqi-meter

A PETG-enclosed air-quality monitor assembly combining an AQI circuit board, Sensirion SPS30 particulate sensor, OLED display with bezel and glass, power slider, branding, and internal wiring harness.

Version
1.2.0
License
unset
Stars
0

Use with the tscircuit CLI

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

tsci clone Devesh36/usb-c-aqi-meter  # download the package files into ./usb-c-aqi-meter
tsci add Devesh36/usb-c-aqi-meter    # add it to your project as @tsci/Devesh36.usb-c-aqi-meter

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

import objPath from "./SMF5_0A.obj";
import stepPath from "./SMF5_0A.step";
import type { DiodeProps } from "@tscircuit/props";

const pinLabels = {
	pin1: ["K", "cathode", "neg"],
	pin2: ["A", "anode", "pos"],
} as const;

export const SMF5_0A = (props: DiodeProps) => {
	return (
		<diode
			pinLabels={pinLabels}
			supplierPartNumbers={{
				jlcpcb: ["C151296"],
			}}
			manufacturerPartNumber="SMF5.0A"
			footprint={
				<footprint>
					<smtpad
						portHints={["pin2"]}
						pcbX="1.6500094mm"
						pcbY="0mm"
						width="0.999998mm"
						height="1.1999976mm"
						shape="rect"
					/>
					<smtpad
						portHints={["pin1"]}
						pcbX="-1.6500094mm"
						pcbY="0mm"
						width="0.999998mm"
						height="1.1999976mm"
						shape="rect"
					/>
					<silkscreenpath
						route={[
							{ x: -1.5200376000000233, y: 0.94653100000005 },
							{ x: 1.4799563999999918, y: 0.94653100000005 },
						]}
					/>
					<silkscreenpath
						route={[
							{ x: -1.5066772000001265, y: -0.9331452000000127 },
							{ x: 1.4933168000000023, y: -0.9331452000000127 },
						]}
					/>
					<silkscreenpath
						route={[
							{ x: -0.7620000000000573, y: 0 },
							{ x: 0.7619999999999436, y: 0 },
						]}
					/>
					<silkscreenpath
						route={[
							{ x: -0.5080000000000382, y: 0.5079999999999245 },
							{ x: -0.5080000000000382, y: -0.5080000000001519 },
						]}
					/>
					<silkscreenpath
						route={[
							{ x: 0.5079999999999245, y: -0.40639999999996235 },
							{ x: -0.5080000000000382, y: 0 },
						]}
					/>
					<silkscreenpath
						route={[
							{ x: 0.5079999999999245, y: 0.40639999999996235 },
							{ x: 0.5079999999999245, y: -0.40639999999996235 },
						]}
					/>
					<silkscreenpath
						route={[
							{ x: -0.5080000000000382, y: 0 },
							{ x: 0.5079999999999245, y: 0.40639999999996235 },
						]}
					/>
					<silkscreentext
						text="{NAME}"
						pcbX="-0.014478mm"
						pcbY="1.9398mm"
						anchorAlignment="center"
						fontSize="1mm"
					/>
					<fabricationnotepath
						route={[
							{ x: -1.9049999999999727, y: 0.1269999999999527 },
							{ x: -1.0159999999999627, y: 0.1269999999999527 },
							{ x: -1.0159999999999627, y: -0.1270000000000664 },
							{ x: -1.9049999999999727, y: -0.1270000000000664 },
							{ x: -1.9049999999999727, y: 0.1269999999999527 },
						]}
						strokeWidth="0mm"
						isFilled
						hasStroke={false}
					/>
					<fabricationnotepath
						route={[
							{ x: 1.4713712000000214, y: -0.43637200000000576 },
							{ x: 1.4713712000000214, y: 0.45262800000000425 },
							{ x: 1.7253712000000405, y: 0.45262800000000425 },
							{ x: 1.7253712000000405, y: -0.43637200000000576 },
							{ x: 1.4713712000000214, y: -0.43637200000000576 },
						]}
						strokeWidth="0mm"
						isFilled
						hasStroke={false}
					/>
					<fabricationnotepath
						route={[
							{ x: 1.143000000000029, y: 0.1269999999999527 },
							{ x: 2.032000000000039, y: 0.1269999999999527 },
							{ x: 2.032000000000039, y: -0.1270000000000664 },
							{ x: 1.143000000000029, y: -0.1270000000000664 },
							{ x: 1.143000000000029, y: 0.1269999999999527 },
						]}
						strokeWidth="0mm"
						isFilled
						hasStroke={false}
					/>
					<courtyardoutline
						outline={[
							{ x: -2.400008400000047, y: 1.1570086000000401 },
							{ x: 2.400008400000047, y: 1.1570086000000401 },
							{ x: 2.400008400000047, y: -1.1429878000000144 },
							{ x: -2.400008400000047, y: -1.1429878000000144 },
							{ x: -2.400008400000047, y: 1.1570086000000401 },
						]}
					/>
				</footprint>
			}
			cadModel={{
				objUrl: objPath,
				stepUrl: stepPath,
				pcbRotationOffset: 0,
				modelOriginPosition: {
					x: -0.000012699999956566899,
					y: -0.007010400000012851,
					z: -0.21,
				},
			}}
			{...props}
		/>
	);
};