Skip to main content

Grove - Multichannel Gas Sensor

Grove – Multichannel Gas sensor is a environment detecting sensor with a built in MiCS-6814 which can detect many unhealthful gases, and three gases can be measured simultaneously due to its multi channels, so it can help you to monitor the concentration which more than one gas.

This sensor belongs to Grove system, and you can plug it onto the Base shield and work with Arduino directly without any jumper wires. The interface of it is I2C, so plug it onto the I2C port of Base shield, then you can start to work it.

Caution

The sensor value only reflects the approximated trend of gas concentration in a permissible error range, it DOES NOT represent the exact gas concentration. The detection of certain components in the air usually requires a more precise and costly instrument, which cannot be done with a single gas sensor. If your project is aimed at obtaining the gas concentration at a very precise level, then we do not recommend this gas sensor.

pir

tip
 We have updated the product to [Multichannel Gas Sensor v2](https://wiki.seeedstudio.com/Grove-Multichannel-Gas-Sensor-V2/) with more detailed documents and more onboard sensor modules. What's more, we've released the [Seeed Gas Sensor Selection Guide](https://wiki.seeedstudio.com/Sensor_gas/), it will help you choose the gas sensor that best suits your needs.

Before usage

We suggest you to read those knowledge before using the Gas sensor, it'll help you to learn more about Arduino and our products, and also it'll let you to use open souse hardware more easier.

  • Getting Started with Arduino
  • What is Grove system
  • Why i need a Base shield?

After reading that you will know how to use Base shield with Grove products to work well with Arduino. Let's start it !

To be prepared

This tutorial will include some necessary products:

  • Arduino UNO R3 or Seeeduino v4
  • Base Shield
  • Grove - Multichannel Gas Sensor

Hardware Overview

pir

Four pins are pointed out from the figure above

Pin LabelDescription
GNDConnect to ground
VCCPower supply: 3.3V - 5V
SDAI2C data
SCLI2C clock

The power supply is between 3.3V and 5V, so this sensor can be compatible with a micro-controller whose output voltage is 3.3V.

Features

  • Three fully independent sensing elements on one package
  • Built with ATmega168PA
  • I2C interface with programmable address
  • Heating power can be shut down for low power
  • Detectable gases
    • Carbon monoxide CO 1 – 1000ppm
    • Nitrogen dioxide NO2 0.05 – 10ppm
    • Ethanol C2H6OH 10 – 500ppm
    • Hydrogen H2 1 – 1000ppm
    • Ammonia NH3 1 – 500ppm
    • Methane CH4 >1000ppm
    • Propane C3H8 >1000ppm
    • Iso-butane C4H10 >1000ppm

Block Diagram

pir

Platforms Supported

ArduinoRaspberry Pi

pir

pir

caution
The platforms mentioned above as supported is/are an indication of the module's software 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.

Electrical Characteristics

ItemConditionMin.Typ.Max.Unit
Voltage-3.13.35.25V
Ripple@Max Power-80100mV
Heating Power---88mW
Max Power---150mW
ADC Precision--10-Bits
I2C Rate--100400kHz
VIL@I2C-0.5-0.99V
VIH@I2C2.31-5.25V

Performance RED sensor

Characteristic RED sensorSymbolTypMinMaxUnit
Sensing resistance in airR0-1001500
Typical CO detection rangeFS-11000ppm
Sensitivity factorSR-1.250-

pir

Performance OX sensor

Characteristic OX sensorSymbolTypMinMaxUnit
Sensing resistance in airR0-0.820
Typical NO2 detection rangeFS-0.0510ppm
Sensitivity factorSR-2--

pir

Performance NH3 sensor

Characteristic NH3 sensorSymbolTypMinMaxUnit
Sensing resistance in airR0-101500
Typical NH3 detection rangeFS-1300ppm
Sensitivity factorSR-1.515-

pir

Getting Started

danger
Then sensor need to preheat at least 10 minutes before getting a stable data.

Hardware Installation:

1.Connect Grove - Multichannel Gas Sensor to Seeeduino.

pir

Upload Code:

2.Download Arduino Library & Grove/Xadow firmware and install it to Arduino Library.

3.Open the code directly by the path:File -> Example -> Mutichannel_Gas_Sensor-> ReadSensorValue_Grove.

The code of ReadSensorValue_Grove is given below.

// Read Data from Grove - Multichannel Gas Sensor
#include <Wire.h>
#include "MutichannelGasSensor.h"

void setup()
{
Serial.begin(115200); // start serial for output
Serial.println("power on!");
gas.begin(0x04);//the default I2C address of the slave is 0x04
gas.powerOn();
Serial.print("Firmware Version = ");
Serial.println(gas.getVersion());
}

void loop()
{
float c;

c = gas.measure_NH3();
Serial.print("The concentration of NH3 is ");
if(c>=0) Serial.print(c);
else Serial.print("invalid");
Serial.println(" ppm");

c = gas.measure_CO();
Serial.print("The concentration of CO is ");
if(c>=0) Serial.print(c);
else Serial.print("invalid");
Serial.println(" ppm");

c = gas.measure_NO2();
Serial.print("The concentration of NO2 is ");
if(c>=0) Serial.print(c);
else Serial.print("invalid");
Serial.println(" ppm");

c = gas.measure_C3H8();
Serial.print("The concentration of C3H8 is ");
if(c>=0) Serial.print(c);
else Serial.print("invalid");
Serial.println(" ppm");

c = gas.measure_C4H10();
Serial.print("The concentration of C4H10 is ");
if(c>=0) Serial.print(c);
else Serial.print("invalid");
Serial.println(" ppm");

c = gas.measure_CH4();
Serial.print("The concentration of CH4 is ");
if(c>=0) Serial.print(c);
else Serial.print("invalid");
Serial.println(" ppm");

c = gas.measure_H2();
Serial.print("The concentration of H2 is ");
if(c>=0) Serial.print(c);
else Serial.print("invalid");
Serial.println(" ppm");

c = gas.measure_C2H5OH();
Serial.print("The concentration of C2H5OH is ");
if(c>=0) Serial.print(c);
else Serial.print("invalid");
Serial.println(" ppm");

delay(1000);
}

4.Upload the code. Remember to select Seeeduino Uno from the Tools | Board menu of the Arduino environment, and select the correct serial port Arduino is using.

By opening the serial monitor, you can see the raw data read from sensor.

pir

tip
More details about Grove modules please refer to [Grove System](https://wiki.seeedstudio.com/Grove_System/)

Update Firmware

This grove module has an ATmega168 MCU which is flashed with a factory firmware. The version had been updated to V2 at Nov11/2016. Upload below code to detect the versin of your sensor.

// Get firmware version of Grove Multichannel Gas Sensor
#include <Wire.h>
#include "MutichannelGasSensor.h"

#define SENSOR_ADDR 0X04 // default to 0x04

void setup()
{
Serial.begin(115200);
gas.begin(SENSOR_ADDR);

unsigned char version = gas.getVersion();
Serial.print("Version = ");
Serial.println(version);
}

void loop()
{
// nothing to do
}

If the version of your sensor is V1, we advise you to upgrade it to V2 to get a better performance.

To update the firmware, you need,

  • An Arduino UNO/Seeeduino V3/
  • 6 dupont wire
  • Soldering Iron

There's a ICSP pad on the back of the board, you need connect those pads to an Arduino board.

SensorArduino
MISOD12
SCKD13
NRSTD10
GNDGND
MOSID11
VCC5V

pir

Then open the example UpdateFrimware to your Arduino, open Serial monitor and you will get some info printed. Input a 'g' to start.

pir

calibration

If you always get an unauthentic value, please try to calibrate the sensor. Open the example calibration and upload to your Arduino, open Serial monitor to get info when it's calibrating.

note
The calibration has been done before the modules leave the factory. If you want to recalibrate, please do make sure that the air condition is fresh. And the calibration may need minutes to half an hour. 

Schematic Online Viewer

Resources

FAQ

  • Q1. How to change I2C address of the module

    • A1. Open the I2C_Address example and run it.
  • Q2. I change the I2C address and unlucky that I forget what is it.

    • A2. Don't worry about it, run factory_setting example to make it default. Please note that the calibration data will factory setting as well.
  • Q3. Does the multichannel gas sensor work with Wio GPS and Wio LTE?

    • *A3. Yes, please refer to below code.

Wio GPS:

#include <Wire.h>
#include "MutichannelGasSensor.h"

#define WIOLTE_GROVE_PIN (12)
#define SENSOR_ADDR 0X04 // default to 0x04

void setup()
{
SerialUSB.begin(115200);
pinMode(WIOLTE_GROVE_PIN, OUTPUT);
digitalWrite(WIOLTE_GROVE_PIN, HIGH);
delay(2000);
gas.begin(SENSOR_ADDR); //
}

void loop()
{
float R0_NH3, R0_CO, R0_NO2;
float Rs_NH3, Rs_CO, Rs_NO2;
float ratio_NH3, ratio_CO, ratio_NO2;

R0_NH3 = gas.getR0(0);
R0_CO = gas.getR0(1);
R0_NO2 = gas.getR0(2);

Rs_NH3 = gas.getRs(0);
Rs_CO = gas.getRs(1);
Rs_NO2 = gas.getRs(2);

ratio_NH3 = Rs_NH3/R0_NH3;
ratio_CO = Rs_CO/R0_CO;
ratio_NO2 = Rs_NH3/R0_NO2;

SerialUSB.println("R0:");
SerialUSB.print(R0_NH3);
SerialUSB.print('\t');
SerialUSB.print(R0_CO);
SerialUSB.print('\t');
SerialUSB.println(R0_NO2);

SerialUSB.println("Rs:");
SerialUSB.print(Rs_NH3);
SerialUSB.print('\t');
SerialUSB.print(Rs_CO);
SerialUSB.print('\t');
SerialUSB.println(Rs_NO2);

SerialUSB.println("ratio:");
SerialUSB.print(ratio_NH3);
SerialUSB.print('\t');
SerialUSB.print(ratio_CO);
SerialUSB.print('\t');
SerialUSB.println(ratio_NO2);

SerialUSB.println("------------------------");
delay(1000);
}

Wio LTE:

#include <Wire.h>
#include "MutichannelGasSensor.h"

#define WIOLTE_GROVE_PIN (26)
#define SENSOR_ADDR 0X04 // default to 0x04

void setup()
{
// SerialUSB.begin(115200);
pinMode(WIOLTE_GROVE_PIN, OUTPUT);
digitalWrite(WIOLTE_GROVE_PIN, HIGH);
delay(2000);
gas.begin(SENSOR_ADDR); //
}

void loop()
{
float R0_NH3, R0_CO, R0_NO2;
float Rs_NH3, Rs_CO, Rs_NO2;
float ratio_NH3, ratio_CO, ratio_NO2;

R0_NH3 = gas.getR0(0);
R0_CO = gas.getR0(1);
R0_NO2 = gas.getR0(2);

Rs_NH3 = gas.getRs(0);
Rs_CO = gas.getRs(1);
Rs_NO2 = gas.getRs(2);

ratio_NH3 = Rs_NH3/R0_NH3;
ratio_CO = Rs_CO/R0_CO;
ratio_NO2 = Rs_NH3/R0_NO2;

SerialUSB.println("R0:");
SerialUSB.print(R0_NH3);
SerialUSB.print('\t');
SerialUSB.print(R0_CO);
SerialUSB.print('\t');
SerialUSB.println(R0_NO2);

SerialUSB.println("Rs:");
SerialUSB.print(Rs_NH3);
SerialUSB.print('\t');
SerialUSB.print(Rs_CO);
SerialUSB.print('\t');
SerialUSB.println(Rs_NO2);

SerialUSB.println("ratio:");
SerialUSB.print(ratio_NH3);
SerialUSB.print('\t');
SerialUSB.print(ratio_CO);
SerialUSB.print('\t');
SerialUSB.println(ratio_NO2);

SerialUSB.println("------------------------");
delay(1000);
}

Projects

Smart Crops: Implementing IoT in Conventional Agriculture!: Our mission with nature is to preserve it, designing and implementing technologies and monitoring methods with the help of IoT via Helium.

Tech Support & Product Discussion

Upgradable to Industrial Sensors

With the SenseCAP S2110 controller and S2100 data logger, you can easily turn the Grove into a LoRaWAN® sensor. Seeed not only helps you with prototyping but also offers you the possibility to expand your project with the SenseCAP series of robust industrial sensors.

The IP66 housing, Bluetooth configuration, compatibility with the global LoRaWAN® network, built-in 19 Ah battery, and powerful support from APP make the SenseCAP S210x the best choice for industrial applications. The series includes sensors for soil moisture, air temperature and humidity, light intensity, CO2, EC, and an 8-in-1 weather station. Try the latest SenseCAP S210x for your next successful industrial project.

Loading Comments...