Difference between revisions of "Mabee CO2"

From MakerFabsWiki
Jump to: navigation, search
(Introduction)
(Software setup)
 
(64 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
== Introduction ==
 
== 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.<br>
 
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)<br>
 
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)<br>
'''Mabee_TVOC and eCO2 SGP30 & Temperature and Humidity SHT31<br>'''
+
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.<br>
As a product of Mabee series, which is the new number of the Pico W Primer Kit. it can measure sensitively for TVOC and eCO2, also it can precisely measure the temperature and humidity at the same time. Not only that through the temperature and humidity compensation to to ensure accurate and reliable value of measurement. No matter you by the means of it to learning or product desgin,etc.<br>
+
This module fits applications such as indoor air quality monitoring, air purifier and so on. <br>
  
 
'''Model:[https://www.makerfabs.com/mabee-tvoc-and-eco2-sgp30-sht31.html MABSGP30]'''
 
'''Model:[https://www.makerfabs.com/mabee-tvoc-and-eco2-sgp30-sht31.html MABSGP30]'''
 
<br>
 
<br>
[[File:Mabee-SGP30-SHT31-4-.jpg|750px]]
+
[[File:Mabee-CO2 MODELE1.0.jpg|500px]]
 +
[[File:Mabee-CO2 MODELE2.0.jpg|500px]]
 +
,
  
 
== Feature ==
 
== 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
 
SGP30
Line 18: Line 28:
 
*Low power consumption: 48 mA at 1.8V
 
*Low power consumption: 48 mA at 1.8V
 
*Tape and reel packaged, reflow solderable
 
*Tape and reel packaged, reflow solderable
 +
 
SHT31
 
SHT31
 
*Fully calibrated, linearized, and temperature compensated digital output
 
*Fully calibrated, linearized, and temperature compensated digital output
Line 23: Line 34:
 
*I2C Interface with communication speeds up to 1 MHz and two user selectable addresses
 
*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
 
*Typical accuracy of 1.5 %RH and 0.1 °C for SHT35
*Very fast start-up and measurement time  
+
*Very fast start-up and measurement time
 
*Tiny 8-Pin DFN package
 
*Tiny 8-Pin DFN package
 
  
 
== Hardware ==
 
== Hardware ==
  
[[File:Mabee-SGP30-SHT31-1-1000x750.jpg|500px]]<br>
 
  
 +
[[File:ESP32-C3-text.png|600px]] <br>
  
 
== Usage ==
 
== Usage ==
 
+
'''All the projects are based on [https://www.makerfabs.com/ep32-c3-risc-v-spi-tft-touch.html ESP32-C3(RISC-V) SPI TFT Touch 3.5'' ILI9488 board].'''<br>
 +
Mabee CO2 connected to ESP32-C3(RISC-V) SPI TFT Touch 3.5'' ILI9488 board as follows. <br>
 +
[[File:Mabee-CO2 and C3 positive.jpg|500px]]
 +
[[File:Mabee-CO2 and C3 on back.jpg|500px]]
 
=== Software setup ===
 
=== Software setup ===
'''Note: It shows different results in some version, the same version is recommaned.'''<br>
+
'''Note: It maybe appears different results in another versions, the same version is recommended.'''<br>
 
1.Install the Arduino IDE V1.8.10.<br>
 
1.Install the Arduino IDE V1.8.10.<br>
 
2.Install the ESP32-C3 boards supporting package V2.0.5<br>
 
2.Install the ESP32-C3 boards supporting package V2.0.5<br>
Line 42: Line 55:
 
*Select “File>Preferences>settings>Additional Boards Manager URLs” to fill the link: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_dev_index.json
 
*Select “File>Preferences>settings>Additional Boards Manager URLs” to fill the link: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_dev_index.json
  
[[File:Usage1.jpg.jpg|800px]]
+
[[File:ESP32-C3-1.jpg|800px]]
  
 
*Click “Tools>Board>Boards Manager” to search for and install the ESP32 library:
 
*Click “Tools>Board>Boards Manager” to search for and install the ESP32 library:
Line 55: Line 68:
  
 
=== 1.I2C_SCAN ===
 
