0% found this document useful (0 votes)
24 views

Manual de instrucciones del Modulo de sensores 6 en 1

Modulo para evaluar la calidad del aire interior
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views

Manual de instrucciones del Modulo de sensores 6 en 1

Modulo para evaluar la calidad del aire interior
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 19

I.

Product functional description

Miguel Angel Olvera Garcia

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.

The drawings are for reference only and shall be in kind

Product Application Area

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

1. Detection Parameters and Resolution

Sensors Measured Scope of Measurement


resolution measurement accuracy

eCO2 1 ppm 400~5000 ±100 ppm


ppm

PM2.5 0.3ug/m3 1000 ug/m3 ±10%

PM10 0.3ug/m3 1000 ug/m3 ±10%

Temperature 0.01℃ -20~80℃ ±0.5℃

Humidity 0.04% 5/10% RH ±3% RH

TVOC 1ug/m3 1230ug/m3 ±90ug/m3

CH2O 1ug/m3 500ug/m3 ±40ug/m3


! The CO2 and formaldehyde values measured by the module are output by the equivalent value of TVOC,

please note when the customer uses or buys.

2. operating voltage: DC5V±0.2V @150ma

3. Working environment: Working temperature -10~60°C Working humidity :5~95% RH (no


condensation)

4. communication mode: A, serial port TTL interface B、 Modbus-RTU 485 interface

5. preheating time :5 to 10 minutes, semiconductor VOC sensor in theory the longer the more stable the
power-on time

6. Service life :3 years (in air)


IV. Product specifications

1. Wiring Definition

Serial Name Description


number

1 RX/B Serial port


receiver/RS485_B

2 TX/A Serial Port Sender /


RS485_A

3 GND GND

4 5V DC5V input
Remark: The interface spacing is 2.54mm spacing, no special instructions use 90°pin interface.

2. Appearance Size Chart (55.8*50*15mm)


V. Product Communications Agreement

The module hardware supports the serial port TTL communication


interface and RS485 communication interface, when the user tests, needs to
select the corresponding communication mode development according to
the module interface type that oneself purchases.

1. serial port TTL communication interface related protocol

Serial TTL Communication Protocol (9600/8/N/1)

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[0] Byte[1] Byte[2] Byte[3] Byte[4] Byte[5] Byte[6] Byte[7] Byte[8]

Newspa Function Data CO2 data TVOC data CH2O data


per code length
Head
0x01 0x03 0x0E CO2_H CO2_ L TVOC_H TVOC_L CH2O_H CH2O_L

Byte[9] Byte[10] Byte[11] Byte[12] Byte[13] Byte[14] Byte[15] Byte[16] Byte[17] Byte[18]

PM2.5 data Humidity data Temperature PM10 data CRC16


data Calibration
PM2.5_H PM2.5_L Hum_H Hum_L Tem_H Tem_L PM10_H PM10_L CRC 16_ L CRC 16_
H
(2) Active and Passive Switching Instructions
Fra Ord Reservations Reservations Reservati Res Communicatio Fra
me er ons erva n mode me
User MCU
hea tion tail
sends
der s
Active
0x42 0x78 0x00 0x00 0x00 0x00 mode :0x03 0xFF

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)

Fra Order Reserv Reserv Reserva Fixed Commu Frame


User MCU me ations ations tions nication tail
sends hea mode
der
0x42 0x78 0x00 0x00 0x00 0xAA 0x04 0xFF

(4) Change the data transfer cycle format 10 seconds)


