Skip to content
This repository was archived by the owner on Oct 15, 2024. It is now read-only.

abnormal measurements #2

@matigumma

Description

@matigumma

Describe the bug
high values on measurements

im using:
nodemcu v1.0 (cp2102)

grove multi sensor v2

code:

#include <Multichannel_Gas_GMXXX.h>
#include <Wire.h>

GAS_GMXXX<TwoWire> gas;

unsigned int no2, c2h5ch, voc, co;

void setup() {

  Serial.begin(115200);
  gas.begin(Wire, 0x08);

}
void loop() {

//VOC
  voc = gas.getGM502B();
  Serial.print("VOC: ");
  Serial.print(voc);
  Serial.print(" ppm");Serial.print("  =  ");Serial.print(gas.calcVol(voc)); Serial.println("V");
  //CO
  co = gas.getGM702B();
  if (co > 999) co = 999;
  Serial.print("CO: ");
  Serial.print(co);
  Serial.print(" ppm");Serial.print("  =  ");Serial.print(gas.calcVol(co)); Serial.println("V");
  
  //NO2
  no2 = gas.getGM102B();
  if (no2 > 999) no2 = 999;
  Serial.print("NO2: ");
  Serial.print(no2);
  Serial.print(" ppm");Serial.print("  =  ");Serial.print(gas.calcVol(no2)); Serial.println("V");

  //C2H5CH
  c2h5ch = gas.getGM302B();
  if (c2h5ch > 999) c2h5ch = 999;
  Serial.print("C2H5CH: ");
  Serial.print(c2h5ch);
  Serial.print(" ppm");Serial.print("  =  ");Serial.print(gas.calcVol(c2h5ch)); Serial.println("V");

  Serial.println("----------------------------------------------------------------");
  delay(2000);
}

and i getting this as result :img attached
Screen Shot 2020-12-12 at 23 56 14

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions