Differences

This shows you the differences between two versions of the page.

Link to this comparison view

iothings:proiecte:2022:airqualitymonitoringsystem [2023/01/20 00:41]
serhan.refigean
iothings:proiecte:2022:airqualitymonitoringsystem [2023/01/21 20:58] (current)
serhan.refigean
Line 1: Line 1:
 ====== Air Quality Monitoring System ====== ====== Air Quality Monitoring System ======
  
-Student: Refigean Serhan+  * Student: Refigean Serhan ​  
 +  * Master: ACES   
 +  * Source code: [[https://​gitlab.cs.pub.ro/​serhan.refigean/​airqualitymonitoringsystem|Air Quality Monitoring System]]
  
 ==== 1. Introduction ==== ==== 1. Introduction ====
Line 13: Line 15:
 ==== 2. Hardware description ==== ==== 2. Hardware description ====
 == ESP32 (Wemos Lolin32) == == ESP32 (Wemos Lolin32) ==
 +It is a low-power microcontroller (MCU) with integrated Wi-Fi and dual-mode Bluetooth—it is a successor of ESP8266 MCU.
  
 +== BME280 ==
 +This module is used for reading the temperature,​ pressure and relative humidity of the environment.
 +
 +== Nova Fitness SDS011 PM Air Quality Sensor ==
 +This sensor uses the principle of laser scattering to detect particles between 0.3 and 10 µm in the air. This sensor consists of a small fan, air inlet valve, laser diode, and photodiode. The air enters through the air inlet where a light source (Laser) illuminates the particles and the scattered light is transformed into a signal by a photodetector. These signals are then amplified and processed to get the particle concentration of PM2.5 and PM10.
 +
 +==== 3. Hardware implementation ====
 +== Schematic diagram: ==
 +{{ :​iothings:​proiecte:​2022:​aq_hardware_implementation.png?​700 |}}
 +
 +== The real life system: ==
 +{{ :​iothings:​proiecte:​2022:​aq_real_hardware.jpeg?​700 |}}
 +
 +
 +==== 4. Software implementation ====
 + == Software tools needed: ==
 +  * Arduino IDE
 +  * Adafruit_BME280 library
 +  * Serial library
 +  * ThingSpeak API
 +  * ArduinoHttpClient
 +
 +The BME280 sensor communicates with the microcontroller using the I2C protocol. The communication is done through an existing library and all the necessary data is fetched through some specialized functions. ​
 +The SDS011 sensor has a serial interface which is connected to the microcontroller in order to send and receive data. In this case no library was used, and instead some functions were developed in order to establish the communication. For this reason the //​turnoff()//​ and //​turnon()//​ functions were developed by taking into consideration the protocols used by the SDS011 sensor. As for the input data, another function was developed in order to process the data received by the air quality sensor. Thus, by taking into account the table from below that was extracted from the datasheet, all the elements were put in a matrix after the checksum is verified.
 +{{ :​iothings:​proiecte:​2022:​aq_sds011_receive.png?​500 |}}
 +
 +Moreover, the PM data goes through a correction algorithm by taking into account the relative humidity. After that, the data collected is uploaded on the ThingSpeak platform using their API by making a get request. The end result can be seen in the picture below:
 +{{ :​iothings:​proiecte:​2022:​aq_visualization.png?​700 |}}
 +
 +==== 5. Conclusions ====
 +This project gives a good understanding of the importance of Internet of Things for the human beings. Also with the ongoing problems with climate change and the overall pollution, these kind of devices can help everybody to monitor these effects and to also take actions. As for this project, I tried to upload the data to the sensor.community website but I ran into problems using the POST request that I was not able to resolve in time.
 +
 +==== 6. Resources ====
 +  * https://​towardsdatascience.com/​sensing-the-air-quality-5ed5320f7a56
 +  * https://​cdn-reichelt.de/​documents/​datenblatt/​X200/​SDS011-DATASHEET.pdf
 +  * https://​cdn.sparkfun.com/​assets/​parts/​1/​2/​2/​7/​5/​Laser_Dust_Sensor_Control_Protocol_V1.3.pdf
 +  * https://​randomnerdtutorials.com/​esp32-http-get-post-arduino/​
 +  * https://​www.mathworks.com/​help/​thingspeak/​
  
iothings/proiecte/2022/airqualitymonitoringsystem.1674168082.txt.gz · Last modified: 2023/01/20 00:41 by serhan.refigean
CC Attribution-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0