(maximum only to

Fra Ord Transmi Reservations Reservati Rese Rese Fra


User MCU me er ssion ons rvati rvati me
sends hea cycle ons ons tail
der
0x42 0x78 xx 0x00 0x00 0x00 0x00 0xFF

Fra Ord Transmi State Firmware Rese Rese Fra


me er ssion version rvati rvati me
Module
hea cycle number ons ons tail
Return
der
Successful
0x42 0x78 xx revision :0x01 mm 0x00 0x00 0xFF

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

Recovery of default 1 second after power failure

2. RS485 Interface
Communication Interface
Protocol

Serial Parameters :(9600/8/N/1) ModBus-RTU 485

Module factory default address 0x01 Return data time :<300ms

(1) Read address command:

R Fixe Functi Fixed Fixed Fixed Fixed CRC_L CRC_H

e d on
code
c

ei FE 17 00 00 00 01 CRC
calibration
vi

R Fixe Functi Numb Firmwar Current CRC_L CRC_H

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 saddress on address sensors to be read

e code
c

ei yy 03 00 MM 00 NN CRC calibration

vi

R Current Functi Data Sensor data CRC_L CRC_H

e address on length
code
s

p yy 03 NN*2 xxxx... Xxxx CRC


calibration
o

e
NOTE: Returned xxxxx... xxx sensor data can be changed according to

register address and data length. 00 MM represents the register address of

the sensor and 00 NN is the data length.


Register address
(00MM)

00 00 00 01 00 02 00 03 00 04 00 05 00 06

eCO2 TVOC CH2O PM2.5 H T PM10


(Humidity (Tempera
) ture)
Note:

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.

For details, see:

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 02 Represents 00 from the starting address 01 Read TVOC, CH2O 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 01 Represents 00 from the starting address 02 Read CH2O data

00 02 00 02 Represents 00 from the starting address 02 Read CH2O, PM2.5 data

00 02 00 03 Represents 00 from the starting address 02 Read CH2O, PM2.5, H data

00 02 00 04 Represents 00 from the starting address 02 Read CH2O, PM2.5, H, T 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

00 03 00 02 Represents 00 from the starting address 03 Read PM2.5, H data

00 03 00 03 Represents 00 from the starting address 03 Read PM2.5, H, T data

00 03 00 04 Represents 00 from the starting address 03 Read PM2.5, H, T, PM10 data

00 04 00 01 Represents 00 from the starting address 04 Read H Data

00 04 00 02 Represents 00 from the starting address 04 Read H, T Data

00 04 00 03 Represents 00 from the starting address 04 Read H, T, PM10 Data

00 05 00 01 Represents 00 from the starting address 05 Reading T data

00 05 00 02 Represents 00 from the starting address Reading T, PM10 Data

00 06 00 01 Represents 00 from the starting address 06 Read PM10 data

(4) Example how to read a frame of data

For example, if the module's address is 0x01, the user needs to send

01 03 00 00 00 07 04 Seven types of sensor data can be read out in the

following format:
Byte[0] Byte[1] Byte[2] Byte[3] Byte[4] Byte[5] Byte[6] Byte[7] Byte[8]

Newspa Function Data CO2 data TVOC data CH2O data


per code length
Head
0x01 0x03 0x0E CO2_H CO2_ L TVOC_H TVOC_L CH2O_H CH2O_L

Byte[9] Byte[10] Byte[11] Byte[12] Byte[13] Byte[14] Byte[15] Byte[16] Byte[17] Byte[18]

PM2.5 data Humidity data Temperature PM10 data CRC16


data Calibration
PM2.5_H PM2.5_L Hum_H Hum_L Tem_H Tem_L PM10_H PM10_L CRC 16_ L CRC 16_
H

3. Data Calculation Method for Each Sensor

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

SRH= Hum_H * 256 + Hum_L

Temperature (℃) = -46.85 + 175.72 * STem / 65536

STem=Tem_H*256+Tem_L

Note: ❶ If you need to use mg / m3 as the unit, please convert it by


yourself. The conversion formula is: 1mg / m3 = 1000ug / m3
❷The length of the CRC check byte is 17 (that is, bytes of Byte [0] ~
Byte [16]), select A001 or 8005 in reverse order.

Six, matters needing attention


1. Avoid contact with organic solvents (including silica gel and
other adhesives), coatings, pharmaceuticals, oils and high-
concentration gases.
2. The module must not be subjected to excessive impact or
vibration.
3. Do not use this module in systems involving personal safety.
4. Do not install the module in a strong air convection
environment.
Annex: CRC calibration calculation method

/************************************************************************

Function: CRC check function, generate CRC.

Parameter Description: arr_buff: set of arrays to be checked

len: the length of to be checked

Return parameter: CRC unsigned int type, high byte high before, low

after***********************************************************************

*/ unsigned int CRC_Compute ( unsigned char *arr_buff, unsigned char

len)

unsigned int crc=0xFFFF;

unsigned char i, j;

for ( j=0; j <len;j++)

crc=crc ^*arr_buff++;
for ( i=0; i<8; i++)
{

if( ( crc&0x0001) >0)

crc=crc>>1;

crc=crc^ 0xa001;

else

crc=crc>>1;

return ( crc);

You might also like