In October 2023, Palembang was recorded as one of the most polluted cities in the world, with air quality levels deteriorating to hazardous levels. The primary cause of this alarming situation was widespread deforestation, which led to uncontrolled forest fires and a significant increase in airborne particulate matter.
In response to this environmental crisis, I collaborated with two colleagues to design and develop a wireless air quality monitoring system. This system was aimed at providing real-time data on air pollution levels.
You can make this project on your own. The schematic, 3D design, and source code are provided in the attachments.
In this project we utilized M702 laser particle sensor. This sensor consists of 7 parameters that can be acquired via UART protocol. List of functions, output parameter, and the unit can be seen in the following table.
Unfortunately, we couldn't find the Arduino library of this sensor, so we decided to create our own library using the datasheet provided by the manufacturer :).
The library can be downloaded through Github link in the attachments below. Then, add.zip library as shown in the following figure.
Open the Basic.ino file to read the values of all sensors. This file is located in the 'example' directory, or it can be accessed directly through the IDE as shown below.
You can go further with the project by enabling MQTT protocol for remote monitoring purposes. In this example we used Node-RED and EMQX MQTT broker services.
Just to tell you, this is an example of the project implementation carried out by my students :) :).
Good luck everyone and don't forget to drink a cup of coffee before you begin this project :).

















Comments