[go: up one dir, main page]

CN105241504A - Distributed indoor environment quality detection system - Google Patents

Distributed indoor environment quality detection system Download PDF

Info

Publication number
CN105241504A
CN105241504A CN201510669965.4A CN201510669965A CN105241504A CN 105241504 A CN105241504 A CN 105241504A CN 201510669965 A CN201510669965 A CN 201510669965A CN 105241504 A CN105241504 A CN 105241504A
Authority
CN
China
Prior art keywords
module
host
measurement
detection system
slave
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510669965.4A
Other languages
Chinese (zh)
Inventor
王倢婷
张静
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Institute of Trade and Commerce
Original Assignee
Suzhou Institute of Trade and Commerce
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Institute of Trade and Commerce filed Critical Suzhou Institute of Trade and Commerce
Priority to CN201510669965.4A priority Critical patent/CN105241504A/en
Publication of CN105241504A publication Critical patent/CN105241504A/en
Pending legal-status Critical Current

Links

Landscapes

  • Arrangements For Transmission Of Measured Signals (AREA)

Abstract

本发明是一种分布式室内环境质量检测系统,该系统由一个主机模块和多个从机模块组成,从机模块通过传感器采集从机模块周围的环境参数,利用单片机进行数据处理,实现环境参数显示、数据记录、报警功能,从机模块通过无线传输方式接收主机发送的各项指令,并向主机模块发送实时数据,主机模块通过轮询分机的通讯方式实现对所有从机模块的统一管理和实时监控,主机模块通过面板上的显示模块显示接收到分机数据,实现对分机数据的可视化监控。

The invention is a distributed indoor environment quality detection system, the system is composed of a master module and a plurality of slave modules, the slave module collects the environmental parameters around the slave module through sensors, uses a single-chip microcomputer to process data, and realizes the environmental parameters Display, data recording, and alarm functions. The slave module receives various instructions sent by the host through wireless transmission, and sends real-time data to the host module. The host module realizes unified management and monitoring of all slave modules through the communication mode of polling extension Real-time monitoring, the host module displays the received extension data through the display module on the panel, and realizes the visual monitoring of the extension data.

Description

一种分布式室内环境质量检测系统A Distributed Indoor Environmental Quality Detection System

技术领域 technical field

本发明涉及室内环境监测技术领域,具体涉及一种分布式室内环境质量检测系统。 The invention relates to the technical field of indoor environment monitoring, in particular to a distributed indoor environment quality detection system.

背景技术 Background technique

随着我国工业规模的不断扩大,当前各大城市的PM2.5值高居不下,对室内环境造成了严重污染。人一生中大部分时间是在室内度过,在人们享受更现代化居住生活的同时,因室内环境质量造成的健康问题剧增,代价惨痛。室内环境污染物质将直接影响人体的健康。研究表明室内环境污染已经成为现代人类健康的杀手之一,实时监测室内环境质量非常必要。 With the continuous expansion of my country's industrial scale, the current PM2.5 value in major cities remains high, causing serious pollution to the indoor environment. People spend most of their lives indoors. While people are enjoying a more modern living life, health problems caused by indoor environmental quality have increased sharply and cost a lot. Indoor environmental pollutants will directly affect human health. Studies have shown that indoor environmental pollution has become one of the killers of modern human health, and real-time monitoring of indoor environmental quality is very necessary.

在空气质量监测方面,国外做得比较好的有:美国Interscan科技公司生产的4000型空气质量分析仪、英国PPM公司生产的PPM-400甲醛检测仪;国内的有:邯郸派瑞气体设备有限公司研制的“派瑞”系列空气健康表、江西南昌贝谷科技股份有限公司生产的“甲保御”牌室内环境污染标定仪等。通过对上述仪器对比分析,发现目前国内外产品的主要区别集中在功能的完备度、检测精度以及用户体验等方面,国外产品功能比较完备、测量精度高而且系统交互界面相对人性化,而国内同类产品在价格上具有明显优势但功能单一、用户体验方面欠佳。上述这些仪器都可以实现对空气中有害气体的检测,但设备价格昂贵,测定时间较长,便携性不好,有的还需要专业检测人员进行操作,很难连续测定。 In terms of air quality monitoring, foreign countries have done better: the 4000 air quality analyzer produced by the American Interscan Technology Company, the PPM-400 formaldehyde detector produced by the British PPM company; the domestic ones are: Handan Perui Gas Equipment Co., Ltd. The "Perui" series of air health meters developed, the "Jiabaoyu" brand indoor environmental pollution calibration instrument produced by Jiangxi Nanchang Beigu Technology Co., Ltd., etc. Through the comparative analysis of the above instruments, it is found that the main differences between domestic and foreign products focus on the completeness of functions, detection accuracy and user experience. Foreign products have relatively complete functions, high measurement accuracy and relatively user-friendly system interface, while domestic similar The product has obvious advantages in price but single function and poor user experience. All of the above-mentioned instruments can detect harmful gases in the air, but the equipment is expensive, the measurement time is long, and the portability is not good. Some of them need professional testing personnel to operate, and it is difficult to measure continuously.

