Differences

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

Link to this comparison view

iothings:proiecte:2022:airqualitymonitoringsystem [2023/01/20 01:10]
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 22: Line 24:
  
 ==== 3. Hardware implementation ==== ==== 3. Hardware implementation ====
 +== Schematic diagram: ==
 {{ :​iothings:​proiecte:​2022:​aq_hardware_implementation.png?​700 |}} {{ :​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.1674169807.txt.gz · Last modified: 2023/01/20 01:10 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