Hello everyone,
Currently, I am starting in the fancy world of Arduino and sensors. After buying the Grove - Multichannel Gas Sensor V2, together with the Grove Base Shield V2 and the Sintron Uno R3, I did some research on connecting the sensor. It says to preheat the sensor to get the best values.
The Grove Base Shield V2 is placed on top of the Arduino and the gas sensor is connected to the Base shield using the delivered I2C cables. All leds were turned on after connecting the system via USB to my PC, so it seemed to me that the first phase was a success. Then, without disconnecting from the PC, I did the preheating by leaving the arduino connected (via USB) to my PC for 24 hours. After this, I downloaded the zip library via GitHub - Seeed-Studio/Seeed_Arduino_MultiGas: This library could be used to detect four different gas concentrations and display them on the terminal. (archive/master.zip) and created some relatively simple code to print all the values of the gas sensors:
#include <Multichannel_Gas_GMXXX.h>
#include <Wire.h>
GAS_GMXXX<TwoWire> gas;
void setup() {
Serial.begin(9600);
gas.begin(Wire, 0x08); // use the hardware I2C
}
void loop() {
// put your main code here, to run repeatedly:
// GM102B NO2 sensor
int valNO2 = gas.getGM102B();
if (valNO2 > 999) valNO2 = 999;
// GM302B C2H5CH sensor
int valC2H5CH = gas.getGM302B();
if (valC2H5CH > 999) valC2H5CH = 999;
// GM502B VOC sensor
int valVOC = gas.getGM502B();
if (valVOC > 999) valVOC = 999;
// GM702B CO sensor
int valCO = gas.getGM702B();
if (valCO > 999) valCO = 999;
// Print the readings to the console
Serial.print("NO2: ");
Serial.print(gas.calcVol(valNO2));
Serial.println("ppm");
Serial.print("C2H5CH: ");
Serial.print(gas.calcVol(valC2H5CH));
Serial.println("ppm");
Serial.print("VOC: ");
Serial.print(gas.calcVol(valVOC));
Serial.println("ppm");
Serial.print("CO: ");
Serial.print(gas.calcVol(valCO));
Serial.println("ppm");
delay(100);
}
Running this code, the serial monitor shows only 0 ppm values for each gas, so it seems that the sensor is not picking up any gases.
Does anyone know what the problem could be and know any possible solutions?
Looking forwards to your reply, thanks!