目前市场上的室内空气检测仪测量比较单一,一台测量仪通常只能检测一个室内空气污染因子。国家标准(GB/T18883-2002)中要求房间面积大于50m2要求设2个及以上检测点。市场上的手持式检测仪一般是显示中心和传感器模块集中在一起,这样的话,测量很容易受到测量仪器自身因素(如仪表发热)影响,很难做到精确测量。另外随着无线通讯技术的发展,很多中短途无线通讯模块开始用于智能家居控制系统中,因此,借用中短途无线通讯模块实现检测仪表的显示中心和传感器模块之间的无线通讯是可以实现的。基于以上原因开发一款用来多点、实时、全面精确的监测室内环境中的甲醛、苯等TVOC、粉尘颗粒物等空气污染物浓度及温湿度、二氧化碳等空气质量因子的分布式室内环境监测系统是很有意义的。 At present, the indoor air detectors on the market are relatively simple in measurement, and a measuring instrument can usually only detect one indoor air pollution factor. The national standard (GB/T18883-2002) requires that the area of the room is larger than 50m2, and two or more inspection points are required. Hand-held detectors on the market generally have a display center and a sensor module together. In this case, the measurement is easily affected by the measuring instrument's own factors (such as the heating of the instrument), and it is difficult to achieve accurate measurement. In addition, with the development of wireless communication technology, many short- and medium-distance wireless communication modules have begun to be used in smart home control systems. Therefore, it is possible to use short- and medium-distance wireless communication modules to realize wireless communication between the display center of the testing instrument and the sensor module. . Based on the above reasons, a distributed indoor environment monitoring system was developed for multi-point, real-time, comprehensive and accurate monitoring of formaldehyde, benzene and other TVOC, dust particles and other air pollutants in the indoor environment, as well as air quality factors such as temperature and humidity and carbon dioxide. is very meaningful.

发明内容 Contents of the invention

本发明的目的在于克服现有技术存在的问题,提供一种分布式室内环境质量检测系统。 The purpose of the present invention is to overcome the problems existing in the prior art and provide a distributed indoor environment quality detection system.

为实现上述技术目的,达到上述技术效果,本发明通过以下技术方案实现: In order to achieve the above-mentioned technical purpose and achieve the above-mentioned technical effect, the present invention is realized through the following technical solutions:

一种分布式室内环境质量检测系统,该系统包括主机模块和分布于室内的从机模块,所述主机模块由主机单片机、以及分别连接主机单片机的主机电源模块、时钟模块、复位模块、显示模块和主机通信模块组成,所述从机模块由从机单片机、以及分别连接从机单片机的从机电源模块、时钟模块、复位模块、从机通信模块、温湿度测量模块、一氧化碳测量模块、二氧化碳测量模块、甲醛测量模块和PM2.5测量模块组成,其中,所述主机模块通过无线通信方式将数据和命令传输给多个从机模块,所述从机模块通过与之连接的测量模块采集周围的环境参数并通过无线通信方式将环境参数传输给主机模块,所述主机模块通过轮询分机的通讯方式实现对所有从机模块的统一管理和实时监控。 A distributed indoor environment quality detection system, the system includes a host module and a slave module distributed indoors, the host module consists of a host single-chip microcomputer, and a host power supply module, a clock module, a reset module, and a display module respectively connected to the host single-chip microcomputer Composed of a host communication module, the slave module consists of a slave single-chip microcomputer, a slave power supply module, a clock module, a reset module, a slave communication module, a temperature and humidity measurement module, a carbon monoxide measurement module, and a carbon dioxide measurement module respectively connected to the slave single-chip microcomputer. Module, formaldehyde measurement module and PM2.5 measurement module, wherein, the master module transmits data and commands to multiple slave modules through wireless communication, and the slave modules collect the surrounding Environmental parameters and transmit the environmental parameters to the host module through wireless communication, and the host module realizes unified management and real-time monitoring of all slave modules through the communication mode of polling extensions.

进一步的,所述主机单片机采用STC12C5A60S2芯片,用于接收从机单片机传送过来的各个测量数据,所述从机单片机采用STC12C5A60S2芯片,通过与之连接的各传感器模块测量各种室内空气质量参数,并将测得参数发送给主机单片机。 Further, the host single-chip microcomputer adopts the STC12C5A60S2 chip to receive various measurement data transmitted from the slave single-chip microcomputer, and the slave single-chip microcomputer adopts the STC12C5A60S2 chip to measure various indoor air quality parameters through each sensor module connected thereto, and Send the measured parameters to the host microcontroller.

进一步的,所述主/从机电源模块采用AMS1117-3.3芯片和AMS1117-5.0芯片,分别产生3.3V电压和5V电压进行供电。 Further, the master/slave power module adopts AMS1117-3.3 chip and AMS1117-5.0 chip, which generate 3.3V voltage and 5V voltage for power supply respectively.

