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/jst5_zh.jscad.json
{
"type": "union",
"shapes": [
{
"type": "translate",
"vector": [0, 0, 6],
"shape": {
"type": "rotate",
"angles": [3.141592653589793, 0, 0],
"shape": {
"type": "applyMaterial",
"material": { "metalness": 0, "roughness": 0.7 },
"shape": {
"type": "colorize",
"color": [
0.9607843137254902, 0.9607843137254902, 0.9607843137254902
],
"shape": {
"type": "subtract",
"shapes": [
{
"type": "translate",
"vector": [0, 0, 3],
"shape": { "type": "cuboid", "size": [10, 3.5, 6] }
},
{
"type": "translate",
"vector": [0, 0, 1.7999999999999998],
"shape": {
"type": "cuboid",
"size": [9, 2.5, 3.5999999999999996]
}
},
{
"type": "translate",
"vector": [0, 0, 0.6],
"shape": {
"type": "cuboid",
"size": [10, 1.1666666666666667, 3.5999999999999996]
}
},
{
"type": "translate",
"vector": [0, 1.625, 1.7999999999999998],
"shape": {
"type": "cuboid",
"size": [9, 0.25, 3.5999999999999996]
}
},
{
"type": "translate",
"vector": [0, -1.625, 1.7999999999999998],
"shape": {
"type": "cuboid",
"size": [9, 0.25, 3.5999999999999996]
}
},
{
"type": "translate",
"vector": [-2.5, 1.75, 3],
"shape": { "type": "cuboid", "size": [1, 2.5, 1] }
},
{
"type": "translate",
"vector": [2.5, 1.75, 3],
"shape": { "type": "cuboid", "size": [1, 3.5, 1] }
},
{
"type": "translate",
"vector": [-2.5, -1.75, 3],
"shape": { "type": "cuboid", "size": [1, 2.5, 1] }
},
{
"type": "translate",
"vector": [2.5, -1.75, 3],
"shape": { "type": "cuboid", "size": [1, 3.5, 1] }
}
]
}
}
},
"material": { "metalness": 0, "roughness": 0.7 }
},
"material": { "metalness": 0, "roughness": 0.7 }
},
{
"type": "applyMaterial",
"material": { "metalness": 0.8, "roughness": 0.55 },
"shape": {
"type": "colorize",
"color": [
0.38823529411764707, 0.34901960784313724, 0.34901960784313724
],
"shape": {
"type": "translate",
"vector": [-3, 0, 2.5],
"shape": { "type": "cylinder", "radius": 0.35, "height": 6 }
}
}
},
{
"type": "applyMaterial",
"material": { "metalness": 0.8, "roughness": 0.55 },
"shape": {
"type": "colorize",
"color": [
0.38823529411764707, 0.34901960784313724, 0.34901960784313724
],
"shape": {
"type": "translate",
"vector": [-1.5, 0, 2.5],
"shape": { "type": "cylinder", "radius": 0.35, "height": 6 }
}
}
},
{
"type": "applyMaterial",
"material": { "metalness": 0.8, "roughness": 0.55 },
"shape": {
"type": "colorize",
"color": [
0.38823529411764707, 0.34901960784313724, 0.34901960784313724
],
"shape": {
"type": "translate",
"vector": [0, 0, 2.5],
"shape": { "type": "cylinder", "radius": 0.35, "height": 6 }
}
}
},
{
"type": "applyMaterial",
"material": { "metalness": 0.8, "roughness": 0.55 },
"shape": {
"type": "colorize",
"color": [
0.38823529411764707, 0.34901960784313724, 0.34901960784313724
],
"shape": {
"type": "translate",
"vector": [1.5, 0, 2.5],
"shape": { "type": "cylinder", "radius": 0.35, "height": 6 }
}
}
},
{
"type": "applyMaterial",
"material": { "metalness": 0.8, "roughness": 0.55 },
"shape": {
"type": "colorize",
"color": [
0.38823529411764707, 0.34901960784313724, 0.34901960784313724
],
"shape": {
"type": "translate",
"vector": [3, 0, 2.5],
"shape": { "type": "cylinder", "radius": 0.35, "height": 6 }
}
}
},
{
"type": "applyMaterial",
"material": { "metalness": 1, "roughness": 0.35 },
"shape": {
"type": "colorize",
"color": [0, 1, 0],
"shape": {
"type": "translate",
"vector": [-3, 0, 0],
"shape": {
"type": "subtract",
"shapes": [
{
"type": "translate",
"vector": [0, 0, 0],
"shape": { "type": "cuboid", "size": [1.03, 1.73, 0.01] }
},
{ "type": "cylinder", "radius": 0.365, "height": 0.01 }
]
}
}
}
},
{
"type": "applyMaterial",
"material": { "metalness": 1, "roughness": 0.35 },
"shape": {
"type": "colorize",
"color": [0.7215686274509804, 0.45098039215686275, 0.2],
"shape": {
"type": "translate",
"vector": [-1.5, 0, 0],
"shape": {
"type": "subtract",
"shapes": [
{
"type": "hull",
"shapes": [
{
"type": "translate",
"vector": [0, -0.35, 0],
"shape": {
"type": "cylinder",
"radius": 0.515,
"height": 0.01
}
},
{
"type": "translate",
"vector": [0, 0.35, 0],
"shape": {
"type": "cylinder",
"radius": 0.515,
"height": 0.01
}
}
]
},
{ "type": "cylinder", "radius": 0.365, "height": 0.01 }
]
}
}
}
},
{
"type": "applyMaterial",
"material": { "metalness": 1, "roughness": 0.35 },
"shape": {
"type": "colorize",
"color": [0.7215686274509804, 0.45098039215686275, 0.2],
"shape": {
"type": "translate",
"vector": [0, 0, 0],
"shape": {
"type": "subtract",
"shapes": [
{
"type": "hull",
"shapes": [
{
"type": "translate",
"vector": [0, -0.35, 0],
"shape": {
"type": "cylinder",
"radius": 0.515,
"height": 0.01
}
},
{
"type": "translate",
"vector": [0, 0.35, 0],
"shape": {
"type": "cylinder",
"radius": 0.515,
"height": 0.01
}
}
]
},
{ "type": "cylinder", "radius": 0.365, "height": 0.01 }
]
}
}
}
},
{
"type": "applyMaterial",
"material": { "metalness": 1, "roughness": 0.35 },
"shape": {
"type": "colorize",
"color": [0.7215686274509804, 0.45098039215686275, 0.2],
"shape": {
"type": "translate",
"vector": [1.5, 0, 0],
"shape": {
"type": "subtract",
"shapes": [
{
"type": "hull",
"shapes": [
{
"type": "translate",
"vector": [0, -0.35, 0],
"shape": {
"type": "cylinder",
"radius": 0.515,
"height": 0.01
}
},
{
"type": "translate",
"vector": [0, 0.35, 0],
"shape": {
"type": "cylinder",
"radius": 0.515,
"height": 0.01
}
}
]
},
{ "type": "cylinder", "radius": 0.365, "height": 0.01 }
]
}
}
}
},
{
"type": "applyMaterial",
"material": { "metalness": 1, "roughness": 0.35 },
"shape": {
"type": "colorize",
"color": [0.7215686274509804, 0.45098039215686275, 0.2],
"shape": {
"type": "translate",
"vector": [3, 0, 0],
"shape": {
"type": "subtract",
"shapes": [
{
"type": "hull",
"shapes": [
{
"type": "translate",
"vector": [0, -0.35, 0],
"shape": {
"type": "cylinder",
"radius": 0.515,
"height": 0.01
}
},
{
"type": "translate",
"vector": [0, 0.35, 0],
"shape": {
"type": "cylinder",
"radius": 0.515,
"height": 0.01
}
}
]
},
{ "type": "cylinder", "radius": 0.365, "height": 0.01 }
]
}
}
}
}
]
}