This is an old revision of the document!


Air Quality Monitoring System

Mihaela Florescu - AAC

Project Description

The scope of this project is to create an air quality monitoring system using an ESP32 board and a BMP180 sensor. This system will check some environmental parameters such as temperature, pressure, altitude and humidity. These values read by the sensor will be send to a web page.


Hardware Description

In order to develop this project, the following components have been used: ESP32 MCU, BMP180 sensor, breadboard and jumper wires.

  • ESP32 is a low-power system on a chip microcontroller with integrated Wi-Fi and dual-mode Bluetooth.
  • BMP180 is ideal for measuring temperature, pressure, altitude and humidity.

In order to connect the sensor to the ESP32 board, the following pins need to be linked:

BMP180 -> ESP32
  • VIN → 3.3V
  • GND → GND
  • SCL → P22
  • SDA → P21


Software Description

The software part of this project is divided in 2 main functions:

  • setup() function - code from here is executed once. In this part of the code, the following functions are called:
    1. initWifi() - this method initializes the WiFi connection and returns the IP Address where the web page is localed.
 void initWifi()
{
  WiFi.mode(WIFI_STA);
  WiFi.begin(ssid, password);
  Serial.print("Connecting to WiFi ..");
  while (WiFi.status() != WL_CONNECTED)
  {
    Serial.print('.');
    delay(1000);
  }
  Serial.println(WiFi.localIP());
} 
  1. initBME() - this method initializes the BMP180 sensor
 void initBmp()
{
  if (!bmp.begin()) 
  {
    Serial.println("BMP180 sensor not found");
  }
} 
  • loop() function - code from here is executed forever, in a loop. In this part of the code, the web page is created and the environmental parameters are read.

Conclusion


iothings/proiecte/2021/airqualitymonitoringsystem.1643308245.txt.gz · Last modified: 2022/01/27 20:30 by mihaela.florescu
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