进一步的,所述复位模块由在主/从机电源模块和主/从机单片机复位端之间跨接的一个电容和电阻构成。 Further, the reset module is composed of a capacitor and a resistor connected between the master/slave power supply module and the reset terminal of the master/slave microcontroller.

进一步的,所述显示模块采用TFT2.8触摸式彩屏,用于显示各个从机模块的测量参数。 Further, the display module adopts a TFT2.8 touch color screen for displaying the measurement parameters of each slave module.

进一步的,所述主机通信模块和从机通信模块皆采用XL4432-SMT无线通信模块,用于在主机单片机和从机单片机间进行无线数据通信。 Further, both the host communication module and the slave communication module use the XL4432-SMT wireless communication module, which is used for wireless data communication between the host microcontroller and the slave microcontroller.

进一步的,所述温湿度测量模块采用DHT11数字温湿度传感器,用于测量室内环境中的温湿度参数值。 Further, the temperature and humidity measurement module adopts a DHT11 digital temperature and humidity sensor for measuring the temperature and humidity parameter values in the indoor environment.

进一步的,所述一氧化碳测量模块采用ZYMQ-7一氧化碳测量传感器,用于测量室内环境中的一氧化碳参数值,所述二氧化碳测量模块采用MG811二氧化碳测量传感器,用于测量室内环境中的二氧化碳参数值。 Further, the carbon monoxide measurement module adopts the ZYMQ-7 carbon monoxide measurement sensor for measuring the carbon monoxide parameter value in the indoor environment, and the carbon dioxide measurement module adopts the MG811 carbon dioxide measurement sensor for measuring the carbon dioxide parameter value in the indoor environment.

进一步的,所述甲醛测量模块采用MS1100甲醛测量传感器,用于测量室内环境中的甲醛参数值。 Further, the formaldehyde measurement module adopts MS1100 formaldehyde measurement sensor for measuring formaldehyde parameter values in the indoor environment.

进一步的,所述PM2.5测量模块采用GP2Y1010AU0F粉尘传感器,用于测量室内环境中PM2.5参数值。 Further, the PM2.5 measurement module adopts the GP2Y1010AU0F dust sensor for measuring the PM2.5 parameter value in the indoor environment.

本发明的有益效果是: The beneficial effects of the present invention are:

1、本发明能准确的监测多个环境质量参数,包括甲醛浓度、温度、湿度、粉尘浓度、CO和CO2浓度。 1. The present invention can accurately monitor multiple environmental quality parameters, including formaldehyde concentration, temperature, humidity, dust concentration, CO and CO2 concentration.

2、本发明中主机模块和从机模块通过无线通信方式进行数据和命令传输,实现多个从机模块与一个主机模块之间的数据通信和监控。 2. In the present invention, the master module and the slave module transmit data and commands through wireless communication, so as to realize data communication and monitoring between multiple slave modules and one master module.

3、本发明中采用触摸屏人机接口界面,通过触摸屏对从机检测到的环境参数进行可视化监控。 3. In the present invention, a touch screen man-machine interface is used to visually monitor the environmental parameters detected by the slave machine through the touch screen.

4、本发明从机模块为多点分布式布置,能对多种环境参数监测,且监测结果更准确有效。 4. The slave module of the present invention is arranged in a multi-point distributed manner, which can monitor various environmental parameters, and the monitoring results are more accurate and effective.

附图说明 Description of drawings

图1为本发明的主机模块结构示意图; Fig. 1 is the structural representation of host module of the present invention;

图2为本发明的从机模块结构示意图; Fig. 2 is a schematic structural diagram of a slave module of the present invention;

图3为主机单片机最小系统电路图; Fig. 3 is the minimum system circuit diagram of the host microcontroller;

图4为从机单片机最小系统电路图; Fig. 4 is the minimum system circuit diagram of the slave microcontroller;

图5为+5V电压转化电路; Figure 5 is a +5V voltage conversion circuit;

图6为+3.3V电压转化部分电路; Figure 6 is a +3.3V voltage conversion part of the circuit;

图7为显示模块的电路图; Figure 7 is a circuit diagram of the display module;

图8为主/从机通信模块电路图; Figure 8 is a circuit diagram of the master/slave communication module;

图9为温湿度测量电路图; Fig. 9 is a temperature and humidity measurement circuit diagram;

图10为一氧化碳测量电路图; Figure 10 is a carbon monoxide measurement circuit diagram;

图11为二氧化碳测量电路图; Figure 11 is a carbon dioxide measurement circuit diagram;

图12为甲醛测量电路图; Fig. 12 is a formaldehyde measurement circuit diagram;

图13为PM2.5测量电路; Figure 13 is a PM2.5 measurement circuit;

图14为主机模块控制流程图; Fig. 14 is a flow chart of host module control;

图15为TFT2.8触摸屏控制流程图; Figure 15 is a flow chart of TFT2.8 touch screen control;

图16为从机模块控制流程图; Figure 16 is a flow chart of slave module control;

