Winsen Mh-z16 Intelligent Infrared Gas Module User Manual

Winsen Mh-z16 Intelligent Infrared Gas Module User Manual

Winsen LOGO

MH-Z16
Intelligent Infrared Gas Module

User’s Manual
(Version: 2.4)
Issue Date: 2019.04.29
Zhengzhou Winsen Electronics Technology CO., LTD

Statement
This manual’s copyright belongs to Zhengzhou Winsen Electronics Technology Co., LTD. Without the written permission, any part of this manual shall not be copied,  translated, stored in a database or retrieval system, also can’t spread through electronic, copying, record ways.
Thanks for purchasing our products. In order to have customers use it better and reduce the faults caused by misuse, please read the manual carefully and operate it correctly in accordance with the instructions. If users disobey the terms or remove, disassemble, change the components inside of the sensor, we shall not be responsible for the loss.
The specific such as color, appearance, sizes &etc., please in kind prevail.
We are devoting ourselves to products development and technical innovation, so we reserve the right to improve the products without notice. Please confirm it is the valid version before using this manual. At the same time, users’ comments on the optimized using way are welcome.
Please keep the manual properly, in case you need help during the usage in the future.

MH-Z16 Intelligent Infrared Gas Module

Profile:

MH-Z16 NDIR Infrared gas module is a common type, small size sensor, using non-dispersive infrared (NDIR) principle to detect the existence of CO2 in the air, with good selectivity, non-oxygen dependent and long life. Built-in temperature compensation; and it has digital output and PWM wave output. This common type infrared gas sensor is developed by the tight integration of mature infrared absorbing gas detection technology, precision optical circuit design, and superior circuit design.

Main features:

  • High sensitivity, High resolution, Low power consumption
  • Output method: UART, PWM wave &etc
  • Quick response, Good stability
  • Temperature compensation,
  • Excellent linear output
  • Long lifespan
  • Anti-water vapor interference
  • No poisoning

Winsen MH-Z16 Intelligent Infrared -

Application:

  • HVAC equipment
  • air quality monitoring equipment
  • fresh air system
  • air purification equipment
  • intelligent home
  • education system
  • animal husbandry production
  • safety protection monitoring

Main technical parameters

Model No.MH-Z16
Detection GasCO2 gas
Working voltage4.5 V — 5.5V DC
Average current<85mA
Interface level3.3 V
Measuring range05%vol range selectable (refer to tablet.)
Output signalUART
PWM
Analog output DAC (0.42V)
Preheat time3 mins
Response TimeT90 < 30s
Working temperature-10°C — 50°C
Working humidity095%RH (no condensation)
Size97*20*17mm (L*W*H)
Weight21 g
Lifespan>5 years

Structure

Target GasMeasuring RangeAccuracyMark
Carbon Dioxide
(CO2)
02000ppm± (100ppm + 6% reading value )Temperature compensation
05000ppmTemperature compensation
01%VOLTemperature compensation
03%VOLTemperature compensation
05%VOLTemperature compensation
010% VOLTemperature compensation
015% VOLTemperature compensation

Winsen MH-Z16 Intelligent Infrared - Structure

Pin Definition

Winsen MH-Z16 Intelligent Infrared - Pin Definition

PIN No.Description
PIN 4Vin (Voltage Input)
PIN 3GNO
PIN 2Vout (0.42V)
PIN 7PWM
PIN 1HD (Zero calibration, keep low electrical level for more than 7 seconds)
PIN 5UART ( RXD )        TEL electrical level data input
PIN 6UART ( TXD )        TEL electrical level data output

Output methods

Analog output way (customized)
The Vout is proportional to the gas concentration,0.4-2V output stands for 0 to full scale.
Connection: Vin –5V, GND- Power Ground, Vout-input of ADC.
After the warm-up, Vout will show the voltage standing for the gas concentration.
If self-checking detects a fault, the output voltage is 0V.

Winsen MH-Z16 Intelligent Infrared - Analog

Analog voltage output(Vo)
CO2 Concentration(ppm)= (Vo-0.4V)*full scale/(2.0V-0.4V)

PWM output
Take 02000ppm for example
CO2 output range02000ppm
Cycle1004ms±5%
Cycle start high-level output2ms(theoretical value)
The middle cycle1000ms±5%
cycle end low-level output2ms(theoretical value)
CO2 concentration: Cppm=2000x(TH-2ms)/(TH+TL-4ms)
Cppm: CO2 concentration could be calculated by PWM output TH high-level output time during the cycle T1 low-level output time during the cycle

Winsen MH-Z16 Intelligent Infrared - PWM output

Serial port output (UART)
Hardware connection
Connect module’s Vin-GND-RXD-TXD to users’ 5V-GND-TXD-RXD.
(Users must use TTL level. If RS232 level, it must be converted.)
Software setting
Set serial port baud rate be 9600, data bit 8 bytes, stop bit 1byte, parity check byte is null.

