Skip to content

Mabee_CO2

Introduction

This Mabee module is an air quality monitor. Based on SGP30, this module provides TVOC(Total Volatile Organic Compounds) and CO2eq output; Based on the Sensirion temperature/ humidity sensors SHT31, it output highest-accuracy ±2% relative humidity and ±0.3°C accuracy temperature.

VOC(Volatile Organic Compound). due to the chemical characteristics of itself, which has more dangerous in the enclosed place. So we always pay attention to the content of VOC in the enclosed place. And all kind of VOC measured are collectively called as TVOC(Total Volatile Organic Compounds)

Unlike some other TVOC/eCO2 testing boards, that require the users to get the humility/ temperature by some other way, or use a “default parameter”, Makerfabs made the SGP30/ SHT31 sensor together on the same board, to ensure that the true humidity/ temperature can be measured simultaneously, to calibrate& ensure the VOA/eCO2 testing accurate and reliable. In the hardware design, as the SGP30 heat the air/ board in the testing, the slot is designed to isolate the 2 sensors, to ensure the SHT31 measures the true environment humidity/ temperature.

This module fits applications such as indoor air quality monitoring, air purifier and so on. Model:MABSGP30

Feature

  • SGP30 I2C address: 0x58; SHT31 I2C address: 0x44
  • Thermal isolation by hardware slot
  • I2C Grove-compatible interface
  • Working voltage: 3.3V
  • Weight: 9g

SGP30

  • Multi-pixel gas sensor for indoor air quality applications
  • Outstanding long-term stability
  • I2C interface with TVOC and CO2eq output signals
  • Very small 6-pin DFN package: 2.45 x 2.45 x 0.9 mm3
  • Low power consumption: 48 mA at 1.8V
  • Tape and reel packaged, reflow solderable

SHT31

  • Fully calibrated, linearized, and temperature compensated digital output
  • Wide supply voltage range, from 2.15 V to 5.5 V
  • I2C Interface with communication speeds up to 1 MHz and two user selectable addresses
  • Typical accuracy of 1.5 %RH and 0.1 °C for SHT35
  • Very fast start-up and measurement time
  • Tiny 8-Pin DFN package

Hardware

MabeeCO2.jpg

Usage

All the projects are based on ESP32-C3(RISC-V) SPI TFT Touch 3.5 ILI9488 board.

Mabee CO2 connected to ESP32-C3(RISC-V) SPI TFT Touch 3.5 ILI9488 board as follows.

Software setup

Note: It maybe appears different results in another version, the same version is recommended.

1.Install the Arduino IDE V1.8.19.

2.Install the ESP32-C3 boards supporting package V2.0.5

ESP32C31.jpg

  • Click “Tools>Board>Boards Manager” to search for and install the ESP32 library:

ESP32C32 . jpg.png

3.Select and set the parameter in the Tools menu, as the picture:

ESP32C33.jpg

Note: Different PC has different Serial COM number.

1.I2C_SCAN

The demo can detect all the I2C communication addresses, you can Validate them.

1.You can get the source code from Github

2.Open the file 01_I2C_SCAN

3.Verify it and upload

ESP32C34.jpg

4.After uploading, you will see the Serial Monitor as follows

ESP32C35 new.png

2.SHT31 test

The demo shows that Mabee_CO2 measures Temperature/Humidity and displays it in the serial monitor.

1.You can get the source code from Github

2.Open the file 02_SHT31 test

3.Verify it and upload

4.After uploading, you will see the Serial Monitor as follows

ESP32C36.png

3.SGP30 test

The demo shows that Mabee_CO2 measures TVOC/eCO2 and displays it in the serial monitor.

1.You can get the source code from Github

2.Open the file 03_sgp30 test

3.Verify it and upload

4.After uploading, you will see the Serial Monitor as follows

ESP32C37.png

4.sgp30 test_with_Humidity_Compensation

By reading the datasheet of SGP30 we can know that it has built in calibration capabilities. but we increase the SHT30 sensor to set humidity/temperature compensation for better accuracy. The demo shows that TVOC/eCO2 measure value is more reliable and accurate by humidity/temperature compensation.

1.You can get the source code from Github

2.Open the file 04_sgp30 test_with_Humidity_Compensation

3.Verify it and upload

4.After uploading, you will see the Serial Monitor as follows.

ESP32C38.png

Now we only change the environment humidity/temperature to verify the sensor measurement value can be sensitive.

In this demo, by using the temperature and humidity compensation to ensure the accurate and reliable value of measurement, the numerical change becomes more sensitive.

ESP32C32  compensation no hand.png

Using the hand to artificially change the environment. Get a set of references.

ESP32C32  compensation.png

In this control group, by using the hand to cover the sensor and the temperature and humidity will change. temperature&humidity compensation ensures the accurate and reliable measured value, it will become more sensitive when the numerical value change.

5.Mabee_CO2_display

The demo shows that the Mabee_CO2 measure value is displayed in the LCD, it also uses the temperature/humidity compensation

1.You can get the source code from Github

2.Open the file: Mabee_CO2_display

3.Verify it and upload

4.After uploading, you will see the Serial Monitor as follows

ESP32C3SPITFTTouchILI9488 CO2.gif

FAQ

You can list your question here or contact support@makerfabs.com for technology support. Detailed descriptions of your question will be helped to solve your question.

  • Q1:Can't upload the code
  • A1:Let ESP32 in download mode by pressing the RESET key after hold the FLASH key when you're uploading the code.

Resources