图17为从机模块中温湿度测量流程图; Figure 17 is a flowchart of temperature and humidity measurement in the slave module;

图18为从机模块中AD转换流程图; Fig. 18 is a flow chart of AD conversion in the slave module;

图19为主/从机模块无线发送控制流程图; Figure 19 is a master/slave module wireless transmission control flow chart;

图20为主/从机模块无线接收控制流程图。 Fig. 20 is a flow chart of master/slave module wireless receiving control.

具体实施方式 detailed description

下面将参考附图并结合实施例,来详细说明本发明。 The present invention will be described in detail below with reference to the accompanying drawings and in combination with embodiments.

如图1和图2所示,一种分布式室内环境质量检测系统,该系统包括主机模块和分布于室内的从机模块,所述主机模块由主机单片机、以及分别连接主机单片机的主机电源模块、时钟模块、复位模块、显示模块和主机通信模块组成,所述从机模块由从机单片机、以及分别连接从机单片机的从机电源模块、时钟模块、复位模块、从机通信模块、温湿度测量模块、一氧化碳测量模块、二氧化碳测量模块、甲醛测量模块和PM2.5测量模块组成,其中,所述主机模块通过无线通信方式将数据和命令传输给多个从机模块,所述从机模块通过与之连接的测量模块采集周围的环境参数并通过无线通信方式将环境参数传输给主机模块,所述主机模块通过轮询分机的通讯方式实现对所有从机模块的统一管理和实时监控。 As shown in Figure 1 and Figure 2, a distributed indoor environment quality detection system, the system includes a host module and a slave module distributed indoors, the host module consists of a host single-chip microcomputer and a host power supply module connected to the host single-chip microcomputer respectively , a clock module, a reset module, a display module and a host communication module. Measurement module, carbon monoxide measurement module, carbon dioxide measurement module, formaldehyde measurement module and PM2.5 measurement module, wherein, the master module transmits data and commands to multiple slave modules through wireless communication, and the slave modules pass The measurement module connected to it collects the surrounding environmental parameters and transmits the environmental parameters to the host module through wireless communication. The host module implements unified management and real-time monitoring of all slave modules through the communication mode of polling extensions.

所述主机单片机采用STC12C5A60S2芯片,用于接收从机单片机传送过来的各个测量数据,所述从机单片机采用STC12C5A60S2芯片,通过与之连接的各传感器模块测量各种室内空气质量参数,并将测得参数发送给主机单片机,所述复位模块由在主/从机电源模块和主/从机单片机复位端之间跨接的一个电容和电阻构成,本实施例中,如图3和图4所示,分别为主机单片机和从机单片机的单片机最小系统电路,两个系统的时钟电路为内部振荡方式,振荡电容值为30pF,晶振选用18.432MHz。 Described master single-chip microcomputer adopts STC12C5A60S2 chip, is used for receiving each measuring data that slave machine single-chip microcomputer transmits, and described slave machine single-chip microcomputer adopts STC12C5A60S2 chip, measures various indoor air quality parameters by each sensor module connected with it, and will measure The parameters are sent to the host microcontroller, and the reset module is composed of a capacitor and a resistor connected between the master/slave power supply module and the reset terminal of the master/slave microcontroller. In this embodiment, as shown in Figure 3 and Figure 4 , are the minimum system circuits of the master single-chip microcomputer and the slave single-chip microcomputer respectively, the clock circuits of the two systems are in the internal oscillation mode, the oscillation capacitance value is 30pF, and the crystal oscillator is 18.432MHz.

所述主/从机电源模块采用AMS1117-3.3芯片和AMS1117-5.0芯片,分别产生3.3V电压和5V电压进行供电,如图5,+12V电压通过AMS1117-5.0后转换成+5V电压进行第一级供电,如图6,+5V电压通过AMS1117-3.3后转换成+3.3V电压,产生3.3V电压进行供电。 The master/slave power supply module adopts AMS1117-3.3 chip and AMS1117-5.0 chip, which respectively generate 3.3V voltage and 5V voltage for power supply, as shown in Figure 5, +12V voltage is converted into +5V voltage by AMS1117-5.0 for the first Level power supply, as shown in Figure 6, +5V voltage is converted into +3.3V voltage by AMS1117-3.3, and 3.3V voltage is generated for power supply.

所述显示模块采用TFT2.8触摸式彩屏,能较好的实现人机接口界面,用于显示各个从机模块的测量参数,如图7所示,为显示模块的电路图。 The display module adopts a TFT2.8 touch color screen, which can better realize the man-machine interface and is used to display the measurement parameters of each slave module. As shown in FIG. 7, it is a circuit diagram of the display module.

