Portable CO2 sensor - ESP32 M5Stack compatible

Portable CO2 sensor - ESP32 M5Stack compatible

thingiverse

## M5CoreInk / M5StickC CO2 Sensirion sensor hat Source code and 3DPrint files for making a CO2 hat for M5CoreInk/M5StickC (or any ESP32 compatible board), this use a Sensirion SCD30 sensor for get CO2 values. ## Components | Description | Store link | |----------------------------|-------------------------------| | M5CoreInk |[M5Stack](https://m5stack.com/collections/m5-core/products/m5stack-esp32-core-ink-development-kit1-54-elnk-display) | | M5Stack Proto | [M5Stack](https://m5stack.com/collections/m5-core/products/m5stack-esp32-core-ink-development-kit1-54-elnk-display) | | Sensirion SCD30 | [Mouser](https://eu.mouser.com/ProductDetail/Sensirion/SCD30/?qs=rrS6PyfT74fdywu4FxpYjQ%3D%3D) | | | | M5StickC (compatible) | [M5Stack](https://m5stack.com/collections/m5-core/products/stick-c) | M5StickC Plus (compatible) | [M5Stack](https://m5stack.com/collections/m5-core/products/m5stickc-plus-esp32-pico-mini-iot-development-kit) | | | ## How to build it <iframe width="560" height="315" src="https://www.youtube.com/embed/im0LNFRrHCg" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe> ## Firmware upload First of all, install PlatformIO with your favourite IDE (i.e. VSCode). Follow [this](https://platformio.org/platformio-ide) instructions. Also, you may need to install [git](http://git-scm.com/) in your system. [source code](https://github.com/hpsaturn/co2_m5coreink) ### Clone the repo ```sh git clone https://github.com/hpsaturn/co2_m5coreink.git ``` ### Via IDE (vscode) Connect the M5CoreInk or compatible board via USB. In Windows 10, drivers are installed automatically. I guess with other OS will be automatically installed too. Open cloned folder with your PlatformIO IDE and build & upload it. For details please see the [documentation](https://docs.platformio.org/en/latest/integration/ide/vscode.html#quick-start), but the process flow is more easy than Arduino IDE flow, but you can also import it to the Arduino IDE if you want. ![PlatformIO Build tool](https://docs.platformio.org/en/latest/_images/platformio-ide-vscode-toolbar.png) ### Via PlatformIO CLI After the clone, enter to directory and you can build and upload the current firmware from CLI: ```shell pio run --target upload ``` # 3D print Files <a href="https://github.com/hpsaturn/co2_m5coreink/tree/master/box" target="_blank"><img src="https://raw.githubusercontent.com/hpsaturn/co2_m5coreink/master/images/3Dpreview.jpg"></a>

Download Model from thingiverse

With this file you will be able to print Portable CO2 sensor - ESP32 M5Stack compatible with your 3D printer. Click on the button and save the file on your computer to work, edit or customize your design. You can also find more 3D designs for printers on Portable CO2 sensor - ESP32 M5Stack compatible.