Infrared Carbon Dioxide Sensor Mh Z19B Co2 Detection Sensor Module
Rs. 1,904.00 Rs. 2,171.00
- Brand: https://www.winsen-sensor.com/sensors/co2-sensor/mh-z19b.html
- Product Code: SEN-GAS
- SKU -
- Availability: 2-3 Days
- Price in reward points: 18
- For Bulk Order 9962060070
Quick support on WhatsApp (+919962060070) only between morning 11am-4pm, no call will be answered
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
https://www.winsen-sensor.com/sensors/co2-sensor/mh-z19b.html
//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