所述主机通信模块和从机通信模块皆采用XL4432-SMT无线通信模块,用于在主机单片机和从机单片机间进行无线数据通信,本实施例中主机模块和从机模块之间通过无线通信模块XL4432-SMT进行数据传输,采用SPI接口方式,模块大小采用17*16.5mm,1.27mm间距的单排插针接口,采用用外置天线设计,在开阔地1.2K速率下,收发10个字节的数据量测试距离最远可达1200米,基于该通信模块的无线通信电路如图8所示。 Both the host communication module and the slave communication module adopt the XL4432-SMT wireless communication module, which is used for wireless data communication between the host microcontroller and the slave microcontroller. In this embodiment, the host module and the slave module pass through the wireless communication module. XL4432-SMT uses SPI interface for data transmission. The module size adopts 17*16.5mm, 1.27mm pitch single-row pin interface. It adopts the design of external antenna. It can send and receive 10 bytes at 1.2K rate in the open field The data volume test distance can reach up to 1200 meters. The wireless communication circuit based on this communication module is shown in Figure 8.

所述温湿度测量模块采用DHT11数字温湿度传感器,用于测量室内环境中的温湿度参数值,在本实施例中,每个DHT11传感器都首先在极为精确的湿度校验室中进行校准,校准系数以程序的形式储存在OTP内存中,传感器内部在检测信号的处理过程中要调用这些校准系数,本实施例采用4针单排引脚封装,连接方便,温湿度测量电路如图9所示。 The temperature and humidity measurement module uses a DHT11 digital temperature and humidity sensor to measure the temperature and humidity parameter values in the indoor environment. In this embodiment, each DHT11 sensor is first calibrated in an extremely accurate humidity calibration room. The coefficients are stored in the OTP memory in the form of a program, and these calibration coefficients are called inside the sensor during the processing of the detection signal. This embodiment adopts a 4-pin single-row pin package, which is convenient for connection. The temperature and humidity measurement circuit is shown in Figure 9 .

所述一氧化碳测量模块采用ZYMQ-7一氧化碳测量传感器,用于测量室内环境中的一氧化碳参数值,在本实施例中,如图10所示,为一氧化碳测量电路,一氧化碳测量传感器的气敏元件设有6只针状管脚,其中4个用于信号输出,2个用于提供加热电流。所述二氧化碳测量模块采用MG811二氧化碳测量传感器,用于测量室内环境中的二氧化碳参数值,如图11所示,为二氧化碳测量电路,其元件加热电压由外电路提供,当其表面温度足够高时,元件相当于一个电池,其两端会输出一电压信号,其值与能斯特方程符合得较好,元件测量时放大器的阻抗须在100—1000GΩ之间,其测试电流应控制在1pA以下。 Described carbon monoxide measurement module adopts ZYMQ-7 carbon monoxide measurement sensor, is used for measuring the carbon monoxide parameter value in indoor environment, in the present embodiment, as shown in Figure 10, is carbon monoxide measurement circuit, the gas sensor of carbon monoxide measurement sensor is provided with 6 needle pins, 4 of which are used for signal output, and 2 are used to provide heating current. The carbon dioxide measurement module adopts MG811 carbon dioxide measurement sensor, which is used to measure the carbon dioxide parameter value in the indoor environment. As shown in Figure 11, it is a carbon dioxide measurement circuit, and its element heating voltage is provided by an external circuit. When the surface temperature is high enough, The component is equivalent to a battery, and its two ends will output a voltage signal, and its value is in good agreement with the Nernst equation. When the component is measured, the impedance of the amplifier must be between 100-1000GΩ, and the test current should be controlled below 1pA.

所述甲醛测量模块采用MS1100甲醛测量传感器,用于测量室内环境中的甲醛参数值,如图12所示,为本实施例的甲醛测量电路。 The formaldehyde measurement module adopts MS1100 formaldehyde measurement sensor, which is used to measure the formaldehyde parameter value in the indoor environment, as shown in FIG. 12 , which is the formaldehyde measurement circuit of this embodiment.

所述PM2.5测量模块采用GP2Y1010AU0F粉尘传感器,用于测量室内环境中PM2.5参数值,如图13所示,为本实施例中PM2.5测量电路。 The PM2.5 measurement module adopts the GP2Y1010AU0F dust sensor for measuring the PM2.5 parameter value in the indoor environment, as shown in Figure 13, which is the PM2.5 measurement circuit in this embodiment.

如图14所示,主机模块主程序主要完成主机模块的控制功能,开机通电后,首先进行初始化,然后进入主机主界面,在主机界面上有各种功能触摸键,当触摸某个功能键时,进入该功能界面并执行相应功能。 As shown in Figure 14, the main program of the mainframe module mainly completes the control function of the mainframe module. After turning on the power, it first initializes and then enters the main interface of the mainframe. There are various function touch keys on the mainframe interface. When touching a certain function key , enter the function interface and execute the corresponding function.

如图15所示,本系统的主机显示模块选用TFT2.8彩屏,利用该彩屏可以显示各个从机的测量参数,并具有触摸功能,实现较好的人机接口。通电之后,首先进行TFT的初始化,然后初始化触摸控制器,接下来会显示初始的人机接口界面,在该界面下可以选择触摸按键,进入到相应的功能界面,执行相应功能。 As shown in Figure 15, the host display module of this system uses a TFT2.8 color screen, which can display the measurement parameters of each slave, and has a touch function to achieve a better man-machine interface. After power on, firstly initialize the TFT, then initialize the touch controller, and then display the initial man-machine interface interface, in which you can select the touch button to enter the corresponding function interface and execute the corresponding function.

