ZyAura ZG09 User Manual Download Page 5

ZG09 CO

Module

 

                                                                                       

 

 

  http://www.ZyAura.com 

REV. 082018 

 

4. UART 

UART default:   

BPS: 19200 
Data Bit: 8 
Parity bit: None 
Stop bit: 1

 

 

Protocol: 

The protocol for ZG09 UART is Modbus RTU, commends are for sending and receiving: 
Send 

ID 

(1 Byte) 

Function Code 

(1 Byte) 

Start 

(2 Bytes) 

Length 

(2 Bytes) 

CRC 

(2 Bytes) 

FEH 

03H 

0000H (Note 1) 

0003H 

XXXX 

 

Receive 

ID 

(1 Byte) 

Function Code 

(1 Byte) 

Length 

(1 Byte) 

data 

(N Bytes) 

CRC 

(2 Bytes) 

FEH 

03H 

06H (Note 2) 

6 * 8 bit (Note 3) 

XXXX 

 

Note 1: Start = Start address for getting data. i.e. CO

2

 value = 0x0B 

Note 2: The length of Data 
Note 3: Data length for Receiving = Length for Sending x 2

 

 

ID 

The user can define the ID code of the device. The factory default is 0x01, 0xFA and 0xFE reserved for broadcast commands. 

 
Function Code 
0x03 Read 
0x06 Write 

 

Start 

Start 

Read / Write 

Description 

00(0x00) : SlaveID                                                         
                 

R/W 

ID: The factory default is 0x01. 
250 (0xFA) and 254 (0xFE) are reserved for broadcast and 
cannot be adjusted. 

01(0x01) : BPS 

R/W 

Baud rate setting (settings will be applied after reset or repower) 
0x00 : 9600 
0x01 : 19200 (default) 
0x02 : 38400 
0x03 : 57600 

02(0x02) : Uart Parity Set 

R/W 

Uart Parity setting (settings will be applied after reset or repower) 
0x00:n82 
0x01:n81 (default) 
0x02:e81 
0x03:o81 

11(0x0B) : CO

2

 Value 

CO

2

 concentration reading in units of ppm. 

 

Example for getting CO

2

 data: 

Send the command, FA03 000B 0001 E043, to 250(0xFA) with the broadcast method. 
The sensor is addressed as “Any address” (0xFE or 0xFA). 

ID 

(1 Byte) 

Function Code 

(1 Byte) 

Start 

(2 Bytes) 

Length 

(2 Bytes) 

CRC 

(2 Bytes) 

Note 

(1) FAH 

03H 

000BH 

0001H 

E043H 

 

(2) FEH 

04H 

0003H 

0001H 

D5C5H 

 

Summary of Contents for ZG09

Page 1: ...ZG09 CO2 Module http www ZyAura com REV 082018 ZG09 CO2 Module User Manual...

Page 2: ...a com REV 082018 Contents 1 GENERAL DESCRIPTION 3 2 FEATURES OF DESIGN 3 3 SPECIFICATION 3 4 UART 5 5 RS485 COMMUNICATION 7 6 I2C COMMUNICATION 7 7 PWM OUTPUT 7 8 DAV OUTPUT 8 9 RELIABILITY 8 10 RESPO...

Page 3: ...rsive infrared sensor The diffusion and sampling method are both available Measurement range 0 10 000ppm Output interface UART RS485 I2C PWM DAC 3 Specification Communication UART 3 3V level Modbus RT...

Page 4: ...dule External Drawing Note The dimensions in this drawing are for reference only Pin Configuration Pin Function PWM CO2 ppm PWM output DAO DAC output G Ground 5V Power input 5V SDA I2C Data pin SCL I2...

Page 5: ...and 0xFE reserved for broadcast commands Function Code 0x03 Read 0x06 Write Start Start Read Write Description 00 0x00 SlaveID R W ID The factory default is 0x01 250 0xFA and 254 0xFE are reserved for...

Page 6: ...d int Len if Len ucTx unsigned char ucPtr ucTx unsigned char ucCRCHi 0xff unsigned char ucCRCLo 0xff unsigned uIndex while Len uIndex ucCRCHi ucPtr ucCRCHi ucCRCLo ucCRCHigh uIndex ucCRCLo ucCRCLow uI...

Page 7: ...d1 0xd0 0x10 0xf0 0x30 0x31 0xf1 0x33 0xf3 0xf2 0x32 0x36 0xf6 0xf7 0x37 0xf5 0x35 0x34 0xf4 0x3c 0xfc 0xfd 0x3d 0xff 0x3f 0x3e 0xfe 0xfa 0x3a 0x3b 0xfb 0x39 0xf9 0xf8 0x38 0x28 0xe8 0xe9 0x29 0xeb 0x...

Page 8: ...ppm adjustable Note 2 For planting the alarm setting is AL1 AL2 The CO2 generator will be activated when the CO2concentration is lower than AL2 400ppm adjustable The CO2 generator will be inactivated...

Page 9: ...ltage drops to 4 5V Figure 6 10 Response Time It shows how much time is needed for CO2 monitor to reach the 90 response to step change Test methods 1 putting the monitor in the environment at 1 000ppm...

Reviews: