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/jst5_ph.jscad.json

{
  "type": "union",
  "shapes": [
    {
      "type": "translate",
      "vector": [
        0,
        0,
        6
      ],
      "shape": {
        "type": "rotate",
        "angles": [
          180,
          0,
          0
        ],
        "shape": {
          "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": [
                          11.9,
                          4.5,
                          6
                        ]
                      }
                    },
                    {
                      "type": "translate",
                      "vector": [
                        0,
                        0,
                        1.7999999999999998
                      ],
                      "shape": {
                        "type": "cuboid",
                        "size": [
                          10.9,
                          3.5,
                          3.5999999999999996
                        ]
                      }
                    },
                    {
                      "type": "translate",
                      "vector": [
                        0,
                        0,
                        0.6
                      ],
                      "shape": {
                        "type": "cuboid",
                        "size": [
                          11.9,
                          1.5,
                          3.5999999999999996
                        ]
                      }
                    },
                    {
                      "type": "translate",
                      "vector": [
                        0,
                        2.125,
                        1.7999999999999998
                      ],
                      "shape": {
                        "type": "cuboid",
                        "size": [
                          10.9,
                          0.25,
                          3.5999999999999996
                        ]
                      }
                    },
                    {
                      "type": "translate",
                      "vector": [
                        0,
                        -2.125,
                        1.7999999999999998
                      ],
                      "shape": {
                        "type": "cuboid",
                        "size": [
                          10.9,
                          0.25,
                          3.5999999999999996
                        ]
                      }
                    },
                    {
                      "type": "translate",
                      "vector": [
                        -5.25,
                        0,
                        3
                      ],
                      "shape": {
                        "type": "cuboid",
                        "size": [
                          1,
                          5,
                          1.8
                        ]
                      }
                    },
                    {
                      "type": "translate",
                      "vector": [
                        5.25,
                        0,
                        3
                      ],
                      "shape": {
                        "type": "cuboid",
                        "size": [
                          1,
                          5,
                          1.8
                        ]
                      }
                    },
                    {
                      "type": "translate",
                      "vector": [
                        -5.95,
                        0,
                        0.325
                      ],
                      "shape": {
                        "type": "cuboid",
                        "size": [
                          1.5,
                          0.8,
                          0.65
                        ]
                      }
                    },
                    {
                      "type": "translate",
                      "vector": [
                        -5.95,
                        0,
                        0.65
                      ],
                      "shape": {
                        "type": "rotate",
                        "angles": [
                          0,
                          1.5707963267948966,
                          0
                        ],
                        "shape": {
                          "type": "cylinder",
                          "radius": 0.4,
                          "height": 1.5
                        }
                      }
                    },
                    {
                      "type": "translate",
                      "vector": [
                        5.95,
                        0,
                        0.325
                      ],
                      "shape": {
                        "type": "cuboid",
                        "size": [
                          1.5,
                          0.8,
                          0.65
                        ]
                      }
                    },
                    {
                      "type": "translate",
                      "vector": [
                        5.95,
                        0,
                        0.65
                      ],
                      "shape": {
                        "type": "rotate",
                        "angles": [
                          0,
                          1.5707963267948966,
                          0
                        ],
                        "shape": {
                          "type": "cylinder",
                          "radius": 0.4,
                          "height": 1.5
                        }
                      }
                    }
                  ]
                }
              }
            },
            "material": {
              "metalness": 0,
              "roughness": 0.7
            }
          },
          "material": {
            "metalness": 0,
            "roughness": 0.7
          }
        },
        "material": {
          "metalness": 0,
          "roughness": 0.7
        }
      },
      "material": {
        "metalness": 0,
        "roughness": 0.7
      }
    },
    {
      "type": "translate",
      "vector": [
        0,
        0,
        6
      ],
      "shape": {
        "type": "rotate",
        "angles": [
          180,
          0,
          0
        ],
        "shape": {
          "type": "applyMaterial",
          "material": {
            "metalness": 0.8,
            "roughness": 0.55
          },
          "shape": {
            "type": "colorize",
            "color": [
              0.38823529411764707,
              0.34901960784313724,
              0.34901960784313724
            ],
            "shape": {
              "type": "translate",
              "vector": [
                -4,
                0,
                1.05
              ],
              "shape": {
                "type": "cuboid",
                "size": [
                  0.5,
                  0.5,
                  8.9
                ]
              }
            }
          }
        },
        "material": {
          "metalness": 0.8,
          "roughness": 0.55
        }
      },
      "material": {
        "metalness": 0.8,
        "roughness": 0.55
      }
    },
    {
      "type": "translate",
      "vector": [
        0,
        0,
        6
      ],
      "shape": {
        "type": "rotate",
        "angles": [
          180,
          0,
          0
        ],
        "shape": {
          "type": "applyMaterial",
          "material": {
            "metalness": 0.8,
            "roughness": 0.55
          },
          "shape": {
            "type": "colorize",
            "color": [
              0.38823529411764707,
              0.34901960784313724,
              0.34901960784313724
            ],
            "shape": {
              "type": "translate",
              "vector": [
                -2,
                0,
                1.05
              ],
              "shape": {
                "type": "cuboid",
                "size": [
                  0.5,
                  0.5,
                  8.9
                ]
              }
            }
          }
        },
        "material": {
          "metalness": 0.8,
          "roughness": 0.55
        }
      },
      "material": {
        "metalness": 0.8,
        "roughness": 0.55
      }
    },
    {
      "type": "translate",
      "vector": [
        0,
        0,
        6
      ],
      "shape": {
        "type": "rotate",
        "angles": [
          180,
          0,
          0
        ],
        "shape": {
          "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,
                1.05
              ],
              "shape": {
                "type": "cuboid",
                "size": [
                  0.5,
                  0.5,
                  8.9
                ]
              }
            }
          }
        },
        "material": {
          "metalness": 0.8,
          "roughness": 0.55
        }
      },
      "material": {
        "metalness": 0.8,
        "roughness": 0.55
      }
    },
    {
      "type": "translate",
      "vector": [
        0,
        0,
        6
      ],
      "shape": {
        "type": "rotate",
        "angles": [
          180,
          0,
          0
        ],
        "shape": {
          "type": "applyMaterial",
          "material": {
            "metalness": 0.8,
            "roughness": 0.55
          },
          "shape": {
            "type": "colorize",
            "color": [
              0.38823529411764707,
              0.34901960784313724,
              0.34901960784313724
            ],
            "shape": {
              "type": "translate",
              "vector": [
                2,
                0,
                1.05
              ],
              "shape": {
                "type": "cuboid",
                "size": [
                  0.5,
                  0.5,
                  8.9
                ]
              }
            }
          }
        },
        "material": {
          "metalness": 0.8,
          "roughness": 0.55
        }
      },
      "material": {
        "metalness": 0.8,
        "roughness": 0.55
      }
    },
    {
      "type": "translate",
      "vector": [
        0,
        0,
        6
      ],
      "shape": {
        "type": "rotate",
        "angles": [
          180,
          0,
          0
        ],
        "shape": {
          "type": "applyMaterial",
          "material": {
            "metalness": 0.8,
            "roughness": 0.55
          },
          "shape": {
            "type": "colorize",
            "color": [
              0.38823529411764707,
              0.34901960784313724,
              0.34901960784313724
            ],
            "shape": {
              "type": "translate",
              "vector": [
                4,
                0,
                1.05
              ],
              "shape": {
                "type": "cuboid",
                "size": [
                  0.5,
                  0.5,
                  8.9
                ]
              }
            }
          }
        },
        "material": {
          "metalness": 0.8,
          "roughness": 0.55
        }
      },
      "material": {
        "metalness": 0.8,
        "roughness": 0.55
      }
    },
    {
      "type": "translate",
      "vector": [
        0,
        0,
        6
      ],
      "shape": {
        "type": "rotate",
        "angles": [
          180,
          0,
          0
        ],
        "shape": {
          "type": "applyMaterial",
          "material": {
            "metalness": 1,
            "roughness": 0.35
          },
          "shape": {
            "type": "colorize",
            "color": [
              0,
              1,
              0
            ],
            "shape": {
              "type": "translate",
              "vector": [
                -4,
                0,
                0
              ],
              "shape": {
                "type": "subtract",
                "shapes": [
                  {
                    "type": "translate",
                    "vector": [
                      0,
                      0,
                      0
                    ],
                    "shape": {
                      "type": "cuboid",
                      "size": [
                        1.2,
                        1.2,
                        0.01
                      ]
                    }
                  },
                  {
                    "type": "cylinder",
                    "radius": 0.365,
                    "height": 0.01
                  }
                ]
              }
            }
          }
        },
        "material": {
          "metalness": 1,
          "roughness": 0.35
        }
      },
      "material": {
        "metalness": 1,
        "roughness": 0.35
      }
    },
    {
      "type": "translate",
      "vector": [
        0,
        0,
        6
      ],
      "shape": {
        "type": "rotate",
        "angles": [
          180,
          0,
          0
        ],
        "shape": {
          "type": "applyMaterial",
          "material": {
            "metalness": 1,
            "roughness": 0.35
          },
          "shape": {
            "type": "colorize",
            "color": [
              0.7215686274509804,
              0.45098039215686275,
              0.2
            ],
            "shape": {
              "type": "translate",
              "vector": [
                -2,
                0,
                0
              ],
              "shape": {
                "type": "subtract",
                "shapes": [
                  {
                    "type": "hull",
                    "shapes": [
                      {
                        "type": "translate",
                        "vector": [
                          0,
                          0,
                          0
                        ],
                        "shape": {
                          "type": "cylinder",
                          "radius": 0.6,
                          "height": 0.01
                        }
                      },
                      {
                        "type": "translate",
                        "vector": [
                          0,
                          0,
                          0
                        ],
                        "shape": {
                          "type": "cylinder",
                          "radius": 0.6,
                          "height": 0.01
                        }
                      }
                    ]
                  },
                  {
                    "type": "cylinder",
                    "radius": 0.365,
                    "height": 0.01
                  }
                ]
              }
            }
          }
        },
        "material": {
          "metalness": 1,
          "roughness": 0.35
        }
      },
      "material": {
        "metalness": 1,
        "roughness": 0.35
      }
    },
    {
      "type": "translate",
      "vector": [
        0,
        0,
        6
      ],
      "shape": {
        "type": "rotate",
        "angles": [
          180,
          0,
          0
        ],
        "shape": {
          "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,
                          0
                        ],
                        "shape": {
                          "type": "cylinder",
                          "radius": 0.6,
                          "height": 0.01
                        }
                      },
                      {
                        "type": "translate",
                        "vector": [
                          0,
                          0,
                          0
                        ],
                        "shape": {
                          "type": "cylinder",
                          "radius": 0.6,
                          "height": 0.01
                        }
                      }
                    ]
                  },
                  {
                    "type": "cylinder",
                    "radius": 0.365,
                    "height": 0.01
                  }
                ]
              }
            }
          }
        },
        "material": {
          "metalness": 1,
          "roughness": 0.35
        }
      },
      "material": {
        "metalness": 1,
        "roughness": 0.35
      }
    },
    {
      "type": "translate",
      "vector": [
        0,
        0,
        6
      ],
      "shape": {
        "type": "rotate",
        "angles": [
          180,
          0,
          0
        ],
        "shape": {
          "type": "applyMaterial",
          "material": {
            "metalness": 1,
            "roughness": 0.35
          },
          "shape": {
            "type": "colorize",
            "color": [
              0.7215686274509804,
              0.45098039215686275,
              0.2
            ],
            "shape": {
              "type": "translate",
              "vector": [
                2,
                0,
                0
              ],
              "shape": {
                "type": "subtract",
                "shapes": [
                  {
                    "type": "hull",
                    "shapes": [
                      {
                        "type": "translate",
                        "vector": [
                          0,
                          0,
                          0
                        ],
                        "shape": {
                          "type": "cylinder",
                          "radius": 0.6,
                          "height": 0.01
                        }
                      },
                      {
                        "type": "translate",
                        "vector": [
                          0,
                          0,
                          0
                        ],
                        "shape": {
                          "type": "cylinder",
                          "radius": 0.6,
                          "height": 0.01
                        }
                      }
                    ]
                  },
                  {
                    "type": "cylinder",
                    "radius": 0.365,
                    "height": 0.01
                  }
                ]
              }
            }
          }
        },
        "material": {
          "metalness": 1,
          "roughness": 0.35
        }
      },
      "material": {
        "metalness": 1,
        "roughness": 0.35
      }
    },
    {
      "type": "translate",
      "vector": [
        0,
        0,
        6
      ],
      "shape": {
        "type": "rotate",
        "angles": [
          180,
          0,
          0
        ],
        "shape": {
          "type": "applyMaterial",
          "material": {
            "metalness": 1,
            "roughness": 0.35
          },
          "shape": {
            "type": "colorize",
            "color": [
              0.7215686274509804,
              0.45098039215686275,
              0.2
            ],
            "shape": {
              "type": "translate",
              "vector": [
                4,
                0,
                0
              ],
              "shape": {
                "type": "subtract",
                "shapes": [
                  {
                    "type": "hull",
                    "shapes": [
                      {
                        "type": "translate",
                        "vector": [
                          0,
                          0,
                          0
                        ],
                        "shape": {
                          "type": "cylinder",
                          "radius": 0.6,
                          "height": 0.01
                        }
                      },
                      {
                        "type": "translate",
                        "vector": [
                          0,
                          0,
                          0
                        ],
                        "shape": {
                          "type": "cylinder",
                          "radius": 0.6,
                          "height": 0.01
                        }
                      }
                    ]
                  },
                  {
                    "type": "cylinder",
                    "radius": 0.365,
                    "height": 0.01
                  }
                ]
              }
            }
          }
        },
        "material": {
          "metalness": 1,
          "roughness": 0.35
        }
      },
      "material": {
        "metalness": 1,
        "roughness": 0.35
      }
    }
  ]
}