如图16所示,从机模块主程序主要完成从机模块的控制功能,从机模块的主要任务是利用各种传感器测得各个室内环境参数值,并将各个参数值通过从机通信模块发送给主机模块进行监测。 As shown in Figure 16, the main program of the slave module mainly completes the control function of the slave module. The main task of the slave module is to use various sensors to measure the values of various indoor environment parameters, and send each parameter value through the slave communication module Monitor the host module.

如图17所示,从机模块利用DHT11传感器测量温湿度参数,DHT11采用单总线数据格式,一次通讯时间4ms左右,数据分小数部分和整数部分,具体格式在下面说明,当前小数部分用于以后扩展,现读出为零。操作流程如下:一次完整的数据传输为40bit,高位先出。 As shown in Figure 17, the slave module uses the DHT11 sensor to measure temperature and humidity parameters. DHT11 uses a single-bus data format, and the communication time is about 4ms. The data is divided into decimal parts and integer parts. Extended, now reads as zero. The operation process is as follows: a complete data transmission is 40bit, high bit first out.

数据格式:8bit湿度整数数据+8bit湿度小数数据+8bi温度整数数据+8bit温度小数数据+8bit校验和 Data format: 8bit humidity integer data + 8bit humidity decimal data + 8bi temperature integer data + 8bit temperature decimal data + 8bit checksum

数据传送正确时校验和数据等于“8bit湿度整数数据+8bit湿度小数数据+8bi温度整数数据+8bit温度小数数据”所得结果的末8位。DHT11接收到主机模块的开始信号后,等待主机模块开始信号结束,然后发送80us低电平响应信号。主机模块发送开始信号结束后,延时等待20-40us后,读取DHT11的响应信号,主机模块发送开始信号后,可以切换到输入模式,或者输出高电平均可,总线由上拉电阻拉高。 When the data transmission is correct, the checksum data is equal to the last 8 bits of the result obtained by "8bit humidity integer data + 8bit humidity decimal data + 8bi temperature integer data + 8bit temperature decimal data". After receiving the start signal from the host module, DHT11 waits for the end of the start signal from the host module, and then sends an 80us low-level response signal. After the host module sends the start signal, after a delay of 20-40us, read the response signal of DHT11. After the host module sends the start signal, it can switch to the input mode or output high level, and the bus is pulled up by the pull-up resistor. .

如图18所示,从机模块中一氧化碳、二氧化碳、甲醛和PM2.5的测量都需要将传感器测得的数据AD转换后发给单片机进行处理。本发明选用单片机自带AD。STC12系列单片机自带A/D转换口在P1口(P1.0-P1.7),有8路10位高速A/D转换器,速度可达到250KHz。上电复位后P1口为弱上拉型I/O口,用户可以通过软件设置将8路中的任何一路设置为A/D转换,不需作为A/D使用的口可继续作为I/O口使用。 As shown in Figure 18, the measurement of carbon monoxide, carbon dioxide, formaldehyde and PM2.5 in the slave module all need to AD convert the data measured by the sensor and send it to the microcontroller for processing. The present invention selects the self-contained AD of the single-chip microcomputer. STC12 series MCU has its own A/D conversion port in P1 port (P1.0-P1.7), and there are 8 channels of 10-bit high-speed A/D converters, and the speed can reach 250KHz. After power-on reset, the P1 port is a weak pull-up I/O port. The user can set any of the 8 channels as A/D conversion through software settings, and the ports that do not need to be used as A/D can continue to be used as I/O. oral use.

如图19和图20所示,本发明的主机模块和从机模块之间通过无线通信模块XL4432_SMT进行数据通信。主/从机通信模块编程采用模块化设计思想,系统中各主要功能模块均编成独立的函数由主程序调用。功能模块包括:初始化程序(包括初始化SPI和XL4432),无线发送程序,无线接收程序等。无线发送程序负责写入数据,并根据通信协议为数据加上前导码、同步字、数据长度及CRC校验字节,形成数据包将其发送出去;无线接收程序负责接收并检验数据包中的CRC字节,以确保接收到的数据的正确性。 As shown in Fig. 19 and Fig. 20, data communication is performed between the master module and the slave module of the present invention through the wireless communication module XL4432_SMT. The master/slave communication module programming adopts the modular design idea, and each main function module in the system is compiled into an independent function and called by the main program. Functional modules include: initialization program (including initializing SPI and XL4432), wireless sending program, wireless receiving program, etc. The wireless sending program is responsible for writing data, and adding preamble, synchronization word, data length and CRC check byte to the data according to the communication protocol, forming a data packet and sending it out; the wireless receiving program is responsible for receiving and checking the data in the data packet. CRC byte to ensure the correctness of the received data.

以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。 The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and changes. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.

