Arduino-Based Air Pollution Monitor
Arduino-Based Air Pollution Monitor
2 LIST OF FIGURES 2
10 REFERENCES 37
1|Page
LIST OF TABLES
2|Page
LIST OF FIGURES
3|Page
Abstract
4|Page
CHAPTER -1
INTRODUCTION
7|Page
CAPTER-2
PROBLEM IDENTIFICATION :
2.1 WHAT IS AIR POLLUTION:
The main components of the atmosphere are — oxygen (O2) to breath,
carbon dioxide (CO2) for photosynthesis, nitrogen (N2) for forming products
as ferti-lizers for plants and making the air inert and ozone (O3)-layer against
sun rays. Any imbalance in quality of air so as to cause adverse effects on the
living organisms is called air pollution.
Air pollution may also be defined as the presence of contaminants which are
injurious to human beings, plants and animals (aquatic or terrestrial).
The natural air contains trace amounts (about 1 ppm) of gases like methane
(CH4), ammonia (NH3), sulphur dioxide (SO2), hydrogen sulphide (H2S),
carbon mono-oxide (CO), hydrogen (H2), argon (< 1 ppm) and variable
amounts of dust particles.
8|Page
Table2.2 composition of respiratory air
So it is clear from the tables that chemical substances occur around us.
They are fundamental parts of air, earth and oceans. The author is of the view
that under very specific conditions, the combination of these chemical
substances gave birth to creatures (male and female). The first to take birth
was perhaps female ant, followed by birds and animals. Later on special
species of animals changed into men and women.
Air pollution is a release into the atmosphere of any substances, e.g.,
chemicals or airborne particles, which are harmful both to the human and
animal health as well as the health of the wider environment.
Atmospheric pollution occurs because the release of air pollutants takes place
at a rate much faster than they can be accommodated by the environment or
removed from the atmosphere without causing serious harm.
Every day, the average person inhales about 20,000 liters of air. Every time
we breath in, we risk inhaling dangerous chemicals that have found their way
into the air.
Air pollution includes all contaminants found in the atmosphere. These
dangerous substances can be either in the form of gases or particles.Air
pollution can be found both outdoors and indoors. Pollutants can be trapped
inside buildings, causing indoor pollution that lasts long.
9|Page
Anthropogenic Sources of Air Pollution:
10 | P a g e
Air pollutants are basically the waste products generated by the above
mentioned economic sectors.
They come in the form of gases and finely divided solid and liquid particles
suspended in the air (aerosols).
Air pollutants can also be of primary or secondary nature. Primary pollutants
are the ones that are emitted directly into the atmosphere by the sources (e.g.,
power plants). Secondary pollutants are the ones that are formed as a result
of reactions between primary pollutants and other elements in the
atmosphere.
Air pollutants are direct pollution cause, in other words they are the actual
polluting agents, which directly affect the health of living beings as well as
the wider environment.
i)Bhopal disaster:
chemical leak in 1984 in the city of Bhopal, Madhya Pradesh state, India. At
the time, it was called the worst industrial accident in history.
On December 3, 1984, about 45 tons of the dangerous gas methyl isocyanate
escaped from an insecticide plant that was owned by the Indian subsidiary of
the American firm Union Carbide Corporation. The gas drifted over the
densely populated neighbourhoods around the plant, killing thousands of
people immediately and creating a panic as tens of thousands of others
attempted to flee Bhopal. The final death toll was estimated to be between
15,000 and 20,000. Some half a million survivors suffered respiratory
problems, eye irritation or blindness, and other maladies resulting from
exposure to the toxic gas; many were awarded compensation of a few
hundred dollars. Investigations later established that substandard operating
and safety procedures at the understaffed plant had led to the catastrophe. In
1998 the former factory site was turned over to the state of Madhya Pradesh.
In the early 21st century more than 400 tons of industrial waste were still
present on the site. Despite continued protests and attempts at litigation,
neither the Dow Chemical Company, which bought out the Union Carbide
11 | P a g e
Corporation in 2001, nor the Indian government had properly cleaned the
site. Soil and water contamination in the area was blamed for chronic health
problems and high instances of birth defects in the area’s inhabitants. In 2004
the Indian Supreme Court ordered the state to supply clean drinking water to
the residents of Bhopal because of groundwater contamination. In 2010
several former executives of Union Carbide’s India subsidiary—all Indian
citizens—were convicted by a Bhopal court of negligence in the disaster.
12 | P a g e
ii)Vizag gas leak:
here was a temporary partial shutdown of the plant owing to the covid-19
pandemic, excluding maintenance activities, which were being carried out in
the plant as per a predetermined schedule. Since styrene was not being stored
at the appropriate temperature, there was a pressure build up in the storage
chamber which caused the valve to break, says an official with the Andhra
Pradesh Pollution Control Board (APPCB), requesting anonymity. The result
was leakage of 3 tonnes of the toxic gas.
On the day of the leak, the levels of styrene in the air in the area were 500
times higher than prescribed limit. Media reports said they were more than
2,500 parts per billion (ppb), while World Health Organization norms require
them to be under 5 ppb. The Visakhapatnam facility is spread over 240
hectares (ha), including the nearby residential areas. There is also a revenue
village nearby, which resulted in a higher rate of exposure.
The levels of styrene (C8H8), a volatile organic compound, were 2,500 times
higher than the limits prescribed by regulators on the day of the
Visakhapatnam gas leak and the day following it, an analysis by Centre for
Science and Environment (CSE) has found. Styrene levels in the region were
more than 2.5 parts per million (ppm) on the evening of May 7, 2020,
according to media reports. It should be less than 5 parts per billion (ppb)
according to rules.
“Styrene in air yesterday when the leak was occurring could have been over
20 ppm up to 2 km of the plant, assuming an hour’s leak. These significantly
high levels of pollutant dispersion could have led people to fall unconscious,”
said Awkash Kumar from the Indian Institute of Technology, Mumbai, and
an air pollution dispersion modeller. In his study, Kumar assumed the storage
tank’s capacity to be three kilo tonnes. The leakage happened from a 10 cm
diameter opening for one hour, in his view.
The real-time ambient air monitoring stations network of the Central
Pollution Control Board (CPCB) monitor three volatile organic compounds
(VOCs) - Xylene (C8H10), Benzene (C6H6), Toluene (C7H8) - in
Visakhapatnam district, 14 km downstream of the spot where the gas-leak
incident occurred.
13 | P a g e
These pollutants are monitored on a continuous basis by the board every 30
minutes. CSE analysis of this data shows xylene levels up to 18 ppb, toluene
levels up to 35 ppb and benzene levels up to 12 ppb.
These are significantly higher than the levels recorded in Amaravati, the
capital city of Andhra Pradesh, located about 400 km south of
Visakhapatnam during the same time period. Historic data suggests such high
levels of VOCs as a usual phenomenon in the ambient air at Vishakhapatnam.
The standard for hydrocarbons in the ambient air is 5 ppb (annual average)
according to the CPCB ambient air quality standards.
14 | P a g e
CHAPTER-3
LITERATURE REVIEW
A literature study was done to compare the different methods for
detecting and monitoring of air pollution, specially detecting toxic gases
like CO, CH4, particulate matter etc. The survey reveals various advantages
and disadvantages of those methods. The methods are illustrates in the
below section. In a factsheet by World Health Organization [1], WHO
has mentioned that the air pollution is a major environmental risk to health,
and by reducing the air pollution level one country can reduce the burden
of heart diseases, lung cancer and both chronic and acute respiratory
diseases including asthma. This factsheet suggests number of policies and
investment supporting cleaner transport, cleaner municipal waste
management etc. WHO’s factsheet also presents a study of how much of
the pollutant like SO2, particulate matter (PM), NO2 is acceptable in the
air and their effects in the human health if they increase. The authors
L. C. Amorim and J. P. Carneiro and Z. L. Cardeal [2] described Solid-
phase microextraction (SPME) as a sampling technique for determining
benzene in exhaled air by GC-MS. A system was developed to generate a
gaseous benzene standard by a permeation method to accomplish the breath
analyses. Authors also optimized the condition and analyses of real
samples on two groups i.e., exposed and not exposed to benzene. Authors
also mention that this method has good resolution, repeatability and
sensitivity. In another literature, the authors Wei Ying Yi, Kin Ming Lo,
Terrence Mak, Kwong Sak Leung, Yee Leung and Mei Ling Meng [8]
have described the different technique of detecting the pollutant in the air
and also explained the working of those techniques. The authors also
performed a comparative study on the techniques based on their performance
and cost effectiveness. The authors D. Hasenfratz and O. Saukh and S.
Sturzenegger and L. Thiele [7] have described about the different
types of wireless nodes like community sensor node and static sensor
node; and the author explained that community sensor node the sensor
nodes are typically carried by the users. By utilizing the low-cost portable
ambient sensors and the ubiquitous smart phones, users are able to
acquire, analyze and share the local air pollution information. Similarly,
in static sensor node the sensor nodes are typically mounted on the
15 | P a g e
streetlight or traffic light poles, or walls. Due to the low-cost ambient
sensors, the number of sensor nodes in SSN systems is much higher than
that in the conventional monitoring systems. Again the authors P.
Doraiswamy, W. T. Davis, T. L. Miller, J. S. Fu and Y. F. Lam [10] have
performed experiments on trucks to detect its pollutant level. The authors
used MQ-2 gas sensor along with an Arduino Uno board to detect the
quality of the smoke produced by the exhaust pipe of the truck and after
that they transmit the data through ESP8266 wireless transmitter to the
predefined server and also design a mobile app to access the data. Similarly,
in case of detecting the CH4 in the air, the authors mentioned about the
use of the sensor MQ-9 electrochemical sensor along with an Arduino Uno
board.Authors F. Tsow, E. Forzani, A. Rai, R. Wang, R. Tsui, S.
Mastroianni, C. Knobbe, A. J. Gandolfi and N. J. Tao [12] discussed
about the MQTT protocol, in which the authors stated that it is a very low
cost and low code footprint messaging system. Authors also established
a connection between MQTT publisher and subscriber by using ESP8266
Wi-Fi module.
(iv) Black Smoke Method The black smoke technique collects the
particulate matter (PM) on a paper filter over 24 hour period though a size
selective inlet. A reflectometer is used to measure the darkness of the
paper filter which is converted to the PM’s mass concentration. This type of
monitoring instrument is cost-efficent, simple and robust. After that, the
mass concentration is obtained by measuring the darkness of the filter
17 | P a g e
paper and this varies in different locations. This means the darkness-to-
mass coefficient changes with time and locations.
20 | P a g e
FIGURE 3.1 OLD AIR POLLUTION DETECTING DEVICE
21 | P a g e
3.2 PROPOSED SYSTEM OBJECTIVE OBJECTIVE:
22 | P a g e
CHAPTER-4
METHODOLOGY
4.1 IMPLEMENTATION
23 | P a g e
FIGURE4.1 Schematic diagram
24 | P a g e
START
NO
CHECK WI-FI ARE THE ENTERED
CONNECTION AND NETWORK CREDENTIALS
RERTRY CORRECT
YES
STOP
26 | P a g e
CHAPTER -5
REQUIRED PROTOTYPE
Arduino Uno
Arduino Uno is a microcontroller board based on 8-bit ATmega328P
microcontroller. Along with ATmega328P, it consists other components
such as crystal oscillator, serial communication, voltage regulator, etc. to
support the microcontroller. Arduino Uno has 14 digital input/output pins
(out of which 6 can be used as PWM outputs), 6 analog input pins, a USB
connection, A Power barrel jack, an ICSP header and a reset button.
27 | P a g e
FIGURE5.1 ARDUINO UNO
28 | P a g e
Applications of Arduino:
Prototyping of Electronics Products and Systems
Multiple DIY Projects.
Easy to use for beginner level DIYers and makers.
Projects requiring Multiple I/O interfaces and communications.
MQ 135 SENSOR:
The MQ-135 Gas sensor can detect gases like Ammonia (NH3), sulfur (S),
Benzene (C6H6), CO2, and other harmful gases and smoke. Similar to other
MQ series gas sensor, this sensor also has a digital and analog output pin.
When the level of these gases go beyond a threshold limit in the air the
digital pin goes high. This threshold value can be set by using the on-board
potentiometer. The analog output pin, outputs an analog voltage which can
be used to approximate the level of these gases in the atmosphere.
The MQ135 air quality sensor module operates at 5V and consumes around
150mA. It requires some pre-heating before it could actually give accurate
29 | P a g e
results.
The MQ135 is one of the popular gas sensors from the MQ series of sensors
that are commonly used in air quality control equipment. It operates from
2.5V to 5.0V and can provide both digital and analog output. The pinouts
and important components on an MQ135 Module is marked below
The digital output pin of the sensor can be used to detect harmful gases in
the environment. The sensitivity of the digital pin can be controlled by
using the 10k potentiometer. If the gas is detected the indicator LED D0
will turn on and the digital pin will go from logic high to logic low (0V).
30 | P a g e
The LM393 Op-Amp Comparator IC is used to compare the actual gas
value with the value set using the potentiometer. If the actual gas value
increases than the set value then the digital output pin gets low.
Because of the onboard LM393 comparator IC the MQ135 Gas sensor
module can also be used without the need of an external microcontroller.
Simply power up the module and set the sensitivity of the digital pin using
the potentiometer, then when the module detects the gas the digital pin will
go low. This digital pin can directly be used to drive a buzzer or LED with
the help of simple transistors.
The Analog output pin of the sensor can be used to measure the PPM value
of the required gas. To do this we need to use an external microcontroller
like Arduino. The microcontroller will measure the value of analog voltage
and perform some calculations to find the value of Rs/Ro where Rs is the
sensor resistance when gas is present and Ro is sensor resistance at clean
air. Once we find this ratio of Rs/Ro we can use it to calculate the PPM
value of required gas using the graph below which is taken from the
datasheet of MQ135 Sensor.
31 | P a g e
If you are just detecting the gas and not measuring the PPM then the
module need not be calibrated or pre-heated and hence it is extremely
simple to use. You can find these MQ Gas sensors commonly used in
Gas/Smoke detectors and Air Quality Monitors. The dimensions of the
MQ135 Gas sensor module is given below
32 | P a g e
THEORITICAL BACKGROUND OF SOLAR TRACKER
void setup() {
pinMode(7, OUTPUT);
pinMode(8, OUTPUT);
pinMode(9, OUTPUT);
pinMode(A0, INPUT);
Serial.begin(9600);
}
void loop() {
float sensorValue,MQ135pin;
sensorValue = analogRead(MQ135pin);
Serial.print("AirQuality Value: ");
Serial.println(sensorValue);
33 | P a g e
THEORITICAL BACKGROUND OF SOLAR TRACKER
digitalWrite(9, HIGH);
if(sensorValue >= 230){
digitalWrite(7, HIGH);
digitalWrite(8, HIGH);
}
else {
digitalWrite(7, LOW);
digitalWrite(8, LOW);
delay(100);
}
34 | P a g e
THEORITICAL BACKGROUND OF SOLAR TRACKER
35 | P a g e
HARDWARE PROTOTYPE
CHAPTER-6
EXPERIMENT RESULTS & ANALYSIS
The following values depicts for mosquito coil within 1 meter. From this
data analysis we can conclude that for mosquito coil it is safe to be far
from the coil while burning atleast 2 or 3 meters.
2 04 125(polluted 0.3
air)
3 06 96(polluted 0.4
air)
4 08 170(polluted 0.2
air)
5 10 79(fresh air) 0.6
36 | P a g e
HARDWARE PROTOTYPE
37 | P a g e
HARDWARE PROTOTYPE
160
140
120
100
80
60
40
20
0
1 2 3 4 5 6 7
38 | P a g e
HARDWARE PROTOTYPE
39 | P a g e
EXPERIMENT RESULT, ANALYSIS
6.2 ANALYSIS:
We have defined the system of hardware and software that maps in real-
time, also the data plotting software is illustrated the standard
mechanism monitored by air quality monitoring. Finally, the data
collection from the detector system is authenticated. This sensor-based
system can easily be employed to monitor air quality
40 | P a g e
EXPERIMENT RESULT, ANALYSIS
CHAPTER7 CONCLUSION
One of the major issues that we are facing today is Air pollution. Pollutions
in earlier days were negligible. But nowadays pollution is increasing day
by day because of so many reasons like industrial growth, development
of automobile industries, chemical industries etc. So in order to reduce the
pollutions from such type of sources and to protect the environment from
toxic gasses, it is possible to take help of some of the semiconductor sensors
such as MQ135, etc. that helps in detection, monitoring, and also self-test
of vehicles with the help of Microcontrollers. We have developed an
Arduino based air pollution detector which is a very effective air pollution
monitoring system. Based on the performance we can say that it is easy
to use, and functionality is comparable to the expensive existing air
pollution detectors. It is a microcontroller based portable system. It is
efficient and user-friendly air quality detection system.
41 | P a g e
CONCLUSION, FUTURE WORK
REFERENCES
[1] Krishna, V. Siva, and S. Arun. "Embedded System Based
Air Pollution Detection in Vehicles." (2015).
[2] Piedrahita, R., et al. "The next generation of low-cost personal air
quality sensors for quantitative exposure monitoring." Atmospheric
Measurement Techniques 7.10 (2014): 3325.
[3] Kim, Sunyoung, and Eric Paulos. "inAir: measuring and
visualizing indoor air quality." Proceedings of the 11th international
conference on Ubiquitous computing. ACM, 2009.
[4] Al-Dahoud, Ali, et al. "Monitoring Metropolitan City Air-quality
Using Wireless Sensor Nodes based on ARDUINO and XBEE."
[5] Rajkumar, M. Newlin, M. S. Sruthi, and V. Venkatesa
Kumar. "IOT Based Smart System for Controlling Co2
Emission." (2017).
[6] Kim, Sunyoung, and Eric Paulos. "InAir: sharing indoor air
quality measurements and visualizations." Proceedings of the
SIGCHI Conference on Human Factors in Computing Systems.
ACM, 2010. [7] Chaitanya, H. P., and H. Prasanna Kumar.
"AUTOMATED SYSTEM FOR AIR POLLUTION
DETECTION AND CONTROL OF SPEED IN VEHICLES."
International Journal of Advances in Engineering & Technology
9.4 (2016): 443.
[8] Air_pollution:https://en.wikipedia.org/wiki/Air_pollution
[9]Air_pollution_detector:https://en.wikipedia.org/wiki/Air_pollutio
n_sensor
[10] http://www.instructables.com/id/Air-Pollution-Detector/ [11]
Arduino:https://www.arduino.cc/en/Main/ArduinoBoardUno
https://en.wikipedia.org/wiki/Arduino
[12]MQ135:http://playground.arduino.cc/Main/MQGasSensorshttp:/
/www.waveshare.com/wiki/MQ-135_Gas_Sensor
42 | P a g e
37 SVCET(A)-CHITTOOR