Grove - VOC and eCO2 Gas Sensor(SGP30)
The Grove-VOC and eCO2 Gas Sensor(SGP30) is an air quality detection sensor. This grove module is based on SGP30, we provide TVOC(Total Volatile Organic Compounds) and CO2eq output for this module.
The SGP30 is a digital multi-pixel gas sensor designed for easy integration into air purifier, demand-controlled ventilation, and IoT applications. Sensirion’s CMOSens®technology offers a complete sensor system on a single chip featuring a digital I2C interface, a temperature controlled micro hotplate, and two preprocessed indoor air quality signals. As the first metal-oxide gas sensor featuring multiple sensing elements on one chip, the SGP30 provides more detailed information about the air quality.
We've released the Seeed Gas Sensor Selection Guide, it will help you choose the gas sensor that best suits your needs.
- Multi-pixel gas sensor for indoor air quality applications
- Outstanding long-term stability
- I2C interface with TVOC and CO2eq output signals
- Low power consumption
- Chip module tape and reel packaged, reflow solderable
|Output range||TVOC||0 ppb to 60000ppb|
|CO₂eq||400 ppm to 60000 ppm|
|0 - 2008 ppb / 1 ppb|
|2008 - 11110 ppb / 6 ppb|
|11110 - 60000 ppb / 32 ppb|
|400 - 1479 ppm / 1 ppm|
|1479 -5144 ppm / 3 ppm|
|5144 - 17597 ppm / 9 ppm|
|17597 - 60000 ppm / 31 ppm|
|Default I2C address||0X58|
- Air purifier
- demand-controlled ventilation
- IoT applications
- New house air condition monitor
The typical operating voltage SGP30 is 1.8v, we use a power conversion chip XC6206P182MR to provide a stable 3.3V for the MCP9600.
Bi-directional level shifter circuit
This is a typical Bi-directional level shifter circuit to connect two different voltage section of an I2C bus. The I2C bus of this sensor use 1.8V, if the I2C bus of the Arduino use 5V or 3.3V, this circuit will be needed. In the schematic above, Q7 and Q8 are N-Channel MOSFET BSS138LT3G, which act as a bidirectional switch. In order to better understand this part, you can refer to the AN10441
|Arduino||Raspberry Pi||BeagleBone||Wio||LinkIt ONE|
The platforms mentioned above as supported is/are an indication of the module's hardware or theoritical compatibility. We only provide software library or code examples for Arduino platform in most cases. It is not possible to provide software library / demo code for all possible MCU platforms. Hence, users have to write their own software library.
If this is the first time you work with Arduino, we strongly recommend you to see Getting Started with Arduino before the start.
Play With Arduino¶
|Seeeduino V4.2||Base Shield||Grove-VOC and eCO2 Gas Sensor(SGP30)|
|Get One Now||Get One Now||Get One Now|
1 Please plug the USB cable gently, otherwise you may damage the port. Please use the USB cable with 4 wires inside, the 2 wires cable can't transfer data. If you are not sure about the wire you have, you can click here to buy
2 Each Grove module comes with a Grove cable when you buy. In case you lose the Grove cable, you can click here to buy.
Step 1. Connect Grove-VOC and eCO2 Gas Sensor(SGP30) to I2C port of Grove-Base Shield.
Step 2. Plug Grove - Base Shield into Seeeduino.
Step 3. Connect Seeeduino to PC via a USB cable.
If we don't have Grove Base Shield, We also can directly connectGrove-VOC and eCO2 Gas Sensor(SGP30) to Seeeduino as below.
|Seeeduino||Grove-VOC and eCO2 Gas Sensor(SGP30)|
Step 1. Download the Seeed SGP30 library from Github.
Step 2. Refer to How to install library to install library for Arduino.
Step 3. Extract the
SGP30_Gas_Sensor-master.zipyou've just downloaded, in the
examplesfolder you will see 3 subfolders:
absolute_humidity_example requires external humidity sensor calibration
base_example is simplely collecting date without any calibration
baseline_operation_example can save the data base value to flash. The software will automatically collects the base values and stores them.
We recommand to use the
baseline_operation_example , then click the
xxx.ino file to open the example.
Step 4. Upload the demo. If you do not know how to upload the code, please check How to upload code.
Step 5. Open the Serial Monitor of Arduino IDE by click Tool-> Serial Monitor. Or tap the Ctrl+Shift+M key at the same time. if every thing goes well, you will get the result.
The result should be like:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
318 tVOC Concentration:74ppb CO2eq Concentration:506ppm 319 tVOC Concentration:80ppb CO2eq Concentration:509ppm 320 tVOC Concentration:66ppb CO2eq Concentration:500ppm 321 tVOC Concentration:69ppb CO2eq Concentration:511ppm 322 tVOC Concentration:70ppb CO2eq Concentration:511ppm 323 tVOC Concentration:60ppb CO2eq Concentration:493ppm 324 tVOC Concentration:72ppb CO2eq Concentration:502ppm
1- ppm: parts per million. 1 ppm = 1000 ppb (parts per billion)
2- The result is based on
3- We tested this demo in our office room, according to your test environment, the results may be different
- The SGP30 uses a dynamic baseline compensation algorithm and on-chip calibration parameters to provide two complementary air quality signals. The baseline should be stored in EEPROM.When there is no baseline value in EEPROM at the first time power-ON or the baseline record is older than seven days.The sensor has to run for 12 hours until the baseline can be stored. You can refer to program flow chart blow.
The H2_Signal and Ethanol_signal,Both signals can be used to calculate gas concentrations c relative to a reference concentration cref by ln(C/Cref)=(Sref-Sout)/a with a = 512, sref the H2_signal or Ethanol_signal output at the reference concentration, and sout = Sout_H2 or Sout = Sout_EthOH.
For more accurate measurement,You can set the abslute humidity compensation,Defalt value is 11.57g/m3,A little troublesome is that you should get relatively humidity value of environment from another way,Because there is no humidity measurement part integrated in SGP30..
Luckly, It's not much neccessary in a normal situation
- [Zip] Grove-VOC and eCO2 Gas Sensor(SGP30) eagle file
- [PDF] SGP30 Datasheet
- [PDF] BSS138L Datasheet
- [PDF] SGP30 Driver Integration Guide HW I2C