Commands
0x86To read CO2 concentration
0x87To calibrate Zero Point (ZERO)
0x88To calibrate Span Point (SPAN)
0x79To Turn ON/OFF self-calibration function
0x99To set detection range
0x86- To read CO2 concentration
To send command
ByteOByte1Byte2Byte3Byte4ByteSByte6Byte7Byte8
Start ByteNo.CommandChecksum
OxFFOx010x86Ox00Ox00Ox00Ox00Ox000x79
Returned value
Byte°Byte1Byte2Byte3Byte4ByteSByte6Byte7Byte8
Start ByteNoConcentration
(High 8 bit)
Concentration
(Low 8 bit)
Checksum
OxFF0x86HIGHLOWChecksum
CO2 concentration = HIGH * 256 + LOW
For example 1. Please connect the hardware correctly.
2.To send command: FF 01 86 00 00 00 00 00 79, Returned value: FF 86 02 20 00 00 00 00 58
How to calculate concentration: convert hexadecimal 02 into decimal 2, hexadecimal 20 into decimal 32, then 2*256+32=544ppm
0x79-To turn on/off self-calibration function
To send command
ByteOByte1Byte2Byte3Byte4ByteSByte6Byte7Byte8
Start byteReservedCommandchecksum
OxFFOx010x79OxAO/0x00Ox00Ox00Ox00Ox00checksum
No returned value

Mark: Byte 3 is OxAO, the self-calibration function is on; Byte 3 is Ox00, the self-calibration function is off.

0x99-To set detection range
To send command
ByteOByte1Byte2Byte3Byte4ByteSByte6Byte7Byte8
Start byteReservedCommandreservedrange
2431 bits
range
1623 bits
range
815 bits
range
07 bits
checksum
OxFFOx010x99Ox00DatalData2Data3Data4checksum
No returned value.

Three methods to calibrate zero points (400ppm)
About zero point calibration:
This module has three methods for zero point calibration: hand-operated method, sending command method and self-calibration.
All the zero points is at 400ppm CO2.

  1.  Hand-operated method
    Connect module’s HD pin to low level(0V), lasting for 7 seconds at least. Before calibrating the zero point, please ensure that the sensor is stable for more than 20 minutes at a 400ppm ambient environment.
  2. To send command
0x87-To calibrate zero point
Send command
Byte0Byte1Byte2Byte3Byte4ByteSByte6Byte7Byte8
Start BytereservedCommandChecksum
OxFFOx010x87Ox00Ox00Ox00Ox00Ox00Checksum
No returned value

Caution: zero-point means 400ppm, please ensure the module works in 400ppm CO2 gas stably for 20 min at least before send the command

0x88- To calibrate span point
Send command
Byte0Byte1Byte2Byte3Byte4ByteSByte6Byte7Byte8
Start ByteNo.CommandSpan
(High 8 bits)
Span
(low 8 bits)
Checksum
OxFF0x010x88HIGHLOW0x00Ox00Ox00Checksum
No returned value. If SPAN value is 2000ppm, HIGH=2000/256 LOW=2000%256
Take 2000ppm as SPAN calibration point for example: Put the module in 2000ppm CO2 gas, stability for at least 20 min. Send command FF 01 88 07 DO 00 00 00 AO for span calibrationCaution:

* Please do Zero calibration before SPAN calibration.
*Before sending the SPAN calibration command, please ensure that the sensor is stable for more than 20 minutes at the corresponding concentration.

3.Self-calibration
After the module works for some time, it can judge the zero point intelligently and do the zero calibration automatically. The calibration cycle is every 24 hours since the module is power on. The zero points is 400ppm.
This method is suitable for office and home environments, not suitable for agriculture greenhouse, farm, refrigerator, etc. If the module is used in the latter environment, please turn off this function.

Checksum calculation method
Checksum = (Negative (Byte1+Byte2+Byte3+Byte4+Byte5+Byte6+Byte7)) +1
For example:
ByteOByte1Byte2Byte3Byte4ByteSByte6Byte7Byte8
Start ByteNo.CommandChecksum
OxFFOx010x86Ox00Ox00Ox00Ox00Ox00Checksum
Calculating Checksum:
1.Add from Byte 1 to Byte 7:      Ox01 + 0x86 + Ox00 + Ox00 + Ox00 + Ox00 + Ox00 = 0x87
2.Negative: OxFF – 0x87 = 0x78
3.Then+1: 0x78 + Ox01 = 0x79
C language
Winsen MH-Z16 Intelligent Infrared - Checksum calculation method

Cautions:

  1. Please avoid the pressure of its gilded plastic chamber from any direction, during welding, installation, and use.
  2. When placed in small space, the space should be well ventilated, especially for diffusion windows.
  3. The module should be away from heat, and avoid direct sunlight or other heat radiation.
  4. The sensor should be calibrated regularly and the calibration cycle is recommended for no more than 6 months.
  5.  Do not use the sensor in the high dusty environment for long time.
  6. To ensure the normal work, the power supply must be among 4.5V~5.5V DC rang, the power current must be not less than 150mA. Out of this range, it will result in the failure of the sensor. (The concentration output is low, or the sensor cannot operate properly)
  7. During manual zero calibration, the sensor must work in stable gas environment (400ppm) for over 20 minutes. Connect the HD pin to low level (0V) for over 7 seconds.

Tel: 86-371-67169097/67169670 Fax: 86-371-60932988 Email: [email protected]
Leading gas sensing solutions supplier in China!

References

Documents / Resouces

Download manual
Here you can download full pdf version of manual, it may contain additional safety instructions, warranty information, FCC rules, etc.


Related Manuals