Winsen MH-Z19B User Manual Download Page 7

Zhengzhou Winsen Electronics Technology Co., Ltd                       

www.winsen-sensor.com

 

   

 

Tel: 86-371-67169097/67169670    Fax: 86-371-60932988                                Email: 

[email protected]

 

Leading gas sensing solutions supplier in China! 

Software setting 

Set serial port baud rate be 9600, data bit 8 bytes, stop bit 1byte, parity bit null.

 

 

 

 

Commands 

 

 

0x86 

Read CO2 concentration 

 

 

0x87 

Calibrate Zero Point (ZERO) 

 

 

0x88 

Calibrate Span Point (SPAN) 

 

 

0x79 

ON/OFF Self-calibration function for zero point 

 

 

0x99 

  Detection range setting 

 

 

0x86-

 Read CO2 concentration 

Sending command 

Byte0 

Byte1 

Byte2 

Byte3 

Byte4 

Byte5 

Byte6 

Byte7 

Byte8 

Start Byte 

Reserved 

Command 

Checksum 

0xFF 

0x01 

0x86 

0x00 

0x00 

0x00 

0x00 

0x00 

0x79 

Return value

 

Byte0 

Byte1 

Byte2 

Byte3 

Byte4 

Byte5 

Byte6 

Byte7 

Byte8 

Start Byte 

Comman

Concentration 

(High 8 Byte) 

Concentration 

(Low 8 Byte) 

Checksum 

0xFF 

0x86 

HIGH 

LOW 

Checksum 

CO2 concentration = HIGH * 256 + LOW 

For example: 

Send command FF 01 86 00 00 00 00 00 79, Return 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- On/Off Self-calibration for Zero Point

 

Send command-No return value 

Byte0 

Byte1 

Byte2 

Byte3 

Byte4 

Byte5 

Byte6 

Byte7 

Byte8 

Start Byte 

Reserved 

Command 

Checksum 

0xFF 

0x01 

0x79 

0xA0/0x00 

0x00 

0x00 

0x00 

0x00 

Checksum 

For example: 

ON this function, send command: FF 01 79 A0 00 00 00 00 E6 

OFF this function, send command: FF 01 79 00 00 00 00 00 86 

NOTE: This function is on when Byte3 is 0xA0 while this function is off when Byte3 is 0x00. 

Default status is “this function is on”. 

 

0x99- Detection range setting

 

Send command-No return value 

Byte0 

Byte1 

Byte2 

Byte3 

Byte4 

Byte5 

Byte6 

Byte7 

Byte8 

Start   

Byte 

Reserved 

Command 

Reserved 

Detection range 

24~32 bit 

Detection range 

16~23 bit 

Detection 

range 8~15 bit 

Detection 

range 0~7 bit 

Check

sum 

0xFF 

0x01 

0x99 

0x00 

Data 1 

Data 2 

Data 3 

Data 4 

Check

sum 

Summary of Contents for MH-Z19B

Page 1: ...1 67169097 67169670 Fax 86 371 60932988 Email sales winsensor com Leading gas sensing solutions supplier in China Infrared CO2 Sensor Module Model MH Z19B User s Manual Version 1 5 Valid from 2019 09...

Page 2: ...e 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 insid...

Page 3: ...life Built in temperature compensation and it has UART output and PWM output It is developed by the tight integration of mature infrared absorbing gas detection technology precision optical circuit d...

Page 4: ...sing solutions supplier in China Terminal connection type Pins connection type Pins connection type Pin Pin Definition Vin Positive pole of power Vin GND Negative pole of power GND Vo Analog output 0...

Page 5: ...ers Model No MH Z19B Detection Gas CO2 Working voltage 4 5 5 5 V DC Average current 20mA 5V power supply Peak current 150mA 5V power supply Interface level 3 3 V Compatible with 5V Detection Range 0 2...

Page 6: ...04ms 5 Cycle start high level output 2ms theoretical value The middle cycle 1000ms 5 cycle end low level output 2ms theoretical value CO2 concentration Cppm 2000 TH 2ms TH TL 4ms Cppm CO2 concentratio...

Page 7: ...concentration HIGH 256 LOW For example Send command FF 01 86 00 00 00 00 00 79 Return value FF 86 02 20 00 00 00 00 58 How to calculate concentration convert hexadecimal 02 into decimal 2 hexadecimal...

Page 8: ...0 5000 or 0 10000ppm For example set 0 2000ppm detection range send command FF 01 99 00 00 00 07 D0 8F set 0 10000ppm detection range send command FF 01 99 00 00 00 27 10 2F Analog Voltage Output Vo C...

Page 9: ...refrigerator etc If the module is used in latter environment please turn off this function 9 Notes 9 1 Please avoid the pressure of its gilded plastic chamber from any direction during welding install...

Page 10: ...China 400ppm for over 20 minutes Connect the HD pin to low level 0V for over 7 seconds 9 8 Forbid using wave soldering for the sensor 9 9 When soldering with soldering iron set the temperature to be 3...

Reviews: