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-meterIn 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/JstHeaders.tsx
import { Fragment } from "react";
// Geometry generated by @tscircuit/footprinter; dimensions and pad positions retained.
export function JstZh5() {
return (
<footprint insertionDirection="from_above">
<platedhole
portHints={["pin1"]}
pcbX={-3}
pcbY={0}
shape={"circular_hole_with_rect_pad"}
holeDiameter={0.73}
rectPadWidth={1.03}
rectPadHeight={1.73}
holeOffsetX={0}
holeOffsetY={0}
/>
<platedhole
portHints={["pin2"]}
pcbX={-1.5}
pcbY={0}
shape={"pill"}
outerWidth={1.03}
outerHeight={1.73}
holeWidth={0.73}
holeHeight={0.73}
/>
<platedhole
portHints={["pin3"]}
pcbX={0}
pcbY={0}
shape={"pill"}
outerWidth={1.03}
outerHeight={1.73}
holeWidth={0.73}
holeHeight={0.73}
/>
<platedhole
portHints={["pin4"]}
pcbX={1.5}
pcbY={0}
shape={"pill"}
outerWidth={1.03}
outerHeight={1.73}
holeWidth={0.73}
holeHeight={0.73}
/>
<platedhole
portHints={["pin5"]}
pcbX={3}
pcbY={0}
shape={"pill"}
outerWidth={1.03}
outerHeight={1.73}
holeWidth={0.73}
holeHeight={0.73}
/>
<silkscreenpath
route={[
{ x: -4.5, y: -1.75 },
{ x: 4.5, y: -1.75 },
{ x: 4.5, y: 1.75 },
{ x: -4.5, y: 1.75 },
{ x: -4.5, y: -1.75 },
]}
strokeWidth={0.1}
/>
<courtyardrect
pcbX={0}
pcbY={-0.45000000000000007}
width={10}
height={4.5}
/>
</footprint>
);
}
export function JstPh5() {
return (
<footprint insertionDirection="from_above">
<platedhole
portHints={["pin1"]}
pcbX={-4}
pcbY={0}
shape={"circular_hole_with_rect_pad"}
holeDiameter={0.75}
rectPadWidth={1.2}
rectPadHeight={1.75}
holeOffsetX={0}
holeOffsetY={0}
/>
<platedhole
portHints={["pin2"]}
pcbX={-2}
pcbY={0}
shape={"pill"}
outerWidth={1.2}
outerHeight={1.75}
holeWidth={0.75}
holeHeight={0.75}
/>
<platedhole
portHints={["pin3"]}
pcbX={0}
pcbY={0}
shape={"pill"}
outerWidth={1.2}
outerHeight={1.75}
holeWidth={0.75}
holeHeight={0.75}
/>
<platedhole
portHints={["pin4"]}
pcbX={2}
pcbY={0}
shape={"pill"}
outerWidth={1.2}
outerHeight={1.75}
holeWidth={0.75}
holeHeight={0.75}
/>
<platedhole
portHints={["pin5"]}
pcbX={4}
pcbY={0}
shape={"pill"}
outerWidth={1.2}
outerHeight={1.75}
holeWidth={0.75}
holeHeight={0.75}
/>
<silkscreenpath
route={[
{ x: -6, y: 3 },
{ x: 6, y: 3 },
{ x: 6, y: -2 },
{ x: -6, y: -2 },
{ x: -6, y: 3 },
]}
strokeWidth={0.1}
/>
<courtyardrect pcbX={0} pcbY={-0.55} width={12.9} height={5.5} />
</footprint>
);
}