Wish List 0

Infrared Carbon Dioxide Sensor Mh Z19B Co2 Detection Sensor Module

Rs. 1,904.00 Rs. 2,171.00

Sensor description:
-MH-Z19 carbon dioxide fuel sensor (sensor for quick) is a preferred-motive, small-scale sensor, which makes use of non-dispersive infrared (NDIR) to discover the presence of CO2 in the air.
-It has exact selectivity and no oxygen dependence.
-Long existence, integrated temperature reimbursement; digital output and waveform output at the equal time, clean to use.
-This sensor is a high-performance sensor made by means of combining mature infrared absorption fuel detection generation with specific optical route layout and sophisticated circuit layout.
 
Sensor traits:
-High sensitivity, high decision, low strength intake Provide more than one output methods inclusive of UART, PWM waveform temperature compensation, splendid linear output, extremely good balance, long provider life, anti-moisture interference, non-poisoning, three Main applications: Can be extensively utilized in heating Cooling and indoor air fine tracking.

SPECIFICATIONS:
Operating Voltage (VDC)      3.6 to 5.5
Average Current(mA)          <18
Interface Level              3.3V
Measuring Range              0~5%VOL optional
Output Signal                PWM UART
Preheat Time(min)            3
Preheat Time                 90<60
Operating Temperature (°C)   0 to 50
Lifespan                     >5
Dimensions in mm             (LxWxH)
Weight (gm)                  6
Shipment Weight              0.095 kg
Shipment Dimensions          7 × 6 × 4 cm

OVERVIEW:

-Operating voltage: 3.6 V ~ 5.5V DC

-Average current: < 18 mA

-High sensitivity, high resolution.

-Low energy consumption.

-Output mode: UART and PWM wave.

-Temperature compensation, excellent linear output.

-Good stability and Long lifespan.

-Anti-interference of water vapor.

PACKAGE INCLUDES:

1 PCS x Infrared Carbon Dioxide Sensor Mh Z19B Co2 Detection Sensor Module


//SOURCE CODE TAKEN FROM BELOW LINK

//https://github.com/strange-v/MHZ19/commit/ba883d166eaba26b0d6f68c1cd0e664cd405a1ad#diff-0ed0d911ac33aa52872fe2b430b1c11b4fc604a64af96b29e72f1086ef497abe

#include <SoftwareSerial.h>

#include <MHZ19.h>


SoftwareSerial ss(17,16); //TX, RX

MHZ19 mhz(&ss);


unsigned long _time = 0;

char _command[255];

byte _idx = 0;

bool _readCommand = false;


void setup()

{

  Serial.begin(115200);

  Serial.println(F("Starting..."));


  ss.begin(9600);

}


void printCurrentValues()

{

  float k = 2.0/5.0;


  MHZ19_RESULT response = mhz.retrieveData();

  if (response == MHZ19_RESULT_OK)

  {

    Serial.print(F("CO2: "));

    Serial.println(mhz.getCO2());

    Serial.println(mhz.getCO2() * k);

    Serial.print(F("Temperature: "));

    Serial.println(mhz.getTemperature());

    Serial.print(F("Accuracy: "));

    Serial.println(mhz.getAccuracy());

  }

  else

  {

    Serial.print(F("Error, code: "));

    Serial.println(response);

  }

  Serial.println();

}


void loop()

{

  unsigned long ms = millis();

  if (ms - _time > 15000 || _time > ms)

  {

    _time = ms;

    printCurrentValues();

  }


  while (Serial.available() > 0)

  {

    char c = Serial.read();

    if (c == 13)

    {

      continue;

    }

    else if (c == 10)

    {

      _command[_idx] = '\0';

      _readCommand = true;

      _idx = 0;

    }

    else

    {

      _command[_idx] = c;

      _idx++;

    }

  }


  if (_readCommand)

  {

    _readCommand = false;


    if (strcmp(_command, "calibrate") == 0)

    {

      Serial.println(F("Calibration..."));

      mhz.sendCommand(0x87);

    }

  }

}


15 days

Write a review

Please login or register to review