Network of sustainable, low-cost air quality sensors for local and regional environmental monitoring.
This was my senior undergraduate project at Monterrey Tech. Alongside 4 teammates, we set on the goal of providing the city of Guadalajara, Mexico, with a reliable way of monitoring air quality. This was of crucial necessity, as the city was facing a wildfire crisis (source) that was severly affecting the quality of life for vulnerable populations. The hope was that, with this real-time monitoring network, authorities and civilians could take timely actions to ensure everyone's safety. This could involve, depending on the severity and nature of the environmental conditions, closing home windows, turning on air humidifiers or AC units, putting on oxygen masks, etc.
The initial design step revolved around the creation of a network that could cover wide areas, even when Wi-Fi was not readily available. To achieve this, we decided to communicate gateways, with internet access, and nodes, with no internet access, through LoRaWAN, which uses radio frequency and has long range coverage.
Then, through epidemic routing, we created a network where all readings from nodes can reach gateways that upload the data to the cloud, maximizing message delivery rate and minimizing latency
A sample network layout with 3 nodes and 1 gateway is shown in the image above. Here, nodes send their data to all available (within reach) nodes/gateways once. Any duplicate messages received are discarded, and the rest are forwarded until a gateway is reached. Once this happens, messages are uploaded to the cloud. This is illustrated in the next image.
Finite State Machines (FSM) are shown for the gateway and node, respectively, in the next images. These showcase the behavior of the devices, which ensure that they are capable of communicating with each other and the cloud in the desired manner.
One type of node and two types of gateways were designed to construct this network. All nodes were equipped with an MCU, solar panels, battery, LoRa module, and air quality sensors, which are shown in depth later, while the gateways also incorporated a Wi-Fi module. This design was made with autonomy in mind, eliminating power supply constraints. However, a second variation of the gateway was designed to be held at home, adding an OLED display and removing the solar panels. With this, the network could be expanded by individuals and by institutions alike. The node and gateway designs are shown below.
For air quality monitoring, a PMS5003 Particulate Matter (PM) sensor was used, which was capable of detecting particles as small as 2.5 micrometers in diameter. This sensor was chosen due to its low cost and high accuracy. Furthermore, a DHT temperature and humidity sensor and a BMP280 atmospheric pressure sensor were added, providing more insights into the environmental status. All the components were integrated into a custom PCB, which was shared for both the node and the gateway. It included a battery charging circuit and testing zones. All the components and the custom PCB are shown below.
A network with 3 nodes and 1 gateway was used as a proof of concept in the Monterrey Tech campus. Each device covered a 350 meter radius, achieving a message delivery rate of 100%. All the results were published to a Google Firebase database, which was then used to create a Retool real-time dashboard that displayed the air quality data for any given node or gateway location. This dashboard was accessible to the public and was used to showcase the network's capabilities. The proof of concept devices, are shown below. Furthermore, videos and images of the network's operation are shown in the gallery.
Images and videos of the testing phase and the final prototypes are shown. Click on any image or video to enlarge it.
Alejandro Butterfield, Sebastian Balarezo, Jesus Cervantes, and Diego Gatica.