=== 1.I2C_SCAN ===
1. You can get the sourve code from [https://github.com/Makerfabs/Mabee_CO2/tree/main/example Github]<br>
+
The demo can detect all the I2C communication addresses, you can Validate them. <br>
 +
1. You can get the source code from [https://github.com/Makerfabs/Mabee Github]<br>
 
2. Open the file '''01_I2C_SCAN'''<br>
 
2. Open the file '''01_I2C_SCAN'''<br>
 
3. Verify it and upload<br>
 
3. Verify it and upload<br>
 
[[File:Usage4.jpg|500px]]
 
[[File:Usage4.jpg|500px]]
4. After done uploading, you will see the Serial Monitor as follow.<br>
+
<br>
[[File:Usage5.png|750px]]
+
4. After done uploading, you will see the Serial Monitor as follows. <br>
 +
[[File:ESP32-C3-5 new.png|750px]]
  
 
=== 2.SHT31test ===
 
=== 2.SHT31test ===
1.You can get the sourve code from [https://github.com/Makerfabs/Mabee_CO2/tree/main/example Github]<br>
+
The demo shows that Mabee_CO2 measures Temperature/Humidity and displays it in the serial monitor. <br>
 +
1.You can get the source code from [https://github.com/Makerfabs/Mabee Github]<br>
 
2.Open the file '''02_SHT31test'''<br>
 
2.Open the file '''02_SHT31test'''<br>
 
3.Verify it and upload<br>
 
3.Verify it and upload<br>
4.After done uploading, you will see the Serial Monitor as follow.<br>
+
4.After done uploading, you will see the Serial Monitor as follows.<br>
 
[[File:Usage6.png|750px]]
 
[[File:Usage6.png|750px]]
  
 
=== 3_SGP30test ===
 
=== 3_SGP30test ===
1.You can get the sourve code from [https://github.com/Makerfabs/Mabee_CO2/tree/main/example Github]<br>
+
The demo shows that Mabee_CO2 measures TVOC/eCO2 and displays it in the serial monitor. <br>
 +
1.You can get the source code from [https://github.com/Makerfabs/Mabee Github]<br>
 
2 Open the file '''03_sgp30test'''<br>
 
2 Open the file '''03_sgp30test'''<br>
 
3 Verify it and upload<br>
 
3 Verify it and upload<br>
4 After done uploading, you will see the Serial Monitor as follow.<br>
+
4 After done uploading, you will see the Serial Monitor as follows.<br>
 
[[File:Usage7.png|750px]]
 
[[File:Usage7.png|750px]]
  
 
=== 4_sgp30test_with_Humidity_Compensation ===
 
=== 4_sgp30test_with_Humidity_Compensation ===
1.You can get the sourve code from [https://github.com/Makerfabs/Mabee_CO2/tree/main/example Github]<br>
+
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. <br>
 +
1.You can get the source code from [https://github.com/Makerfabs/Mabee Github]<br>
 
2 Open the file '''04_sgp30test_with_Humidity_Compensation'''<br>
 
2 Open the file '''04_sgp30test_with_Humidity_Compensation'''<br>
 
3 Verify it and upload<br>
 
3 Verify it and upload<br>
4 After done uploading, you will see the Serial Monitor as follow.<br>
+
4 After done uploading, you will see the Serial Monitor as follows. <br>
 
[[File:Usage8.png|750px]]
 
[[File:Usage8.png|750px]]
 
<br>
 
<br>
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.
+
'''Now we only change the environment humidity/temperature to verify the sensor measure value can sensitive.'''
 +
<br>
 +
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.
 +
<br>
 +
[[File:ESP32-C3-2 compensation no hand.png|750px]]
 +
<br>
 +
Using the hand to artificially change the environment. Get a set of reference. <br>
 +
[[File:ESP32-C3-2 compensation.png|750px]]
 +
<br>
 +
In this control group, by using the hand to cover the sensor and the temperature and humidity will be changed. temperature and humidity compensation to ensure the accurate and reliable value of measurement, the numerical change becomes more sensitive.
 +
 
 +
=== 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. <br>
 +
1.You can get the source code from [https://github.com/Makerfabs/Makerfabs-ESP32-C3-SPI-TFT-with-Touch  Github]
 +
<br>
 +
2.Open the file:  '''Mabee_CO2_display.''' <br>
 +
3.Verify it and upload. <br>
 +
4.After done uploading, you will see the Serial Monitor as follows.<br>
 +
 
 +
[[File:With C3 display.jpg|500px]]
  
 
== FAQ ==
 
== 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.
 
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.
* Q2:Can't upload the code<br>
+
* Q1:Can't upload the code<br>
* A2:Let ESP32 in download mode by pressing the RESET key after hold the FLASH key when you're uploading the code.<br>
+
* A1:Let ESP32 in download mode by pressing the RESET key after hold the FLASH key when you're uploading the code.<br>
  
 
== Resources ==
 
== Resources ==
 
*[https://github.com/Makerfabs/Mabee_CO2 Github]
 
*[https://github.com/Makerfabs/Mabee_CO2 Github]
 +
*[https://sensirion.com/products/catalog/SGP30/ SGP30 datasheet]
 +
*[https://sensirion.com/products/catalog/SHT31-DIS-B/ SHT31 datasheet]

Latest revision as of 07:37, 17 October 2022

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
Mabee-CO2 MODELE1.0.jpg Mabee-CO2 MODELE2.0.jpg ,

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

ESP32-C3-text.png

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.
Mabee-CO2 and C3 positive.jpg Mabee-CO2 and C3 on back.jpg

Software setup

Note: It maybe appears different results in another versions, the same version is recommended.
1.Install the Arduino IDE V1.8.10.
2.Install the ESP32-C3 boards supporting package V2.0.5

ESP32-C3-1.jpg

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

Usage2 . jpg.png
3.Select and setting the parameter in the Tools menu, as the picture:

Usage3.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
Usage4.jpg
4. After done uploading, you will see the Serial Monitor as follows.
ESP32-C3-5 new.png

2.SHT31test

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_SHT31test
3.Verify it and upload
4.After done uploading, you will see the Serial Monitor as follows.
Usage6.png

3_SGP30test

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_sgp30test
3 Verify it and upload
4 After done uploading, you will see the Serial Monitor as follows.
Usage7.png

4_sgp30test_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_sgp30test_with_Humidity_Compensation
3 Verify it and upload
4 After done uploading, you will see the Serial Monitor as follows.
Usage8.png
Now we only change the environment humidity/temperature to verify the sensor measure value can 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.
ESP32-C3-2 compensation no hand.png
Using the hand to artificially change the environment. Get a set of reference.
ESP32-C3-2 compensation.png
In this control group, by using the hand to cover the sensor and the temperature and humidity will be changed. temperature and humidity compensation to ensure the accurate and reliable value of measurement, the numerical change becomes more sensitive.

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 done uploading, you will see the Serial Monitor as follows.

With C3 display.jpg

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