A distributed monitoring node device for air index parameters based on Raspberry Pi

Through the distributed monitoring node device of air index parameters based on Raspberry Pi, using node networking and a variety of sensors, the problems of high cost and low coverage of the air quality monitoring system are solved, and low-cost, efficient air quality monitoring and analyze.

CN113483811BInactive Publication Date: 2024-10-15CHINA UNIV OF GEOSCIENCES (WUHAN)
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202110667362.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-06-16
Publication Date
2024-10-15
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing air quality monitoring systems are expensive and have low coverage, especially in the central, western and rural areas where monitoring is insufficient, resulting in insufficiently comprehensive and typical air sample collection.

Method used

Design a distributed monitoring node device for air index parameters based on Raspberry Pi. Through node networking, the master node controls multiple slave nodes. Socket communication is used for data upload, storage, management and query, and the Raspberry Pi node control unit is used. , drive control unit, power management unit and data acquisition unit, including photosensitive module, GPS module, smoke module, compass module, temperature and humidity module, etc., forming a single car model for monitoring air index parameters.

Benefits of technology

It achieves low-cost and efficient monitoring of air index parameters, supports large-scale deployment, and can monitor and analyze air quality data in target areas in real time, facilitating detailed analysis by staff and reducing operating costs and consumption of manpower and material resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113483811B_ABST
    Figure CN113483811B_ABST
Patent Text Reader

Abstract

The present invention provides a distributed monitoring node device for air index parameters based on Raspberry Pi, including a device body, a Raspberry Pi node control unit, a power management unit, a drive control unit and a data acquisition unit. The Raspberry Pi node control unit manages the collection of air index parameters for monitoring the target area, and uploads them to a remote local area network terminal for storage, query and management after processing and analysis; the power management unit is used to provide stable working power supply for the entire node device. A network in which a master node controls multiple slave nodes is formed. The beneficial effects of the present invention are: the node device has low cost, remote access, and adopts a distributed one-master-multiple-slave structure, which is conducive to large-scale multi-node deployment and use, can store, manage and query the collected data, can handle high-load complex calculations, and is convenient for staff to monitor the air index parameters of the target area in real time and make a comprehensive and detailed analysis of the situation in a timely manner.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of Internet of Things information technology and environmental monitoring, and in particular to a distributed monitoring node device for air index parameters based on Raspberry Pi. Background Art

[0002] In recent years, environmental issues have been paid more and more attention. Therefore, it is extremely important to carry out air quality monitoring, which is the basis for protecting and managing the air.

[0003] With the development of science and technology, open air quality monitoring systems have emerged, which are more sensitive than traditional monitoring systems. my country's air quality monitoring system has also achieved some results. With a relatively complete air quality monitoring network, it has become an important basis for my country to control air pollution. However, so far, my country's air quality monitoring system still has some defects, especially because of its high cost, resulting in a relatively low coverage rate of air quality monitoring stations, which are mainly concentrated in the southeast coastal areas. Monitoring in the central and western regions and rural areas is not in place, making the collection of air samples not comprehensive enough and lacking certain representativeness and typicality. This requires a more convenient and low-cost method to improve work efficiency and quality. Summary of the invention

[0004] In order to solve the above problems, the existing air index parameter monitoring system cannot be deployed on a large scale, is time-consuming and labor-intensive, and has high operating costs. The present invention provides a distributed monitoring node device for air index parameters based on Raspberry Pi, which realizes the function of a master node controlling multiple slave nodes through node networking, realizes the function of monitoring distributed node air index parameters, and networks multiple nodes through Socket communication, sets master and slave nodes, realizes master-slave control, and then realizes data uploading, storage, management and query. The device includes a node device body, a central control unit, a power management unit, and a drive and data acquisition unit. The device body is constructed by a single car model, wherein the distance measuring unit is fixed to the front end of the car body, and respectively monitors the distance of obstacles from the left front, front, and right front directions to the mobile node in real time; the central control unit is fixed to the middle of the car body, and controls and manages other units and processes and analyzes information after data collection; the power management unit is fixed to the rear end of the car body, and provides stable power supply for each unit module of the node device; the drive and data acquisition unit is fixed to the middle of the car body, and drives the node device to move in a specified direction to collect air index parameters in the target area. Specifically include: device body, Raspberry Pi node control unit, drive control unit, power management unit, data acquisition unit and LAN remote terminal;

[0005] The device body is a single-hull model, which is hollow inside;

[0006] The Raspberry Pi node control unit is fixed to the front side of the middle part of the device body, and is used to process and analyze the monitored air quality data, obtain the collected data after analysis, and transmit the collected data to the local area network remote terminal; it is also used to receive the control command sent by the local area network remote terminal, and control the drive control unit, the power management unit and the data acquisition unit according to the control command;

[0007] The power management unit is fixed to the rear of the device body and is used to provide stable power supply to the drive control unit, the Raspberry Pi node control unit and the data acquisition unit;

[0008] The drive control unit and the data acquisition unit are fixed to the rear side of the middle part of the device body, the drive control unit is used to drive the device body to collect air index parameters of the target area, and the data acquisition unit is used to monitor and collect data of air index parameters of the target area in real time;

[0009] The local area network remote terminal is used to send control commands and present received collected data.

[0010] Furthermore, the Raspberry Pi node control unit is a Raspberry Pi 4B.

[0011] Furthermore, the data acquisition unit includes a photosensor module, a GPS module, a smoke module, a compass module, a temperature and humidity module and an analog-to-digital conversion module.

[0012] Furthermore, the photosensor module is BH1750, and / or the GPS module is ATGM336H full-constellation positioning and navigation module, which is used to achieve precise positioning and motion navigation of the position of the subject of the device, and / or the smoke module is MQ-2, and / or the compass module is HMC5883L, and / or the temperature and humidity module is DHT11, and / or the analog-to-digital conversion module is MCP3002 chip.

[0013] Furthermore, the power management module includes a power module, a voltage reduction module and a switch.

[0014] Furthermore, the power module is a 7.4V DC lithium battery with a capacity of 2200 mAh, and / or the step-down module is an MP1584EN chip, which has an input voltage of 5V to 36V and provides a 5A output and current mode control to achieve fast loop response and compensation.

[0015] Further, the driving control unit includes a driving module and a motor, and / or, the driving module is L298N.

[0016] Furthermore, it also includes a distance measuring unit, which is fixed to the hollow part of the front part of the device body and is used for real-time monitoring the distance between the obstacles in the left front, front and right front directions and the mobile node.

[0017] Furthermore, the distance measuring unit is composed of a plurality of ultrasonic distance measuring modules.

[0018] Furthermore, the local area network remote terminal is a computer.

[0019] The technical solution provided by the present invention has the following beneficial effects: low-cost node devices, remote access, and a distributed one-master-multiple-slave structure, which is conducive to large-scale multi-node deployment and use, can store, manage and query the collected data, and can handle high-load complex calculations, making it convenient for staff to monitor the air index parameters of the target area in real time and make a comprehensive and detailed analysis of the situation in a timely manner. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The present invention will be further described below with reference to the accompanying drawings and embodiments, in which:

[0021] Figure 1 It is a device diagram of a distributed node device for air quality monitoring based on Raspberry Pi in an embodiment of the present invention.

[0022] Figure 2 It is a control structure diagram and a master-slave distributed node structure diagram of a Raspberry Pi-based air quality monitoring distributed node device in an embodiment of the present invention.

[0023] Figure 3 This is a master-slave control networking communication model diagram based on a Raspberry Pi air quality monitoring distributed node device in an embodiment of the present invention.

[0024] Figure 4 It is a flow chart of a networking communication method based on a Raspberry Pi air quality monitoring distributed node device in an embodiment of the present invention.

[0025] Figure 5 It is a control block diagram of a distributed node device for air quality monitoring based on Raspberry Pi in an embodiment of the present invention. DETAILED DESCRIPTION

[0026] In order to have a clearer understanding of the technical features, purposes and effects of the present invention, specific embodiments of the present invention are now described in detail with reference to the accompanying drawings.

[0027] The embodiment of the present invention provides a distributed monitoring node device for air index parameters based on Raspberry Pi. Multiple nodes are networked through Socket communication, master-slave nodes are set, master-slave control is realized, and data uploading, storage, management and query are realized.

[0028] Please refer to Figure 1-2 , Figure 1 is a device diagram of a distributed node device for air quality monitoring based on Raspberry Pi in an embodiment of the present invention, Figure 2 It is a control structure diagram and a master-slave distributed node structure diagram of a Raspberry Pi-based air quality monitoring distributed node device in an embodiment of the present invention, including: a device body 21, a Raspberry Pi node control unit 1, a drive control unit 2, a data acquisition unit 4, a power management unit 3, a local area network remote terminal 5 and a ranging unit 6.

[0029] The device body 21 is a single car model, which is hollow inside;

[0030] The Raspberry Pi node control unit 1 is fixed on the front side of the middle part of the device body 21, and is used to process and analyze the monitored air quality data, obtain the collected data after analysis and processing, and transmit the collected data to the local area network remote terminal 5; it is also used to receive the control command sent by the local area network remote terminal 5, and control the drive control unit 2, the power management unit 3 and the data acquisition unit 4 according to the control command; that is, the Raspberry Pi node control unit 1 manages other units to realize the parameter collection of the light intensity, position coordinates, gas concentration, magnetic field intensity, temperature and humidity information of the air indicators in the monitoring target area, and processes and analyzes the data information collected by the node and uploads it to the local area network remote terminal 5, and stores, queries and manages the data; in the Raspberry Pi node control unit 1, a plurality of Raspberry Pis are networked and linked through the Socket communication method based on the TCP protocol, and a Raspberry Pi is set as the master node and the other Raspberry Pis are slave nodes, so that the master node sends a control command to the slave node, and the slave node transmits the collected data back to the master node, which is uploaded to the local area network remote terminal 5 by the master node. A master node controls multiple slave nodes, and the Raspberry Pi releases WIFI hotspots or Bluetooth modules to achieve the master-slave control remote access function. Multiple slave nodes converge to the master node to form master-slave control and communication and analyze, process, and upload collected data; the drive control unit 2 is used to move the device body 21; the power module 3 is used to provide stable power supply to the drive control unit 2, the Raspberry Pi node control unit 1, and the data acquisition unit 4; the data acquisition unit 4 is used to monitor and collect air quality data;

[0031] The power management unit 3 is fixed to the rear of the device body 21 and is used to provide stable power supply to the drive control unit 2, the Raspberry Pi node control unit 1 and the data acquisition unit 4;

[0032] The drive control unit 2 and the data acquisition unit 4 are fixed on the rear side of the middle part of the device body 21. The drive control unit 2 is used to drive the device body 21 to move in a specified direction, thereby collecting air index parameters of the target area. The data acquisition unit 4 is used to monitor and collect air index parameters of the target area in real time. The drive and data acquisition unit includes a drive chip, a positioning chip, a temperature and humidity sensor, a photosensor, and a concentration sensor.

[0033] The LAN remote terminal 5 is used to control the Raspberry Pi master node and present all collected data.

[0034] The distance measuring unit 6 is fixed to the hollow portion in the front of the device body 21 and is used to monitor the distances of obstacles in the left front, front and right front directions from the device body 21 in real time.

[0035] Please refer to Figure 3 , Figure 3 This is a master-slave control networking communication model diagram based on a Raspberry Pi air quality monitoring distributed node device in an embodiment of the present invention. The server creates a SeverSocket, binds to the port and listens, waiting to receive a request 6; the client creates a link Socket and sends a request to the server 7; after receiving the client's request, the server creates a link Socket 8; after the link is successful, they start communicating with each other 9.

[0036] Please refer to Figure 4 , Figure 4 It is a flow chart of a networking communication method based on a Raspberry Pi air quality monitoring distributed node device in an embodiment of the present invention, in which the user process of the application layer calls the TCP / IP interface of the transport layer through the Socket of the abstract layer between the application layer and the transport layer to realize networking communication.

[0037] The networking mode for multiple mobile nodes is the Socket communication mode based on the TCP protocol. By creating a ServerSocket on the mobile master node, waiting for receiving requests, and creating link sockets on multiple mobile slave nodes to send requests to the mobile master node. After the master node accepts, it creates a link socket to complete the networking. The mobile master node can control multiple mobile slave nodes, achieving the purpose of one master controlling multiple slaves.

[0038] The Socket communication process is divided into: server monitoring, client request, and connection confirmation. It is an abstract layer between the application layer and the transport layer. It is essentially a programming interface. It abstracts the complex operations of the TCP / IP layer into several simple interfaces that are called by the application layer to realize the communication of processes in the network. When the slave node and the master node successfully establish a connection, a Socket instance will be generated at both ends. This instance is operated to complete the required control commands and data transmission.

