Manual de instrucciones del Modulo de sensores 6 en 1
Manual de instrucciones del Modulo de sensores 6 en 1
The 6-in-1sensor module is a comprehensive air quality sensor integrating temperature and humidity, TVOC,
laserdust, equivalent CO2and equivalent formaldehyde. It can detect the environment in real time and output data
through a certain protocol format. It is easy to use and has good stability.
portable instrument, on-board system, air quality monitoring equipment, air purifier, fresh air exchange
system, air conditioning, smart home equipment and other places.
III. Product technical indicators
5. preheating time :5 to 10 minutes, semiconductor VOC sensor in theory the longer the more stable the
power-on time
1. Wiring Definition
3 GND GND
4 5V DC5V input
Remark: The interface spacing is 2.54mm spacing, no special instructions use 90°pin interface.
Data transfer cycle: the default active upload, every 1s upload (can be changed, up to 10s, after the power
off, that is, restore the default 1 second)
(1) Module upload sensor data format (module-> user MCU) in active module or passive mode
Byte[9] Byte[10] Byte[11] Byte[12] Byte[13] Byte[14] Byte[15] Byte[16] Byte[17] Byte[18]
Passive
mode :0x04
Fra Ord Communicatio State Firmware Res Reservations Fra
me er n mode version erva me
Module
hea number tion tail
Return
der s
Active Successful
0x42 0x78 mode :0x03 setup :0x01 mm 0x00 0x00 0xFF
Passive Failed
mode :0x04 settings :0x00
(3) In passive mode, the user MCU sends a read instruction before the module returns data (sending
a fixed 8 bytes)
Change
Failed :0x00
Explanation: The value range of the
transmission period xx is :0x01~0x0A
Firmware version number mm For example: mm =0x11 for V1.1 mm =0x23 V2.3
2. RS485 Interface
Communication Interface
Protocol
e d on
code
c
ei FE 17 00 00 00 01 CRC
calibration
vi
e d on er of e address
code bytes version
s
p FE 17 02 xx yy CRC
calibration
o
e
send an order FE17 00 00 00 01 A0 06 Return data: FE 17 02 11 01 64 30
Represents a device address of 01 Version number V1.1
(2) Change address command: module factory default address is 0x01, address range can
be changed to :0~254
R Current Functi Fixed Fixe Reserved Preset CRC_L CRC_H
e address on d address
code
c
ei yy 06 00 00 00 ZZ CRC
calibration
vi
g
Example For
example:
R Pre- Functi Numb Res Revised CRC_L CRC_H
When the current
e address is 01, the
modificati on default address
er of ervais :02 address
on code bytes tion
s
Send command :01 06 00 00 00 02 08 0 B Return data :01 06 02 00 02 39 49
address s
p
yy commands
(3) Read data 06 02 00 ZZ CRC
o
calibration
R nCurrent Functi Register start Number of CRC_L CRC_H
e code
c
ei yy 03 00 MM 00 NN CRC calibration
vi
e address on length
code
s
e
NOTE: Returned xxxxx... xxx sensor data can be changed according to
00 00 00 01 00 02 00 03 00 04 00 05 00 06
The minimum number of a 、 sensors is 00NN 01, max .00 07.When the MM value is 00, the maximum
NN value can be 07, and the value of all sensors can be read at this time, or 01, and the number of CO2 can
only be read separately at 01. And so on.
The front address of the b 、 register, when increasing the data length, can read the data of the back sensor, but
the back address of the register can not read the data of the sensor before this address.
00 MM 00 NN Environmental data
that can be read
00 00 00 01 Represents 00 from CO2 data read
the starting address
00
00 00 00 02 Represents 00 from Read CO2, TVOC data
the starting address
00
00 00 00 03 Represents 00 from Read CO2, TVOC, CH2O data
the starting address
00
00 00 00 04 Represents 00 from the starting address 00 Read CO2, TVOC, CH2O, PM2.5 data
00 00 00 05 Represents 00 from the starting address 00 Read CO2, TVOC, CH2O, PM2.5, H data
00 00 00 06 Represents 00 from the starting address 00 Read CO2, TVOC, CH2O, PM2.5, H, T data
00 00 00 07 Represents 00 from the starting address 00 Read CO2, TVOC, CH2O, PM2.5, H, T, PM10
data
00 01 00 01 Represents 00 from the starting address 01 Read TVOC Data
00 01 00 03 Represents 00 from the starting address 01 Read TVOC, CH2O, PM2.5 Data
00 01 00 04 Represents 00 from the starting address 01 Read TVOC, CH2O, PM2.5, H Data
00 01 00 05 Represents 00 from the starting address 01 Read TVOC, CH2O, PM2.5, H, T data
00 01 00 06 Represents 00 from the starting address 01 Read TVOC, CH2O, PM2.5, H, T, PM10 data
00 02 00 05 Represents 00 from the starting address 02 Read CH2O, PM2.5, H, T, PM10 data
00 03 00 01 Represents 00 from the starting address 03 Read PM2.5 data
For example, if the module's address is 0x01, the user needs to send
following format:
Byte[0] Byte[1] Byte[2] Byte[3] Byte[4] Byte[5] Byte[6] Byte[7] Byte[8]
Byte[9] Byte[10] Byte[11] Byte[12] Byte[13] Byte[14] Byte[15] Byte[16] Byte[17] Byte[18]
CO2(ppm)= CO2_H*256+CO2_LTVOC
(ug/m3)=(TVOC_H*256+TVOC_L)/10.0
CH2O
(ug/m3)=(CH2O_H*256+CH2O_L)/10.0PM2.5(ug/m3)=
PM2.5_H*256+PM2.5_L
PM10(ug/m3)= PM10_H*256+PM10_L
Humidity (%RH) = -6 + 125 * SRH / 65536
STem=Tem_H*256+Tem_L
/************************************************************************
Return parameter: CRC unsigned int type, high byte high before, low
after***********************************************************************
len)
unsigned char i, j;
crc=crc ^*arr_buff++;
for ( i=0; i<8; i++)
{
crc=crc>>1;
crc=crc^ 0xa001;
else
crc=crc>>1;
return ( crc);