Claims (10)

1. a distributed indoor environmental quality detection system, is characterized in that, this system comprises host module and is distributed in indoor from machine module, and described host module is by host SCM, and connect the host power supply module of host SCM respectively, clock module, reseting module, display module and host computer communication module composition, described from machine module by from machine single-chip microcomputer, and connect respectively from machine single-chip microcomputer from electromechanical source module, clock module, reseting module, from machine communication module, temperature and humidity measurement module, carbon monoxide measurement module, carbon dioxide measurement module, formaldehyde measurement module and PM2.5 measurement module composition, wherein, data and command transfer are given multiple from machine module by communication by described host module, describedly by communication, environmental parameter is transferred to host module by the environmental parameter around the measurement module collection that is attached thereto from machine module, described host module realized all unified managements from machine module and monitoring in real time by the communication modes of poll extension set.
2. distributed indoor environmental quality detection system according to claim 1, it is characterized in that, described host SCM adopts STC12C5A60S2 chip, for receiving each measurement data sent from machine single-chip microcomputer, described from machine single-chip microcomputer employing STC12C5A60S2 chip, measure various IAQ (indoor air quality) parameter by each sensor assembly be attached thereto, and parameter will be recorded send to host SCM.
3. distributed indoor environmental quality detection system according to claim 1, is characterized in that, described master/slave electromechanical source module adopts AMS1117-3.3 chip and AMS1117-5.0 chip, and generation 3.3V voltage and 5V voltage are powered respectively.
4. distributed indoor environmental quality detection system according to claim 1, is characterized in that, described reseting module is made up of an electric capacity of cross-over connection between master/slave electromechanical source module and master/slave machine monolithic processor resetting end and resistance.
5. distributed indoor environmental quality detection system according to claim 1, is characterized in that, described display module adopts the touch color screen of TFT2.8, for showing each measurement parameter from machine module.
6. distributed indoor environmental quality detection system according to claim 1, it is characterized in that, described host computer communication module and all adopt XL4432-SMT wireless communication module from machine communication module, for carrying out wireless data communications at host SCM with between machine single-chip microcomputer.
7. distributed indoor environmental quality detection system according to claim 1, is characterized in that, described temperature and humidity measurement module adopts DHT11 digital hygro sensor, for the humiture parameter value in measuring chamber environment.
8. distributed indoor environmental quality detection system according to claim 1, it is characterized in that, described carbon monoxide measurement module adopts ZYMQ-7 carbon monoxide survey sensor, for the carbon monoxide parameter value in measuring chamber environment, described carbon dioxide measurement module adopts MG811 carbon dioxide survey sensor, for the carbon dioxide parameter value in measuring chamber environment.
9. distributed indoor environmental quality detection system according to claim 1, is characterized in that, described formaldehyde measurement module adopts MS1100 formaldehyde measurement sensor, for the formaldehyde parameter value in measuring chamber environment.
10. distributed indoor environmental quality detection system according to claim 1, is characterized in that, described PM2.5 measurement module adopts GP2Y1010AU0F dust sensor, for PM2.5 parameter value in measuring chamber environment.
CN201510669965.4A 2015-10-16 2015-10-16 Distributed indoor environment quality detection system Pending CN105241504A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510669965.4A CN105241504A (en) 2015-10-16 2015-10-16 Distributed indoor environment quality detection system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510669965.4A CN105241504A (en) 2015-10-16 2015-10-16 Distributed indoor environment quality detection system

Publications (1)

Publication Number Publication Date
CN105241504A true CN105241504A (en) 2016-01-13

Family

ID=55039231

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510669965.4A Pending CN105241504A (en) 2015-10-16 2015-10-16 Distributed indoor environment quality detection system

Country Status (1)

