System for monitoring and analyzing regional air pollution based on Internet of Things and Beidou technology
The air pollution monitoring system that combines the Internet of Things and Beidou technology solves the problem of difficulty in locating air pollution sources with traditional monitoring methods, and achieves efficient and reliable air quality monitoring and pollution source location, which is suitable for residents and departments.
Patent Information
- Application Number
- CN202410606300.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-16
- Publication Date
- 2024-09-03
AI Technical Summary
Existing technologies are difficult to effectively locate and monitor air pollution sources in specific areas, and traditional monitoring methods cannot meet residents' needs for air quality.
Adopting an air pollution monitoring system based on the Internet of Things and Beidou technology, including client, main terminal and server, using PM2.5 and PM10 sensors, ozone sensors, Lora module, Beidou positioning module and ESP32 microcontroller, through the Lora module and NB module Perform data transmission and combine with big data analysis tools to achieve data visualization and intuitive display of pollution sources.
It improves the reliability and accuracy of air quality monitoring, can effectively locate pollution sources, reduces equipment costs, has strong applicability, is suitable for residents' own use or department use, and can visually display the changing patterns of air quality through data visualization tools.
Smart Images

Figure CN118584046A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of air pollution monitoring, and specifically refers to a monitoring and analysis system for regional air pollution based on the Internet of Things and Beidou technology. Background Art
[0002] After burning, coal will produce a lot of harmful gases such as carbon dioxide and sulfur dioxide (such as Figure 1 ). Some of the straw left after the harvest of crops, if burned due to improper treatment or other reasons, will produce a large amount of carbon dioxide and tiny particles. There are many other related pollution sources, including factory exhaust gas, wastewater discharge, improper urban garbage disposal, etc., but it is still difficult to locate the actual pollution source and the actual pollutants.
[0003] Relevant departments will place a small number of sensors in various districts as air monitoring points. However, the effective area covered by a single monitoring point is not very large, and it is difficult to know the air pollutants around you or even find the source of pollution. Summary of the invention
[0004] The technical problem to be solved by the present invention is that currently the detection of air quality can only rely on several monitoring stations set up by the environmental protection department in various districts, but the traditional monitoring method obviously cannot meet the needs of residents for air monitoring in a specific area.
[0005] In order to solve the above technical problems, the technical solution provided by the present invention is: a monitoring and analysis system for regional air pollution based on the Internet of Things and Beidou technology, comprising:
[0006] Client: The client includes PM2.5 and PM10 sensors, ozone sensor, Beidou positioning module, Lora module, ESP32 microcontroller and battery. The client is used to collect air data near the device and upload it to the main terminal;
[0007] The main end integrates the Lora module, NB module, and ESP32 microcontroller. The main end collects the data sent by the client and summarizes the collected data and sends it to the server through the NB module;
[0008] On the server side, the main body of the server side is the MQTT server. The server side obtains the data information sent by the main end and analyzes it, including visualization of the data and display of geographic information.
[0009] Compared with the prior art, the advantages of the present invention are: 1) The communication between Lora modules does not rely on the base station, is not affected by the signal quality, has high reliability, and consumes very little power. It has very low requirements on the detection area and strong applicability;
[0010] 2) Combined with Beidou positioning, the pollution source can be intuitively displayed on the map;
[0011] 3) The equipment cost is low, which is very convenient for residents to use for themselves or to assist relevant departments in air quality monitoring;
[0012] 4) Use big data analysis tools to mine data information and identify pollution sources more effectively.
[0013] Furthermore, a sensor terminal is integrated in the client. The main controller of the sensor terminal uses the ESP32 development board. The PM2.5 and PM10 sensors use laser dust sensors; the ozone sensor uses tungsten trioxide with low electrical conductivity in clean air as the manufacturing material; the Beidou positioning module specifically uses the Beidou positioning serial port module.
[0014] Furthermore, a communication terminal is integrated in the main terminal, and the communication terminal adopts a combined communication mode of Lora module and NB module.
[0015] Furthermore, the server side is used to run Python programs. The server side contains two Python programs for data collection and data visualization respectively. The server side uses the MQTT communication protocol to upload the data from the main end to the MQTT server, and then uses the Python program to subscribe to the messages of the MQTT server. Once a message is received, it is recorded in a csv file. After saving all the data in the csv file, Python is used to draw a data visualization map. The map can intuitively show the pattern of data changes.
[0016] Furthermore, the laser dust sensor is connected to the microcontroller using a serial port, and the detected PM2.5 and PM10 data are sent to the microcontroller through the serial port. The default baud rate is 9600.
[0017] Furthermore, the gas-sensitive material of the ozone sensor has different resistance in different ozone concentration environments, and different ozone concentrations can be detected and measured by constructing a voltage divider circuit.
[0018] Furthermore, a timing module is integrated in the client, which is used for timed start-up and message sending of the device. In order to enable the device to work for a long time, the timing module includes an attached optocoupler control circuit, which can realize timed opening of the sensor power supply and read the sensor value. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 It is a schematic diagram of the architecture of the present invention.
[0020] Figure 2 This is the communication block diagram between the main end and the server.
[0021] Figure 3 This is a schematic diagram of the serial port communication of the Beidou positioning module.
[0022] Figure 4 It is a server-side workflow diagram.
[0023] Figure 5 This is the sensor power drive circuit diagram.
[0024] Figure 6 This is the ozone sensor test circuit diagram.
[0025] Figure 7 It is the typical sensitivity characteristic curve of the sensor and the typical temperature and humidity characteristic curve.
[0026] Figure 8 This is a diagram of the data storage format.
[0027] Fig. 9 This is a schematic diagram of the air quality GIS system.
[0028] Fig.10 It is a line graph of air pollutants.
[0029] Fig.11 This is a schematic diagram of Minhang Industrial Park in summer in the pollutant visualization display interface.
[0030] Fig.12 This is a schematic diagram of the Shanghai Jiao Tong University campus in autumn in the pollutant visualization display interface.
[0031] Fig.13 This is a schematic diagram of the Maqiao residential area in winter in the pollutant visualization display interface.
[0032] Fig.14 This is a line graph of different gas values measured at different times by the same equipment in Minhang Industrial Park.
[0033] Fig.15 This is a schematic diagram of the changes in ozone values measured by three devices in Minhang Industrial Park.
[0034] Fig.16 This is a schematic diagram of Shanghai Jiao Tong University’s air quality data in autumn. DETAILED DESCRIPTION
[0035] The present invention is further described in detail below in conjunction with the accompanying drawings.
[0036] Embodiment 1
[0037] like Figure 1As shown, this embodiment provides the architecture of the system. Each terminal of the system contains three types of pollutant gas detection devices, Lora communication module, and Beidou positioning module. The equipment can be easily placed around different communities or factories several kilometers apart by means of magnetic suction or cable ties, and regularly detect gas data and Beidou positioning, and transmit it to the main terminal tens of kilometers away through Lora. The main terminal transmits the data to the server, and the big data analysis tools can be used to analyze the direction of gas diffusion and the pollution distribution map to find the source of pollution. The system consists of multiple parts: client, main terminal, and server, among which:
[0038] (1) Client: PM2.5 and PM10 sensors, ozone sensors, Beidou positioning, Lora module, ESP32 microcontroller and battery, etc., which collects nearby air data and uploads it to the main terminal (such as Figure 1 ).
[0039] (2) Main end: Lora module, NB module, ESP32 microcontroller, etc. Its function is to collect data sent by the client and summarize the collected data and send it to the server through the NB module.
[0040] Server: MQTT server. Function: Get data information and perform data analysis. Including data visualization, display of geographic information (such as Figure 2 ).
[0041] Embodiment 2
[0042] Based on the first embodiment, as shown in Table 1, this system integrates a variety of electronic components, among which the main controller of the sensor end selects the ESP32 development board, which is a dual-core chip designed for the Internet of Things system, supports WIFI and Bluetooth dual-mode communication, and has the characteristics of small size, ultra-low power consumption, onboard charging circuit, and easy-to-use interface.
[0043] Serial number Using Modules Implementing functions 1 ESP32 Controller Main controller, information transceiver 2 Beidou positioning module Obtain the location of each monitoring point to facilitate later analysis and search for pollution sources 3 LoRa Module Long-distance communication, sending information from each monitoring terminal to the main terminal 4 PM2.5, PM10 sensors Monitoring PM2.5 and PM10 5 Ozone Sensor Monitoring ozone 6 NB module networking 7 Lithium battery System power supply
[0044] Table 1
[0045] Embodiment 3
[0046] Based on Example 2, as shown in Table 1, the PM2.5 and PM10 monitoring of this system uses a laser dust sensor. The laser scattering principle is adopted, that is, the laser is irradiated on the suspended particles in the air to generate scattering and the scattered light is collected at a certain angle to obtain a curve of the scattered light intensity changing with time. Then, the microprocessor uses an algorithm based on the Mie MIE theory to obtain the equivalent particle size of the particles and the number of particles of different particle sizes per unit volume.
[0047] FS00201 laser dust sensor is a digital universal particle concentration sensor that can be used to obtain the mass concentration of suspended particles in the air per unit volume, namely PM 1.0, PM 2.5, and PM10 in μg / m 3 And output in the form of digital interface. The sensor can be embedded in various instruments or environmental improvement equipment related to the concentration of suspended particles in the air to provide them with timely and accurate concentration data.
[0048] Embodiment 4
[0049] Based on the second embodiment, as shown in Table 1, the ozone sensor of this system adopts MQ131 ozone sensor (low concentration), which is made of special gas-sensitive material, namely tungsten trioxide with low conductivity in clean air. When ozone exists in the environment where the sensor is located, the conductivity of the sensor decreases with the increase of the ozone gas concentration in the air. The change of conductivity can be converted into an output signal corresponding to the gas concentration using a simple circuit.
[0050] Embodiment 5
[0051] On the basis of the second embodiment, as shown in Table 1, the positioning module adopts the Beidou positioning serial port module, which has the characteristics of small size, high number of satellite readings, high positioning accuracy, and most importantly, the information can be sent through the serial port to inform the main controller, such as Figure 3 As shown, the main controller can make corresponding responses after reading through the serial port.
[0052] Embodiment 6
[0053] Based on the first embodiment, Figure 1 As shown in the figure, due to the complex outdoor environment, not all locations have good NB communication environment. The communication end of this system adopts the NB+LoRa combination to make up for the lack of mobile signals. LoRa communication module, see below Fig.13 , with the function of self-organizing network, is a technology widely used in the Internet of Things. It solves the problem of not being able to take into account distance, anti-interference and insufficient power consumption at the same time; in addition, the lora module integrates a +20dBm adjustable power amplifier, which greatly improves the receiving sensitivity. Today, Lora has a very important application in long-distance communication scenarios.
[0054] Embodiment 7
[0055] Based on the first embodiment, Figure 4As shown in the figure, the server is used to run the python program. This project includes two python programs, which realize data collection and data visualization respectively. In order to transmit and save data through the Internet, this project uses the MQTT communication protocol to upload the data of the main end to the MQTT server, and then uses the python program to subscribe to the message of the MQTT server. Once a message is received, it will be recorded in the csv file. After saving all the data in the csv file, use python to draw a data visualization map, through which you can intuitively see the change pattern of the data.
[0056] This project uses the existing free IoT server broker.emqx.io, which can be used for free without username and password. You only need to log in to publish messages to the specified topic. Devices that need to receive messages only need to log in to the server and subscribe to the corresponding topic to receive messages published to this topic.
[0057] Embodiment 8
[0058] Based on the first embodiment, Figure 5 As shown in the figure, when building the physical model of this system, the dust sensor needs to use a motor to absorb air, and the ozone sensor needs to heat the device to a certain temperature for a short time before use, both of which require a lot of electricity. The goal at the beginning of this project design was to allow the device to use batteries for a long time, so the power supply part needed to be redesigned.
[0059] When designing the circuit, the power consumption of the two sensors was taken into consideration. This project uses a separate IO port on the microcontroller to control the power supply of the two devices. Therefore, an optocoupler was used to drive the two sensors, and a port of ESP32 was used to control the MOS tube. Figure 5 The sensor power drive circuit shown has been tested and found that after using this drive circuit to control the power supply of two sensors, the use time of the equipment can be effectively extended by 8-10 times.
[0060] Embodiment 8
[0061] Based on the first embodiment, the client includes the ESP32 microcontroller, Lora module, Beidou positioning module, dust sensor, ozone sensor and battery. If DuPont wire is used for connection, it will inevitably be very large and not suitable for outdoor use. Therefore, in order to make the equipment compact and strong, this project redraws the PCB and puts the ESP32 microcontroller, Lora module and Beidou positioning module on one board, which greatly reduces the volume. Then, each component is attached to the PCB board and soldered using solder paste and a hot air blower.
[0062] Then the appearance design and assembly of the device are carried out. In order to make the device stronger, the shell is designed and printed out using a 3D printer. Then the battery, main control board and two sensors are placed in the device in turn and the power is turned on.
[0063] Embodiment 9
[0064] Based on the first embodiment, the software development of this device includes three parts:
[0065] (1) Dust sensor development
[0066] The dust sensor is connected to the microcontroller via the serial port, and the detected PM2.5, PM10 and other data are sent to the microcontroller via the serial port. The default baud rate is 9600. The serial port data is transmitted in hexadecimal, where the PM2.5 and PM10 data are at the 7th, 8th and 9th, 10th bits. The beginning of the data is determined by judging the two data 0x42 and 0x4d. Therefore, after the serial port receives the message, the position of these two characters is first determined, and then the 7th, 8th and 9th, 10th bits are found.
[0067] (2) Ozone sensor development
[0068] The gas-sensitive material of the ozone sensor has different resistance in different ozone concentration environments. The different ozone concentrations can be detected and measured by building a voltage divider circuit. Figure 6 As shown, the two voltages are the heater voltage (VH) and the test voltage (VC). VH is used to provide a specific operating temperature for the sensor, and can be powered by a DC power supply or an AC power supply. VRL is the voltage on the load resistor (RL) connected in series with the sensor. This project requires measuring the size of VRL. Figure 7 The characteristic curve can be used to calculate the ozone concentration at the current temperature and humidity.
[0069] (3) Timing of device activation and message sending
[0070] In order to enable the device to work for a long time, this project designs an optocoupler control circuit, which can realize timing to turn on the sensor power supply and read the sensor value.
[0071] Embodiment 10
[0072] Based on the first embodiment, Figure 8 As shown in the figure, in terms of data analysis and visualization of this system, in order to intuitively show the differences in data distribution and the trend of data changes, this project analyzes and visualizes the data to facilitate users to accurately locate pollution sources and major pollutants. The collected data is stored in a csv file, which contains the time, date, longitude and latitude of the three clients, and pollutant values. Fig. 9 and Fig.10As shown in the figure, when visualizing the data, the pyecharts library was used to implement a GIS system combined with air quality.
[0073] Embodiment 11
[0074] Based on the first embodiment, the equipment testing and data analysis of this system include the following parts:
[0075] (1) Data collection and big data cleaning
[0076] Fixed-point tests are carried out in different residential areas, factories, schools, shopping malls and other locations in Shanghai in summer, autumn and winter. After the data is obtained, it is determined by geographical location and data analysis is performed based on the changes in the concentration of the collected air data to determine which measurement location the pollution source is closer to, and then the final information is output.
[0077] Serial number date Place temperature weather wind direction 1 2023 / 07 / 26 Minhang Industrial Park 26℃-33℃ Cloudy to light rain Northeast wind level 1 2 2023 / 07 / 27 Minhang Industrial Park 26℃-31℃ Light rain to moderate rain Southeast wind level 2 3 2023 / 07 / 28 Minhang Industrial Park 26℃-29℃ Overcast to moderate rain East wind level 3 4 2023 / 10 / 04 Jiaotong University Campus 20℃-25℃ Cloudy to sunny Northeast wind level 3 5 2023 / 10 / 05 Jiaotong University Campus 19℃-24℃ Overcast to mostly cloudy Northeast wind level 4 6 2023 / 10 / 06 Jiaotong University Campus 20℃-23℃ Cloudy to light rain Northeast wind level 3 7 2024 / 01 / 08 Maqiao Living Area 0℃-10℃ Negative Southeast wind level 1 8 2024 / 01 / 09 Maqiao Living Area 5℃-14℃ Mild haze Northwest wind level 3 9 2024 / 01 / 10 Maqiao Living Area 3℃-9℃ clear North wind force 2
[0078] Table 2
[0079] In each test, each point was measured for 3 days, and 3888 data were obtained. There were some missing data (such as NaN, etc.) in these data, so the data needed to be cleaned first, and the average value was calculated based on the surrounding data, and the average value was filled into the missing data. The processed data was analyzed and visualized using Python so that it could be cleaned and clearly viewed.
[0080] (2) Data analysis and visualization
[0081] In this project, the geographic information system is used to display the collected data. This project collects three types of data: PM2.5, PM10, and O3, so a visual map is drawn for each type of data.
[0082] like Fig.11 , 12 As shown in Figure 13, combined with the weather conditions in Shanghai, in spring and summer, the primary pollutant in Shanghai is ozone, while in autumn and winter, the primary pollutants in Shanghai are PM2.5 and PM10, so the primary pollutant data for a specific season is displayed here. In this project, the visualization results are presented through a web page. The web page can intuitively display the trend of air changes with location by clicking the mouse. By viewing the data at different locations, you can see that the maximum peak value of pollutant monitoring changes with direction. At the same time, the line chart shows the changes in values over time and with location.
[0083] like Fig.14As shown, it can be clearly seen that in the summer in Minhang Industrial Park, the ozone content exceeds the standard seriously. This is related to the large-scale production in the surrounding factories, which leads to higher ozone values here.
[0084] like Fig.15 As shown, the values measured by the three devices have a consistent change pattern. Combined with the east-west placement of the three devices, it can be seen that ozone begins to spread from west to east. From this, it can be preliminarily determined that there are more industrial activities in the west. From observation of this place, it can be seen that there are still more factory buildings and equipment in the west.
[0085] like Fig.16 As shown, the PM2.5 values of devices 2 and 3 are higher than those of device 1. According to the distribution of the devices, it can be seen that devices 2 and 3 are close to Zizhu Park and Jianchuan Road, where there are many large vehicles passing by, so the relative pollutant PM2.5 will be slightly higher than that of device 1.
[0086] To sum up, this device can realize data collection and transmission very well, and can present the data very well through data visualization tools; according to the drawn data charts, it can be seen that the changes of pollutants over time and space can be well displayed in the charts; combined with the Internet of Things and Beidou technology, it can realize long-distance transmission and collection of data, and can be combined with geographic information systems to well reflect the changes of pollutants.
[0087] The above shows and describes the basic principles and main features of the present invention and the advantages of the invention. Those skilled in the art should understand that the present invention is not limited to the above embodiments. The above embodiments and descriptions are only for explaining the principles of the present invention. Without departing from the spirit and scope of the present invention, the present invention may have various changes and improvements, which fall within the scope of the present invention to be protected. The scope of protection of the present invention is defined by the attached claims and their equivalents.
Claims
1. A monitoring and analysis system for regional air pollution based on the Internet of Things and Beidou technology, characterized by: include: The client includes PM2.5 and PM10 sensors, ozone sensors, Beidou positioning module, Lora module, ESP32 microcontroller and battery. The client is used to collect air data near the device and upload it to the main terminal; The main end integrates the Lora module, NB module, and ESP32 microcontroller. The main end collects the data sent by the client and summarizes the collected data and sends it to the server through the NB module; The server side is mainly an MQTT server. The server side obtains the data information sent by the main end and analyzes it, including visualization of the data and display of geographic information.
2. The system for monitoring and analyzing regional air pollution based on the Internet of Things and Beidou technology according to claim 1 is characterized in that: The client is integrated with a sensor terminal, and the main controller of the sensor terminal selects the ESP32 development board. The PM2.5 and PM10 sensors use laser dust sensors; the ozone sensor uses tungsten trioxide with low conductivity in clean air as a manufacturing material; the Beidou positioning module specifically uses a Beidou positioning serial port module.
3. The monitoring and analysis system for regional air pollution based on the Internet of Things and Beidou technology according to claim 1 is characterized in that: The main terminal is integrated with a communication terminal, which adopts a Lora module and a NB module combined communication mode.
4. The system for monitoring and analyzing regional air pollution based on the Internet of Things and Beidou technology according to claim 1 is characterized in that: The server side is used to run the python program. The server side contains two python programs for realizing data collection and data visualization respectively. The server side uses the MQTT communication protocol to upload the data of the main end to the MQTT server, and then uses the python program to subscribe to the message of the MQTT server. Once a message is incoming, it is recorded in a csv file. After saving all the data in the csv file, python is used to draw a data visualization map. The map can intuitively show the change pattern of the data.
5. The system for monitoring and analyzing regional air pollution based on the Internet of Things and Beidou technology according to claim 2 is characterized in that: The laser dust sensor is connected to the single-chip microcomputer via a serial port, and the detected PM2.5 and PM10 data are sent to the single-chip microcomputer via the serial port. The default baud rate is 9600.
6. The monitoring and analysis system for regional air pollution based on the Internet of Things and Beidou technology according to claim 1 is characterized in that: The gas-sensitive material of the ozone sensor has different resistances in environments with different ozone concentrations, and different ozone concentrations can be detected and measured by constructing a voltage divider circuit.
7. The system for monitoring and analyzing regional air pollution based on the Internet of Things and Beidou technology according to claim 1 is characterized in that: The client also integrates a timing module, which is used for timing the start of the device and sending messages. In order to allow the device to work for a long time, the timing module includes an attached optocoupler control circuit, which can realize timing to turn on the sensor power supply and read the sensor value.
