MH-Z16 Intelligent Infrared Gas Module Manual Zhengzhou Winsen Electronics Technology CO.,LTD

Add to my manuals
8 Pages

advertisement

MH-Z16 Intelligent Infrared Gas Module Manual Zhengzhou Winsen Electronics Technology CO.,LTD | Manualzz

MH-Z16

Intelligent Infrared Gas Module

Manual

Zhengzhou Winsen Electronics Technology CO.,LTD

1 Profile

Main functions and features

 High sensitivity,High resolution

 Low power consumption

 Output method:UART,analog voltage signal,PWM wave

 Quick responce

 Temperature compensation,excellent linear output

 Good stability

 Long lifespan

 Anti water vapor interference

 No poisoning

2 Main technical paremeters

Working voltage

Average current

Interface level

4.5 V ~ 5.5V DC

< 85 mA

3.3 V

Measuring range 0~5%VOL optional

PWM

Output signal

Preheat time

Reponse Time

UART

3min

T

90

< 30s

Working temperature 0℃ ~ 50℃

Working humidity 0~95%RH

Weight 21 g

Lifespan >5 year

Target Gas

Carbon Dioxide

(CO2)

Measuring

Range

0~2000ppm

0~5000ppm

0~1%VOL

0~3%VOL

0~5%VOL

Accuracy

±(50ppm

+5%readin g value)

Mark

Temperature compensation

Temperature compensation

Temperature compensation

Temperature compensation

Temperature compensation

3.Structure

Definition for pins

4.Pin

5.Circuit

PIN

Pad4

Pad3

Pad2

Pad7

Pad1

Pad5

Pad6

Description

Vin(input voltage 4.5V~5.5V)

GND

Vout (0.4~2V,custom made)

PWM

UART(RXD)

HD

0~3.3V input digital

UART(TXD) 0~3.3V output digital

6. Operating instruction

6.1 Analog output connections

The output value of Vout is 0.4-2.0V, which stands for 0 to full range

Vin –5V

GND- Power Ground

Vout-ADC input

6.2PWM output (taking PWM output from 2000ppm as example):

CO2 output range: 0ppm-2000ppm

Cycle:

High level output for beginning:

1004ms±5%

2ms (in name)

Middle of cycle:

Low level output for ending:

1000ms±5%

2ms(in name)

Account formula for CO2 concentration which gets through PWM:

C ppm

 2000  ( T

H

 2 ms ) /( T

H

 T

L

 4 ms )

Among:

C ppm is calculated CO2 concentration, unit is ppm;

T

H is time for high level during an output cycle;

T

L is time for low level during an output cycle.

6.3 Digital connects:

Vin-5V power

GND- Power Ground

RXD connect sensor TXD

TXD connect sensor RXD

You can read gas concentration via Uart, no need to calculate.

6.3.1communication protocol

1.General Settings

Baud rate

Date byte

Stop byte

Calibrate byte

9600

8 byte

1byte no

2.Command

Each command or return:

Contains 9 bytes (byte 0 ~ 8) starting byte fixed 0 XFF

command contains sensor number (factory default to 0 x01) to check and end

Command List:

0x86

0x87

0x88

Gas concentration

Calibrate zero point(ZERO)

Calibrate span point(SPAN)

Read gas concentration

Byte0

Start ing byte

Byte1

Sensor

No.

0XFF 0x01

Byte2 command

0x86 0x00

Byte3

-

Send command

Byte4

-

Byte5

-

0x00 0x00

Byte6

-

0x00 0x00

Byte7

-

Byte8

Check value

0x79

Return value

Byte0 Byte1 Byte2 Byte3

Start ing byte

0XFF command High level

0x86 concentr ation

0x02

Low level concentr ation

0x60 0x47

-

Gas concentration= high level *256+low level

Return

Byte4 Byte5

0x00

-

Byte6

0x00

-

Byte7

0x00

-

Byte

8

Chec k valu e

0xD1

Calibrate zero point

Byte0

Start ing byte

Byte1

Sensor

No.

0XFF 0x01

No return value

Byte2 command

0x87 0x00

Byte3

-

Send command

Byte4

-

Byte5

-

0x00 0x00

Byte6

-

0x00 0x00

Byte7

-

Byte8

Check value

0x78

Calibrate span point

Byte0

Start ing byte

Byte1

Sensor

No.

Byte2 command

0XFF 0x01

No return value

0x88

Byte3

High level span point

0x07

Send command

Byte4

Low level span point

0xD0

Byte5

0x00

-

Byte6

-

0x00 0x00

Byte7

-

Byte8

Check value

0xA0

3.Calibrate and calculate

The checksum = (invert (byte 1 +... + 7)) + 1

Reading gas concentration:

Send command

Byte0 Byte1 Byte2 Byte3 Byte4

Start ing

Sensor

No.

byte

0XFF 0x01 command

0x86 0x00

-

0x00

-

Byte5

-

0x00

Byte6

-

0x00 0x00

Byte7

-

Byte8

Check value

0x79

Except byte 0 ,add the other bytes together

0x1 + 0x86 + 0 + 0 + 0 + 0 + 0 = 0x87

Get the value from the first step, then invert it.

0xff – 0x87 = 0x78

The second value plus one

0x78 + 0x01 = 0x79

Program :C language char getCheckSum(char *packet)

{ char i, checksum; for( i = 1; i < 8; i++)

{ checksum += packet[i];

} checksum = 0xff – checksum; checksum += 1; return checksum;

}

7. Notes for maintenance

7.1 The sensor should be calibrated regularly. The cycle time is better to be no more than 6 months.

7.2 Do not use the sensor in the high dusty environment for long time.

7.3 Please use the sensor with correct power supply.

7.4 Forbidden to cut the sensor pin.

Zhengzhou Winsen Electronics Technology Co., Ltd

Add.: NO.299 Jin Suo Road, National Hi-Tech Zone,

Zhengzhou, 450001 China

Tel.: 0086-371-67169097 67169670

Fax:0371-60932988

E-mail:[email protected]

advertisement

Was this manual useful for you? Yes No
Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Related manuals

Download PDF

advertisement

Languages