Country Link
CN (1) CN105241504A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105514720A (en) * 2016-01-21 2016-04-20 苏州经贸职业技术学院 Intelligent socket group control system based on internet of things
CN107991957A (en) * 2017-12-08 2018-05-04 郑州云海信息技术有限公司 A kind of server room dynamic environment management system based on CPLD
CN108931269A (en) * 2018-06-28 2018-12-04 广东技术师范学院 A kind of wireless humiture acquisition system
CN109443422A (en) * 2018-09-27 2019-03-08 北京金茂绿建科技有限公司 The majority of distributed sensor is according to centralized displaying method
CN109521151A (en) * 2017-09-19 2019-03-26 北京迪文科技有限公司 A kind of human-computer interaction device that realizing air quality monitoring and method
CN109813374A (en) * 2019-01-18 2019-05-28 西南石油大学 Distributed Indoor Environment Monitoring System
CN119200487A (en) * 2024-11-27 2024-12-27 杭州数蚕智能科技有限公司 Portable configuration terminal device, intelligent control system and method based on Internet of Things

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN203101981U (en) * 2013-03-01 2013-07-31 四川久远新方向智能科技有限公司 Environmental monitoring system
CN203164721U (en) * 2013-03-13 2013-08-28 安徽工程大学 Indoor environment monitoring device
CN103969297A (en) * 2014-05-09 2014-08-06 苏州经贸职业技术学院 Indoor CO concentration detector
CN203849243U (en) * 2014-04-17 2014-09-24 中康韦尔(保定)环境科技有限公司 System for detecting quality of outdoor air
CN104075753A (en) * 2014-05-05 2014-10-01 林聪� Multifunctional environment measuring instrument
CN104330175A (en) * 2014-10-21 2015-02-04 苏州德鲁森自动化系统有限公司 Real-time community environment temperature monitoring system
CN104330528A (en) * 2014-10-22 2015-02-04 上海纳普信息科技有限公司 Harmful gas monitoring system based on wireless technology
CN204666191U (en) * 2015-05-07 2015-09-23 广西壮族自治区环境保护科学研究院 A kind of indoor environment monitoring system
CN205066815U (en) * 2015-10-16 2016-03-02 苏州经贸职业技术学院 Indoor environmental quality detecting system of distributing type

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN203101981U (en) * 2013-03-01 2013-07-31 四川久远新方向智能科技有限公司 Environmental monitoring system
CN203164721U (en) * 2013-03-13 2013-08-28 安徽工程大学 Indoor environment monitoring device
CN203849243U (en) * 2014-04-17 2014-09-24 中康韦尔(保定)环境科技有限公司 System for detecting quality of outdoor air
CN104075753A (en) * 2014-05-05 2014-10-01 林聪� Multifunctional environment measuring instrument
CN103969297A (en) * 2014-05-09 2014-08-06 苏州经贸职业技术学院 Indoor CO concentration detector
CN104330175A (en) * 2014-10-21 2015-02-04 苏州德鲁森自动化系统有限公司 Real-time community environment temperature monitoring system
CN104330528A (en) * 2014-10-22 2015-02-04 上海纳普信息科技有限公司 Harmful gas monitoring system based on wireless technology
CN204666191U (en) * 2015-05-07 2015-09-23 广西壮族自治区环境保护科学研究院 A kind of indoor environment monitoring system
CN205066815U (en) * 2015-10-16 2016-03-02 苏州经贸职业技术学院 Indoor environmental quality detecting system of distributing type

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105514720A (en) * 2016-01-21 2016-04-20 苏州经贸职业技术学院 Intelligent socket group control system based on internet of things
CN109521151A (en) * 2017-09-19 2019-03-26 北京迪文科技有限公司 A kind of human-computer interaction device that realizing air quality monitoring and method
CN107991957A (en) * 2017-12-08 2018-05-04 郑州云海信息技术有限公司 A kind of server room dynamic environment management system based on CPLD
CN108931269A (en) * 2018-06-28 2018-12-04 广东技术师范学院 A kind of wireless humiture acquisition system
CN109443422A (en) * 2018-09-27 2019-03-08 北京金茂绿建科技有限公司 The majority of distributed sensor is according to centralized displaying method
CN109813374A (en) * 2019-01-18 2019-05-28 西南石油大学 Distributed Indoor Environment Monitoring System
CN119200487A (en) * 2024-11-27 2024-12-27 杭州数蚕智能科技有限公司 Portable configuration terminal device, intelligent control system and method based on Internet of Things

Similar Documents

Publication Publication Date Title
CN105241504A (en) Distributed indoor environment quality detection system
CN104614593B (en) One kind is based on self-alignment high-precision intelligent instrument system and its application process
CN101398405B (en) Water electric conductivity intelligent sensor
CN205066815U (en) Indoor environmental quality detecting system of distributing type
CN101476903A (en) General-purpose interface collection system of sensor
CN103048017A (en) Intelligent temperature-humidity electronic measuring system based on SHT sensor
CN110658241A (en) A multi-gas detection device
CN204445892U (en) The hand-held lung function instrument of domestic
CN103049984B (en) Combustible gas alarm instrument based on Wireless HART communication technology
CN103246223A (en) Zigbee-based sensing measurement and control system
CN206369559U (en) A kind of USB interface-based equipment condition monitoring and fault location system
CN202330330U (en) Gas dew point measuring device based on humiture detection
CN204241442U (en) Hyperchannel indoor gas parameter tester and indoor gas parameter test system
CN214795262U (en) an intelligent weather instrument
CN203385495U (en) Multipath temperature testing system
CN204422130U (en) A kind of gas pressure detection meter
CN107300641A (en) Electronic tag resistance multi-path multi-machine detection device
CN206583745U (en) Suitable for the gas detecting instrument of QCM gas sensors
CN220709556U (en) Laboratory data remote control system
CN101109968A (en) Programmable controller for temperature and humidity
CN221549749U (en) A portable environmental parameter detector
CN221745121U (en) High-speed railway station environment dynamic monitoring and early warning device
CN203117253U (en) Portable multipurpose tester based on ARM
CN221803885U (en) Oil conductivity measuring instrument
CN204650183U (en) To wave control device and be provided with the purification of air rehabilitation machine of this device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160113