[0039] Please refer to Figure 5 , Figure 5 It is a control block diagram of a distributed node device for air quality monitoring based on Raspberry Pi in an embodiment of the present invention. The Raspberry Pi node control unit 1 is Raspberry Pi 4B, which is small in size. The server environment is built using LAMP, that is, it has an independent operating system based on Linux, Apache network server, MySql database and Python programming language. The Linux operating system uses Broadcom BCM2711 SoC, which includes four 1.5GHz CortexA72 CPU cores and has excellent performance. The Raspberry Pi is used as the control and information processing core, and the drive control unit and the data acquisition unit are controlled by the GPIO port to move with the device body 21 and the normal operation of each sensor, and the collected air index parameters are quickly processed and analyzed. The Raspberry Pi uses its own integrated WiFi or Bluetooth module to communicate with the local area network remote terminal, and the results are promptly transmitted back to the local area network remote terminal for real-time presentation, storage, query and management, so that the staff can understand the situation in real time and make the next judgment. The MySql database of the server stores, manages and queries the collected data, which is used for the communication between the master and slave nodes and the processing of the collected data.

[0040] The power management unit 3 includes a power module 18, a buck module (MP1584EN) 19 and a switch 20. The power module 18 is a 7.4V lithium battery with a capacity of 2200 mAh, which meets the power supply requirements of the other unit modules. It has the advantages of strong endurance, light weight and rechargeable. Because the Raspberry Pi 4B and some modules need to work at a voltage of 5V, the battery module 18 is divided into two paths connected to the switch 20. One path is 7.4V to power the driver module (L298N) 16, and the other path is connected to the buck module (MP1584EN) 19 to output a 5V voltage to power the Raspberry Pi. The modules that need 3.3V power supply are powered by the Raspberry Pi GPIO_3 interface. The buck module is an MP1584EN buck chip, which has an input voltage of 5V to 36V and provides 5A output and current mode control to achieve fast loop response and compensation.

[0041] The distance measuring unit 6 includes three ultrasonic distance measuring modules 5, which respectively monitor the distances of obstacles in the left front, front and right front directions from the device body 21 in real time.

[0042] The drive control unit 2 and the data acquisition unit 4 include a photosensitive module (BH1750) 10, a GPS module 11, a smoke module (MQ-2) 12, a compass module (HMC5883L) 13, a temperature and humidity module (DHT11) 14, an analog-to-digital conversion module (MCP3002) 15, a drive module (L298N) 16 and a motor 17; wherein the positioning module is an ATGM336H full-constellation positioning and navigation module. Compared with the traditional GPS positioning module, it has high accuracy, low energy consumption and low cost, supports a variety of satellite navigation systems at home and abroad, and realizes the precise positioning and motion navigation of the mobile node device; the temperature and humidity monitoring module is DHT11; the compass and magnetic field monitoring module is HMC5883L; the photosensitive module is BH1750; the gas concentration monitoring module is MQ-2 plus an MCP3002 analog-to-digital conversion chip.

[0043] The movement of the device body 21 depends on the coordination of the motor 17 and the servo. The LAN remote terminal 5 sends a command to the Raspberry Pi node control unit 1 (Raspberry Pi 4B), and uses the Raspberry Pi GPIO port to control the operation of the driver module (L298N) 16 and the motor 17, so that the car moves according to the command to monitor the air quality in the target area.

[0044] The six data parameters collected by each slave node are uploaded to the master node, and then uploaded to the LAN remote terminal by the Raspberry Pi of the master node, so as to realize the collection, uploading, storage, management and query of the light intensity, node coordinate information, gas concentration, magnetic field intensity, temperature and humidity information of the air indicators in the monitoring target area, so as to facilitate the management personnel to view the air indicator parameter monitoring data of the target area in real time and make the next step instruction to the Raspberry Pi node control unit 1.

[0045] The beneficial effects of the present invention are:

[0046] (1) The node device of the present invention adopts a single car model structure, which is small in size, light in weight, and portable;

[0047] (2) The nodes of the present invention adopt a master-slave control mode. By controlling one node, multiple nodes can be controlled and data can be uploaded, making the operation more convenient;

[0048] (3) The central control unit of the present invention is a Raspberry Pi 4B, which uses a 64-bit quad-core processor and a built-in independent Linux-based operating system. It uses its own integrated WiFi or Bluetooth module to achieve remote communication with the local area network remote terminal. Its high efficiency in information processing, real-time networking and automatic control can greatly save manpower and material resources, and complete tasks conveniently and efficiently.

