Professional Documents
Culture Documents
BACHELOR OF ENGINEERING
IN
ENGINEERING
Submitted by
Name USN
Mr. Manoj P M 4VM20EE022
Mr.Sharad Keshav Moger 4VM20EE034
Mr. Jayanth K 4VM21EE412
Mr. Manoj C 4VM21EE419
Prof.Varsha V
Assistant Professor
Department of Electrical and Electronics Engineering
CERTIFICATE
Certified that the project work entitled “Air Quality Monitoring Device” is a bonafide work
carried out by Mr. Manoj C,Mr. Jayanth K, Mr. Sharad Keshav Moger, Mr. Manoj P M
bearing USN: 4VM21EE419, 4VM21EE412, 4VM20EE034, 4VM20EE022 in the department of
Electrical and Electronics Engineering from VIDYA VIKAS INSTITUTE OF
ENGINEERING AND TECHNOLOGY submitted in partial fulfilment for the award of
Bachelor of Engineering in Electrical and Electronics Engineering prescribed by the
Visvesvaraya Technological University, Belagavi during the year 2022-2023. It is
certified that all suggestions recommended for Internal Evaluation have been incorporated
in the report deposited in the departmental library. The project report has been approved as it
satisfies the academic requirements with respect to Project work prescribed for the said
Degree.
Signature of the Guide Signature of the HOD Signature of the Principal Dr.
Prof.Varsha V Dr. Shamala N Dr. Manjunatha T S
Assistant Professor Professor & Head Principal
Dept. of EEE Dept. of EEE
External Viva
The satisfaction and euphoria that accompany the successful completion of a task would be
incomplete without the mention of the people who made it possible. We wish to express our
sincere and heartfelt gratitude to those who guided us to accomplish the assigned Project work.
We feel immense pleasure in expressing deep sense of profound gratitude to our beloved
Chairman & former MLA Chamaraja Constituency, Mysuru Sri Vasu and our beloved
Secretary, VVET® Sri Kaveesh Gowda V for their encouragement and support in all our
Endeavours.
Our sincere thanks to Dr. Manjunatha T S, Principal, Vidya Vikas Institute of Engineering
and Technology, Mysuru for the continual encouragement throughout the Engineering Course.
Our heartfelt gratitude to Dr.Shamal N , Professor and HOD and Prof.Varsha V, Assistant
Professor, Department of Electrical and Electronics, Vidya Vikas Institute of Engineering
and Technology, Mysuru, for their valuable suggestions at all stagesof our Course.
We extend our most profound gratitude, immense pleasure and heartfelt thanks to our
esteemed Project guide Prof.Varsha V, Assistant Professor of Electrical and Electronics
Engineering for the valuable support and encouragement in the successful completion of
our Project work.
Heartfelt gratitude to our parents and friends who have been a source of inspiration in the
successful completion of the Project work.
ABSTRACT
Air pollution is the largest environmental and public health threat in the world
today. Air pollution leads to adverse effects on human health, climate and
ecosystem. Air is getting polluted because of release of toxic gases by industries,
vehicular emissions and increased concentration of harmful gases and
particulate matter in the atmosphere. Particulate matter is one of the most
important parameters having the significant contribution to the increase in air
pollution. This creates a need for measurement and analysis of real-time air
quality monitoring so that appropriate decisions can be taken in a timely period.
This paper presents a real-time standalone air quality monitoring system which
includes various parameters: carbon monoxide, carbon dioxide, Air quality
Index. Internet of things is nowadays finding profound use in each and every
sector, plays a key role in our air quality monitoring system too. The level of
pollution has increased with times by lot of factors like the increase in
population, increased vehicle use, industrialization and urbanization which
results in harmful effects on human wellbeing by directly affecting health of
population exposed to it. The parameters of the environment to be monitored are
chosen as temperature, humidity, volume of CO, volume of CO2, detection of
leakage of any gas - smoke, alcohol, LPG. as these parameters hold importance
to everyone. CO, a dangerous parameter is monitored with an extra precaution.
An alert buzzer activates whenever its volume exceeds a particular safe limit
intended for a particular application.
CONTENTS
Particulars Page No
Abstract i
Contents ii
3. Performance Analysis
REFERENCES 48-49
Air Quality Monitoring Device
CHAPTER 1
INTRODUCTION
1.1 Preamble
Air pollution is caused due to the presence of particulate matter, harmful materials and
biological molecules in earth atmosphere. It has adverse impact on living organisms such as
humans, animals, food crops and can also damage build and natural environment. It may
result in allergies, harmful diseases such as cardiovascular diseases, lungs diseases and can
also cause death. The environment group green peace in January released a report that has
estimated every year nearly 1.2 million Indian die because of air borne pollutants. Particulate
matter is liquid or solid matter which is microscopic and suspended in earth's atmosphere. We
are exposed to this particulate matter which is continuously affecting our heart and lungs. Till
now several studies have been done in environment monitoring domain using internet of
things. Researchers have monitored environmental parameters like temperature, humidity,
barometric air pressure, carbon monoxide, Sulphur dioxide but the least attention is paid to
the measurement of particulate matter. Air quality monitoring without knowing the
concentration of particulate matter in the atmosphere is incomplete.
Air quality concentration measurement sensor and carbon monoxide sensors is being used
for monitoring the particulate matter along with the sensors employed for sensing carbon
monoxide, carbon dioxide in air using Arduino is low power less expensive, it is a good
platform for interfacing with many devices at the same time. Internet of things and cloud
computing are the most emerging technologies. Internet of things is a concept or a paradigm
in which without human interruption devices sense, identify, process, and communicate with
each other cloud computing is a practice of consuming the resource of remote servers such as
storage, virtual machines, applications and utilities that are hosted on internet rather than
building and maintaining infrastructure for computing in house. Internet of things becomes
very powerful when converges with cloud computing. The data stored at the memory can be
retrieved any time and the scenarios can be Analyzed in a better way leading to the solutions
for controlling air pollution to some extent. Air pollution is the biggest problem of every
nation, whether it is developed or developing.
Health problems have been growing at faster rate especially in urban areas of developing
countries where industrialization and growing number of vehicles leads to release of lot of
gaseous pollutants. Harmful effects of pollution include mild allergic reactions such as irritation of
the throat, eyes, and nose as well as some serious problems like bronchitis, heart diseases,
pneumonia, lung and aggravated asthma. According to a survey, due to air pollution 50,000 to
100,000 premature deaths per year occur in the U.S. alone whereas in EU number reaches to
300,000 and over 3,000,000 worldwide. Various kinds of anthropogenic emissions named as
primary pollutants are pumped into the atmosphere that undergoes chemical reaction and further
leads to the formation of new pollutants normally called as secondary pollutants. For instance,
according to the Fifth Assessment Report of the Intergovernmental Panel on Climate Change
(IPCC), nearly all climate- altering pollutants either directly or indirectly (by contributing to
secondary pollutants in the atmosphere) are responsible for health problems. Almost every citizen
spends 90% of their time in indoor air. Outdoor air quality of the cities of developed countries
improved considerably in recent decades. In contrast to this, indoor air quality degraded during
this same period because of many factors like reduced ventilation, energy conservation and the
introduction to new sources and new materials that cause indoor pollution. The design of
buildings for lower power consumption resulted in decrease of ventilation which further decreases
the quality of air inside the building. This increases the need for indoor air quality (IAQ)
monitoring Due to this fact and use of new building materials, IAQ often reaches to unacceptable
level.
1.2 Motivation
• The need to discover presence of air pollution in our routine life (indoors and outdoors) both.
• The need to understand air pollution and its impact on human cognition.
Hence, the problem occurring by indoor air pollution needs to be addressed and solutions in the
form of IoT technology should be determined.
• To display the sensed data in user friendly format in 16*2 I2C lcd display panel.
• To alert with the help of buzzer if the concentration of pollutants exceeds beyond the
expected range in the measuring environment.
Air Quality Index (AQI) is a tool for effective communication of air quality status to people can
easily understand and act. The AQI is used by agencies to communicate to the public how polluted
the air currently is or how polluted it is forecast to become. Public health risks increase as the AQI
rises. AQI is intended to enhance public awareness and involvement in efforts to improve air
quality. It transforms complex air quality data of various pollutants into a single number (index
value), nomenclature and color.
(i) There are six AQI categories, namely Good, Satisfactory, Moderate, Poor, Very Poor, and
Severe. Each of these categories is decided based on ambient
concentration values of air pollutants and their likely health impacts (known as health
breakpoints). AQ sub-index and health breakpoints are evolved for eight pollutants (PM10,
PM2.5, NO2, SO2, CO, O3, NH3, and Pb) for which short- term (up to 24hours) National
Ambient Air Quality Standards are prescribed.
able-1.1: Breakpoints for AQI Scale 0-500 (units: µg/m3 unless mentioned
otherwise)
8-hr
(Range) 24-hr 24-hr 24-hr 8-hr (mg/m3) 24-hr 24-hr 24-hr
Good 0-50 0-30 0-40 0-50 0-1.0 0-40 0-200 0-0.5
(0-50)
Severe May cause respiratory impact even on healthy people, and serious health
impacts on people with lung/heart disease. The health impacts may be
experienced even during light physical activity.
CHAPTER 2
LITERATURE SURVEY
Published in: Control & Automation (ICCA), 2017 13th IEEE International Conference.
Authors: Xiaoke Yang, Lingyu Yang, Jing Zhang (School of Automation Science and Electrical
Engineering, Bei hang University, Beijing, 100191, China)
This paper proposes an open platform of a Wi-Fi-enabled indoor air quality monitoring and control
system, which could be incorporated into such a ‘smart building’ structure. The complete software
and hardware design of this system is presented, along with a series of control experiments. The
proposed system operates over an existing Wi-Fi wireless network utilizing the MQTT protocol. It
can monitor the indoor air quality as well as controlling an air purifier to regulate the particulate
matters concentration. Experiment results under a real-world office environment demonstrate the
effectiveness of the proposed design.
2) A low-power real-time air quality monitoring system using LPWAN based on LoRa:
Published in: Solid-State and Integrated Circuit Technology (ICSICT), 2016 13th IEEE
International conference.
Authors: Suyuan Liu, Chui Xia, Zhenzhen Zhao
This paper presents a low-power real-time air quality monitoring system based on the LoRa
Wireless Communication technology. The proposed system can be laid out in a large number in
the monitoring area to form sensor network. The system integrates a single-chip microcontroller,
several air pollution sensors (NO2, SO2, O3, CO, PM1, PM10, PM2.5), Long-range (LoRa) -
Modem, a solar PV-battery part and graphical user interface (GUI). As communication module
LoRa sends the data to the central monitoring unit and then the data would be saved in the cold.
The range tests at an outdoor area show that LoRa can reach to approximately 2Km. The TX
power is only about 110mA which is lower compared with other used wireless technology. An
easy- to-use GUI was designed in the system. Based on LoRa technology, GUI, and Solar PV-
battery part the system has several progressive features such as low cost, long distance, high
coverage, long device battery life, easy to operate.
IoT enabled proactive indoor air quality monitoring system for sustainable health
management: -
Published in: Computing and Communications Technologies (ICCCT), 2017 2nd International
Conference
Authors: M.F.M Firdous, B.H Sudantha, P.M Karunaratne (Dept. of Information Technology,
University of Moratuwa, Sri Lanka)
This paper proposes an IoT based indoor air quality monitoring system for tracking the ozone
concentrations near a photocopy machine. The experimental system with a semiconductor sensor
capable of monitoring ozone concentrations was installed near a high-volume photocopier. The
IoT device has been programmed to collect and transmit data at an interval of five minutes over
blue tooth connection to a gateway node that in turn communicates with the processing node via
the Wi-Fi local area network. The sensor was calibrated using the standard calibration methods.
As an additional capability, the proposed air pollution monitoring system can generate warnings
when the pollution level exceeds beyond a predetermined threshold value.
Published in: Industrial Electronics Society, IECON 2016 - 42nd Annual Conference of the IEEE
This paper describes the development of a wireless monitoring system which can be deployed
in a building. The system measures carbon dioxide, carbon monoxide and temperature. The
system developed in this paper can serve as the monitoring component of a HVAC control system
and function as an indoor air quality monitor independently.
Published in: Research and Technologies for Society and Industry Leveraging a better tomorrow
(RTSI), 2016 IEEE 2nd International Forum.
The Internet of Things paradigm originates from the proliferation of intelligent devices that can
sense, compute and communicate data streams in a ubiquitous information and communication
network. The great amounts of data coming from these devices introduce some challenges related
to the storage and processing capabilities of the information. This strengthens the novel paradigm
known as Big Data. In such a complex scenario, the Cloud computing is an efficient solution for
the managing of sensor data. This paper presents Pollution, a system for monitoring the air
pollution via Arduino. Moreover, a Cloud-based platform that manages data coming from air
quality sensors is developed.
Published in: Computing for Sustainable Global Development (INDIA.Com), 2016 3rd
International Conference
Authors: Sneha Jangid, Sandeep Sharma (School of ICT, Gautam Buddha University, Greater
Noida, India)
Objective of the paper is to present a system model which can facilitate the assessment of health
impacts caused due to indoor air pollutant as well as outdoor and can intimate the human prior about
the risk he/she going to have, here we are focusing our work in context to allergic patients as they
will be informed by this tool such that they can secure themselves without actually experiencing the
risk factors, here a sensing network based microcontroller equipped with gas sensors, optical dust
particle sensor, humidity and temperature sensor has been used for air quality monitoring. The
design included various units mainly: sensing unit, processing unit, power unit, display unit,
communication unit. This work will apply the techniques of electrical engineering with the
knowledge of environmental engineering by using sensor networks to measure Air Quality
Parameters.
6) A real-time ambient air quality monitoring wireless sensor network for schools in smart
cities: -
Published in: Smart Cities Conference (ISC2), 2015 IEEE First International
(School of Electrical Engineering & Computer Science, The University of Newcastle, Callaghan,
NSW 2308, Australia)
In this paper, a low-cost solar-powered air quality monitoring system based on ZigBee wireless
network system technology is presented. The solar powered network sensor nodes can be deployed
by schools to collect and report real-time data on carbon monoxide (CO), nitrogen dioxide (NO2),
dust particles, temperature, and relative humidity. The proposed system allows schools to monitor air
quality conditions on a desktop/laptop computer through an application designed using Lab VIEW
Paper 2 Particulate Matter (PM 10), Carbon Semiconductor Sensors, Classification of pollutants is presented
Optical Sensors, along with indoor air quality
Dioxide (CO2), Nitrogen Dioxide
monitoring
(NO2), Carbon Monoxide (CO), Electrochemical and Thermal
Sensors
Ozone(O3), Oxygen, Volatile Organic
Compounds (VOC’s),
Temperature and Humidity
Paper 3 CO2 Semiconductor sensor (iAQ- Proposed IAQ monitoring application uses
2000) cognitive networking technique and
opportunistic routing algorithm for
minimum interference with existing
network, thus making it more efficient
Carbon Dioxide (CO2), Carbon Infrared IAQ monitoring system is proposed with in
Sensors(T6615), Ambient Assistant Living
Monoxide (CO), and physical
parameters- moistness, temperature Semiconductor Sensor
Paper 4 Carbon Dioxide (CO2), Nitrogen Semiconductor Sensor Low-cost, small in size and efficient IAQM
system in all aspects.
Dioxide (NO2), Carbon
Monoxide (CO) and Sulphur
Dioxide (SO2)
Nitrogen Dioxide (NO2), Carbon Laser Dust A moving and portable IAQ monitoring system
Monoxide (CO) and Sulphur Sensor, through un-maned aerial vehicle
Dioxide (SO2), Ozone (O3) and Electrochemistry (UAV)
10)
Paper 5 Carbon Dioxide (CO2), Nitrogen Low-Cost Sensors Low-Cost IAQ monitoring system, A
Dioxide (NO2), Carbon Monoxide ventilation effect is formulated by
Our device will be able to perform and has an additional feature as mentioned in the below table
which were not previously available in other air quality monitoring devices
CHAPTER 3
Arduino
Buzzer uno LCD display
microcontroller
2. Hardware requirements
This device takes data from the environment that has been selected for our research purpose. The
device is built with various sensors and they take data by sensing from the environment. The sensors
take analog data from the environment which later is converted into digital with the help of Arduino
and then sent to the server where all the data are stored . This device is consisting of the following
components:
a) Hardware Components
i. Arduino Uno
ii. Gas sensor MQ135
iii. ESP8266 Wi-Fi Device
iv. 16x2 LCD
v. Buzzer vi. Lithium Polymer Battery
a) Hardware Components
3.2.1 Arduino Uno
Arduino is the core of our model.Arduino is open-source devices stage considering simple to operate
equipment andprogramming.
Arduino comprise of both physical programmable circuit board(microcontroller) and bit of
programming or IDE (Integrated Development Environment) that keeps running on our PC used to
compose and transfer PC code to the physical board.
An Arduino stage has turned out to be very well known with individuals simply beginning with
gadgets and for good reasons. Arduino can communicate with catches, LED, engines, speakers, GPS
units, cameras, the web and even our advanced cell or our TV. Arduino Uno is the model board for
getting started with electronics, through entertaining and attractive hands-on projects. This board is our
entry to the unique Arduino experience: great for learning the basics of how sensors and actuals
measurement and an essential tool for our rapid prototyping needs. Arduino Uno is the maximum used
and documented board in the Arduino intimate. Cheers to the lively and helpful civic surrounding the
Arduino Uno, no one will find themselves without provision. Arduino Uno is a microcontroller board
based on the ATmega328P, an 8-bit microcontroller with 32KB of Flash memory and 2KB of RAM. It
comprehends everything needed to support the microcontroller; basically, connect it to a computer with
a USB cable or power it with an AC-to-DC adapter or battery to become started. The Uno panel is the
first in a series of USB boards and it is the orientation model for the Arduino stage.
This device is intended to provide the user with a cost-efficient means of determining air quality.
The sensor attentions on the five components of the Eco-friendly Protection Agency’s Air Quality
Index: ozone, particulate matter, carbon monoxide, sulfur dioxide, and nitrous oxide. This device
detects all these pollutants except sulfur dioxide. The device also contains a civic gas sensor to alert
the operator to gas leaks or the presence of combustible gases. Also, a temperature and humidity
sensor are involved as these situations can influence the performance of the gas sensors. We have yet
to fully calibrate our device, but we have extracted data from sensor data sheets to make some
preliminary estimations. The sensors used are moderately low- cost and vary importantly from
component to component so they essential to be calibrated with known attentions of the target
gasses. It is the maximum flexible hardware platform used based on ATmega328P which can be
planned according to the purpose where it is to be used. It has 6 analog inputs, 14 digital
input/output pins (6 pins of these can be used as PWM outputs), a USB connection, a 16 MHz
quartz crystal, SPI, serial interface, a reset button, a power jack and an ICSP header. The Arduino
microcontroller is not only for technical spectators but is intended for inventors and artists as well
because of its focus to usability based on its design which helps to achieve the proposed goal. It is the
primary component of the framework. In accumulation, it is an open- source microcontroller device
with easily reachable software/hardware platform and is well- matched with many sensors available.
All needed for its working is present on the board; we only require a USB cable to straight connect it
to the computer or provide power using battery source or AC to DC adapter to get started. Similarly,
it is not expensive and can be measured with free authoring software i.e., IDE (integrated
development environment). With the availability of a large no. of source codes over the internet, the
programming of Arduino becomes relaxed. The online rising community backing Arduino involves of
programmers like us that segment their examples for others to make it a more dependable platform. It
is principally used in RF and IR circuits. These interpreters are mainly used for remote control
applications like intruder alarm, car door alarm, security system etc. The chosen pair of encoder and
decoder for communication should have same number of address and data bits.
Operating Voltage 5V
Recommended Input Voltage 7-12V
Input Voltage Limits 6-20V
Analog Input Pins 6 (A0 – A5)
Digital I/O Pins 14 (Out of which 6 provide PWM output)
DC Current on I/O Pins 40 mA
DC Current on 3.3V Pin 50 mA
Flash Memory 32 KB (0.5 KB is used for Bootloader)
SRAM 2 KB
EEPROM 1 KB
Frequency (Clock Speed) 16 MHz
Table 3.2 -Technical Specification
development boards of Amici and DOIT in the market. The whole setup is connected to a software which
is designed to be light weighted embedded scripting language that is just a programming language. A
form where is a programming language that is written to a hardware devices on-volatile memory. The
non-volatile memory is a form of static random- access memory whose contents are saved whenever
hardware devices turned off for processes external power source by exploring functionality with ESP8266
chip. Node MCU firmware comes with ESP8266 development board that is Node MCU development
board. There are two node MCQ versions like ok Node MCU 0.9 and Node MCU 1.0. The Node MCU
development board consists of ESP8266 chip, it is a Wi-Fi enabled system and chip model developed by
expressive system it is mostly used for development of IOT embedded applications. In ESP8266 the ESP-
12E is the model embedded with 10 silica L1R6 32-bit microcontroller and this ESP8266 with cap volts
of 2.4GH Wi-Fi, general purpose input, output pins and i2c serial communication it is interred integrated
circuit and analog to digital conversion and serial peripheral interface that is SPI serial communication
protocol and UART and pulse with modulation. The external SPI flash memory saves the users data. The
Node MCU board is featured with Wi-Fi capabilities, unlock pin, digital pins, and serial communication
protocol.
The buzzer produces a same noisy sound irrespective of the voltage variation applied to it. It
consists of piezo crystals between two conductors. When a potential is applied across these
crystals, they push on one conductor and pull on the other. This, push and pull action, results in a
sound wave. Most buzzers produce sound in the range of 2 to 4 kHz.
The Red lead is connected to the Input and the Black lead is connected to Ground.
makes use of the MQ-135 air quality detector and hazardous gas detector chip. Other circuit
components such as the LM393 analog comparator chip on this module makes it easy to integrate
this module into a project that can detect hazardous gases. The Module requires a 5V power
supply and provides a digital Logic output (1 or 0) and an analog level output (0-4V). The digital
logic output is LOW (0) when no gas is detected but goes HIGH (1) when hazardous gas
concentration in the environment reaches the set threshold set via a potentiometer on the module.
The analog level output provides an output voltage within the range of 0 to 4V based on the
concentration of the hazardous gas in the environment; 0V for lowest concentration, 4V for
maximum concentration.
Features
• High Sensitivity
• High sensitivity to Ammonia, Sulfide and Benze
• Stable and Long Life
• Detection Range: 10 - 300 ppm NH3, 10 - 1000 ppm Benzene, 10 - 300 Alcohol
• Heater Voltage: 5.0V
• Dimensions: 18mm Diameter, 17mm High excluding pins, Pins - 6mm High
• Long life and low cost
Applications
• Domestic air pollution detector
• Industrial air pollution detector
• Portable air pollution detector
Structure and configuration of MQ-135 gas sensor is shown as Fig 3.8 an fig 3.9 (Configuration
A or B), sensor composed by micro AL2O3 ceramic tube, Tin Dioxide (SnO2) sensitive layer,
measuring electrode and heater are fixed into a crust made by plastic and stainless-steel net. The
heater provides necessary work conditions for work of sensitive Parts Materials 1 Gas sensing
layer SnO2 2 Electrode Au 3 Electrode line Pt 4 Heater coil Ni-Cr alloy 5 Tubular ceramic
Al2O3 6 Anti-explosion network Stainless steel gauze (SUS316 100-mesh) 7 Clamp ring Copper
plating Ni 8 Resin base Bakelite 9 Tube Pin Copper plating Ni as shown in Fig. 3.10
Configuration A Configuration B Fig 3.11 components. The enveloped MQ-135 have 6 pin ,4 of
them are used to fetch signals, and other 2 are used for providing heating current.
Parts Materials
1 Gas sensing layer SnO2
2 Electrode Au
3 Electrode line Pt
(SUS316 100-mesh)
Sensitvity adjustment
Resistance value of MQ-135 is difference to various kinds and various concentration gases. So,
When using this components, sensitivity adjustment is very necessary. we recommend that you
calibrate the detector for 100ppm NH3 or 50ppm Alcohol concentration in air and use value of
Load resistance that(RL) about 20 KΩ(10KΩ to 47 KΩ). When accurately measuring, the proper
alarm point for the gas detector should be determined after considering the temperature and
humidity influence
Humidity: 65%
O2 concentration 21%
RL=20kΩ
This LCD each character is displayed in 5x7 pixel matrix. This LCD has two registers,
namely, Command and Data. The command register stores the command instructions given to
the LCD. A command is an instruction given to LCD to do a predefined task like initializing it,
clearing its screen, setting the cursor position, controlling display etc. The data register stores
the data to be displayed on the LCD. The data is the ASCII value of the character to be displayed
on the LCD. Click to learn more about internal structure of a LCD.
Pin Description:
Pin
Function Name
No
1 Ground (0V) Ground
2 Supply voltage; 5V (4.7V – 5.3V) Vcc
3 Contrast adjustment; through a variable resistor Vee
4 Selects command register when low; and data register when high Register Select
5 Low to write to the register; High to read from the register Read/write
6 Sends data to data pins when a high to low pulse is given Enable
7 DB0
8 DB1
9 DB2
10 8-bit data pins DB3
11 DB4
12 DB5
13 DB6
14 DB7
15 Backlight VCC (5V) Led+
16 Backlight Ground (0V) Led-
Unfortunately, the dry lithium-polymer suffers from poor conductivity. The internal resistance is
too high and cannot deliver the current bursts needed to power modern communication devices
and spin up the hard drives of mobile computing equipment.
I have connected the MQ135 gas sensor and ESP8266 Wi-Fi device with the Arduino.
Connected the VCC and the ground pin of the sensor to the 5V and ground of the Arduino and
the Analog pin of sensor to the A0 of the Arduino. Connected a buzzer to the pin D8 of the
NodeMCU which is start to beep when the condition becomes true. The MQ135 sensor can
sense NH3, NOx, alcohol, Benzene, smoke, CO2 and some other gases, so it is faultless gas
sensor for our Air Quality Observing Detection Project. When I connect it to Arduino then it
senses the gases, and I get the Pollution level in PPM (parts per million). MQ135 gas sensor
gives the output in form of voltage levels and I need to convert it into PPM. Sensor is giving
us value of 34 ppm when there is no gas near it and the safe level of air quality is below 130
ppm and it is not exceeding 250 PPM. When it exceeds the limit of 250 PPM, then it starts
cause Headaches, sleepiness and stagnant, stale, stuffy air ,can cause increased heart rate and
many other diseases [10]. When the value is being less than 130 PPM, then the LCD and
serial monitor is displayed “AQ Level Normal”. Whenever the lue is increased beyond 130
PPM, then serial monitor is displayed “AQ Level Medium”,. If it is increased beyond 250
PPM, then the buzzer is kept beeping and the LCD is displayed “AQ Level Danger”. After
uploading the code, I am connected to the Wi-Fi of my ESP8266 device, the serial monitor has
opened and it is showing the IP address like shown below (192.168.43.57). If I have typed
mentioned IP address in my browser, it is shown the output as below. I have to refresh the
page again if I want to see the current Air Quality Value in PPM. After uploading code, the
value is being less than 130 PPM, then the LCD and Web Browser is displayed “AQ Level
Normal”. After uploading code, the value is increased 130 PPM, then the LCD and web
browser are displayed “AQ Level Medium”. After uploading code, When the value is
increased 250 PPM then the buzzer is kept beeping and the LCD and Web Browser are
displayed “AQ Level Danger”.
Here we are using the Arduino IDE to write the code. To write the code for this IoT pollution
monitoring project we are keeping in mind that first, our code has to connect the local area
network by using the credentials provided in the code. After that, our code has to work on getting
the input from the sensor, and then it must display the data on the webpage, which is created using
nodeMCU. We are calculating the voltage variations with respect to the pollution content in the
air. If the output of the MQ sensor is 130 ppm, we considered it a normal amount of pollution
content present in the air. If the voltage is increased and stabilizes in the range of more than 130
ppm to less than 250 ppm , then it is considered as a medium amount of pollution content present
in the surrounding air. If the output voltage
increases more than 250 ppm of the maximum value, then it is considered as dangerous level.
These values are transmitted and shown at the webpage.
The below code declares and initializes the SSID and pass as a pointer variable of type char, and
used to store the wifi SSID and Wifi password in those pointer variables. Then, start the webserver
on port 80, by using the function WiFiServer server(80).
const char *ssid = "xxxxxx"; // Enter your WiFi Name const char *pass = "xxxxxxxx"; // Enter
your WiFi Password WiFiServer server(80);
The code written in the void setup(), is used to begin the serial communication at 115200 baud
rate. Then by using the SSID, password, and WiFi.begin function, we form a connection between
the nodeMCU and LAN. After forming a connection with the LAN, we have to find the IP address
of the nodeMCU, so that we can check the data displayed on the webpage. We can find the IP
address by using the function Wifi.localIP() and print it using the serial monitor. Note that
nodeMCU and your network connection should be on the same network.
void setup() {
Serial.begin(115200);
lcd.begin(16, 2);
delay(10);
Serial.println("Connecting to ");
lcd.print("Connecting ..... ");
Serial.println(ssid);
Serial.println("");
Serial.println("WiFi connected");
// HTTP headers always start with a response code (e.g. HTTP/1.1 200 OK)
client.println("HTTP/1.1 200 OK");
client.println("Content-type:text/html");
client.println("Connection: close");
client.println("Refresh: 3"); // update the page after 3 Sec.
client.println();
lcd.print("Sending Data" );
</h1>");
client.println("</body></html>");
delay(1000);
lcd.clear();
lcd.setCursor(0, 0);
lcd.print("Pollution=");
lcd.print(air_quality);
lcd.print("%");
}
CHAPTER 4
Experimentation And Result
After uploading the code, We are now connected to the Wi-Fi of ESP8266 device, the serial
monitor has opened and it is showing the IP address like shown below (192.168.43.52).
Type this IP address in your browser, it shows the output as shown below. We have to refresh the
page again if we want to see the current Air Quality Value in PPM.
When the value increase beyond 250 PPM then the buzzer keeps beeping and the LCD and
Web Browser display “Danger!!!”.
.
MQ135 Sensor Air Quality Value Display
Detect (AQV) Result
Table 4.1 : Air Qualtiy Value Range and its Corresponding Result
CHAPTER 5
5.1 Conclusions
The system to monitor the air of environment using Arduino microcontroller, IoT Technology
is proposed to improve quality of air. With the use of IoT technology enhances the process of
monitoring various aspects of environment such as air quality monitoring issue proposed in this
paper. Here, using the MQ135 gives the sense of different type of dangerous gas and
NodeMCU is the heart of this project. Which control the entire process, NodeMCU module
connects the whole process to LCD and serial monitor is used for the visual Output.
The future scope is that device which we are having can be done in a compact way by reducing
the size of the device for further implementation or the modifications which can be is that
detecting the vehicles amount of pollution which can be determined. In future the range can be
made increased according to the bandwidth for the high range frequencies. Further research can
be made by making the people in the right direction for their welfare. Therefore, there is another
beneficiary by using this device in an app so the all can be used in an GSM mobile phones for
their daily updates by increasing their range.
References
1)Arun Raj V., Priya R.M.P., and Meenakshi, V., "Air Pollution Monitoring In Urban Area,"
International Journal of Electronics and Communication Engineering , 2017 .
2)Matthews V.O., Uzairue S.I., Noma-Osaghae E., and Nwukor F., Design and Simulation of a
Smart Automated Traffic System in a Campus Community.", International Journal of Emerging
Technologies and Innovative Research (www.jetir.org | UGC and issn Approved),
ISSN:2349-5162,5(8), 2018, pp. 492-497,
Available at :http://www.jetir.org/papers/JETIR1807794.pdf.
3)Priyanka, V., "Review: Air Quality Monitoring System," International Journal of Advanced
Research in Computer and Communication Engineering, 5(6), 2016.
4)Matthews, V. O., Noma-Osaghae, E., and Uzairue, S. I., "An Analytics Enabled Wireless Anti-
Intruder Monitoring and Alarm System," International Journal of Scientific Research in Science,
Engineering and Technology, 4, 2018, pp. 5-11.
5)Etinosa, N.-O., Okereke, C., Robert, O., Okesola, O. J., and Okokpujie, K. O., "Design and
Implementation of an Iris Biometric Door Access Control System," in Computational Science and
Computational Intelligence (CSCI), 2017, Las Vegas, USA, 2017
6)Snyder, E.G., Watkins, T.H., Solomon, P.A., Thoma, E.D., Williams, R.W., Hagler, G.S.,
Shelow, D., Hindin, D.A., Kilaru, V.J. and Preuss, P.W., 2013. The changing paradigm of air
pollution monitoring.
7)Matthews, V. O., Uzairue, S. I., Noma-Osaghae, E., Enefiok, M. K., and Ogukah, P. J.,
"Implementation of a Community Emergency Security Alert System," International Journal of
Innovative Science and Research Technology, 3, 2018, pp. 475-483.