[0049] (4) The present invention can present, store, manage and query the collected data in real time at the terminal, so that the operator can fully understand the air index parameters of the target area in real time, and then conduct analysis and judgment;

[0050] (5) The present invention is low-cost and environmentally friendly, in line with the national green environmental protection initiative. A large number of nodes can be deployed in a local area network to achieve good results in air quality monitoring in a certain area.

[0051] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A distributed monitoring node device for air index parameters based on Raspberry Pi, characterized in that: include: Device body, Raspberry Pi node control unit, drive control unit, power management unit, data acquisition unit and LAN remote terminal; The device body is a single-body vehicle model, which is hollow inside; The Raspberry Pi node control unit is fixed to the front side of the middle part of the device body, and is used to process and analyze the monitored air quality data, obtain the collected data after analysis, and transmit the collected data to the local area network remote terminal; it is also used to receive the control command sent by the local area network remote terminal, and control the drive control unit, the power management unit and the data acquisition unit according to the control command; The power management unit is fixed to the rear of the device body and is used to provide stable power supply to the drive control unit, the Raspberry Pi node control unit and the data acquisition unit; The drive control unit and the data acquisition unit are fixed to the rear side of the middle part of the device body, the drive control unit is used to drive the device body to collect air index parameters of the target area, and the data acquisition unit is used to monitor and collect data of air index parameters of the target area in real time; The local area network remote terminal is used to send control commands and present received collected data; The Raspberry Pi node control unit is a Raspberry Pi 4B; The data acquisition unit includes a photosensor module, a GPS module, a smoke module, a compass module, a temperature and humidity module and an analog-to-digital conversion module; the photosensor module is BH1750, and / or the GPS module is an ATGM336H full-constellation positioning and navigation module, which is used to achieve accurate positioning and motion navigation of the position of the device body, and / or the smoke module is MQ-2, and / or the compass module is HMC5883L, and / or the temperature and humidity module is DHT11, and / or the analog-to-digital conversion module is an MCP3002 chip; The power management unit includes a power module, a buck module and a switch, wherein the power module is a 7.4V DC lithium battery with a capacity of 2200 mAh, and / or the buck module is an MP1584EN chip, which has an input voltage of 5V to 36V and provides a 5A output and current mode control to achieve fast loop response and compensation; It also includes a distance measuring unit, which is fixed to the hollow part of the front part of the main body of the device and is used to monitor the distance between the obstacles in the left front, front and right front directions and the mobile node in real time. The distance measuring unit is composed of a plurality of ultrasonic distance measuring modules; The drive control unit, power management unit and data acquisition unit are controlled according to the control command sent by the LAN remote terminal; that is, the Raspberry Pi node control unit manages other units to realize the parameter collection of light intensity, position coordinates, gas concentration, magnetic field intensity, temperature and humidity information of the air indicators in the monitoring target area, and processes and analyzes the data information collected by the node and uploads it to the LAN remote terminal to store, query and manage the data; In the Raspberry Pi node control unit, multiple Raspberry Pis are networked and linked through the Socket communication method based on the TCP protocol, and one Raspberry Pi is set as the master node and the other Raspberry Pis are slave nodes. The master node sends control commands to the slave nodes, and the slave nodes transmit the collected data back to the master node, which is then uploaded to the local area network remote terminal. Multiple slave nodes are controlled by one master node, and the master-slave control remote access function is realized by releasing the WIFI hotspot or Bluetooth module of the Raspberry Pi itself.

2. A Raspberry Pi-based air index parameter distributed monitoring node device as claimed in claim 1, characterized in that: The driving control unit includes a driving module and a motor.

3. A Raspberry Pi-based air index parameter distributed monitoring node device as claimed in claim 1, characterized in that: The local area network remote terminal is a computer.

Citation Information

Patent Citations

  • Transformer station secondary screen cabinet temperature and humidity monitoring system based on Raspberry Pis and Java language

    CN105758458A

  • Unmanned aerial vehicle cluster networking method, device and system based on message subscription

    CN110536238A

  • Public place sound event positioning method and system based on distributed noise sensors

    CN112363114A

  • Intelligent mobile environment monitoring device based on Raspberry Pi

    CN209784828U

  • Raspberry Pi-based air index parameter distributed monitoring node device

    CN216410256U