Sat - 22.Pdf - Air Pollution Monitoring System Using Iot
Sat - 22.Pdf - Air Pollution Monitoring System Using Iot
Air quality is a global provocation for governments, industries and citizens. Many
governments are spending huge amount in improving air quality and they are
educating people to improving air quality. Now a days, many industries and daily
activities generate huge air pollutions, especially in metropolitan cities of the
developing countries, such as china and India. In these cities, air quality of the urban
environment has seriously degraded people‟s work and life. Delhi, capital city of India,
has to release fed alarm of air pollution and stop nearly all of the public outdoor
activities several times per year. World Health Organization (WHO) reveals the fact
that only in 2016, 575 thousand people died if air pollution, which contributes t0 12.5%
of all the death, indicating that the air pollution is now the largest single environmental
health risk. To eradicate this problem we need to sort out In order to implement
effective policies and interventions there is an increasing focus on understanding the
levels and causes of air pollution. Today, air quality monitoring is performed by large,
expensive scientific instruments permanently installed and professionally maintained,
at a relatively small number of fixed locations. For example London has around 100
monitoring stations. This makes it difficult for citizens to understand the levels of
pollution they experience in their daily lives, as the monitoring data is not available in
real time and is very sparse. Advances in sensors, IoT platforms and mobile
communications technologies have led to the emergence of smaller, portable, low
cost, sensors that can measure and report air quality in near real time.
v
TABLE OF CONTENTS
vii
LIST OF TABLES
ix
LIST OF ABBREVIATIONS
x
CHAPTER 1
INTRODUCTION
Air pollution can have a lasting effect on productivity in other ways, such as by
stunting plant growth which reduces agricultural productivity. It can also make cities less
attractive to talented workers, thereby reducing a cities competitiveness. For example,
some Indian cities are reporting a reverse migration trend16 from the city back to the country
as citizens take steps to avoid high pollution. Governments also face fines for non-
compliance to regional air pollution legislation. Many countries across Europe including the
UK, Germany, France, Italy and Spain face the prospect of huge fines arising from
persistent failures to comply with European air pollution laws17. The UK has been
threatened with a $400M fine and cities including London, Berlin, Lyon and Barcelona have
all been highlighted by regulators for their unacceptably high air pollution levels. The United
States has legislated to control air pollution, with California demonstrating how effective
regulatory approaches can be, with every dollar invested in air pollution control since 1970
reported to yield $30 in benefits20, giving an impressive $1.5 trillion return for a $65 billion
investment.
Internet of things was first introduced in 1999 at autoID centre and first used by
Kevin ashton. As evolving this latest burning technology, it promises to connect all our
surrounding things to a network and communicating with each other with less human
involvement. Still internet of things is in beginning stage and there is no common
architecture exists till today. There is lot of researches and implementations are currently
being going on in all the respective areas. Thus there is no guidelines or boundaries exists
to define the definition of internet of things. So depending on the context, application the
internet of things has different definitions. Shortly it is defined as the things present in the
physical world or in an environment are attached with sensors or with any embedded
systems and made connected to network via wired or wireless connections. And it consists
of smart machines which communicating interacting with other machines, environment,
objects etc. And also it incorporates to connect any two machines, machine to human and
vice versa etc. this communication is called as M-M communication. As M-M communication
is developing by the various standardization bodies such as Open Mobile Alliance (OMA),
European Telecommunication Standards Institute (ETSI), Institute of Electrical and
Electronic Engineers (IEEE), 3rd Generation Partnership Project (3GPP) organization have
performed some activities on M-M communication . It makes daily life things to equip with
transceivers, sensors, actuators and microcontrollers etc. for communication. Some
important benefits of internet of things includes 1) tracking behaviour; 2) enhanced
situational awareness; 3) sensor driven decision analytics; 4) instantaneous control and
1
response. Etc. IOT technology grows in various fields of smart applications but we have not
yet found boundary constraints of this technology.
ARDUINO UNO:
Arduino is an open source computer hardware and software company, project, and
user community that designs and manufactures single-board
microcontrollers and microcontroller kits for building digital devices and interactive objects
that can sense and control objects in the physical world. The project's products are
distributed as open-source hardware and software, which are licensed under the GNU
Lesser General Public License (LGPL) or the GNU General Public License, permitting the
manufacture of Arduino boards and software distribution by anyone.
Arduino board designs use a variety of microprocessors and controllers. The boards
are equipped with sets of digital and analog input/output (I/O) pins that may be interfaced
to various expansion boards (SHIELDS) and other circuits. The boards feature serial
communications interfaces, including Universal Serial Bus (USB) on some models, which
are also used for loading programs from personal computers. The microcontrollers are
typically programmed using a dialect of features from the programming languages C
and C++. In addition to using traditional compiler toolchains, the Arduino project provides
an integrated development environment (IDE) based on the Processing language project.
to provide a low-cost and easy way for novices and professionals to create devices that
interact with their environment using sensors and actuators. Common examples of such
devices intended for beginner hobbyists include simple robots, thermostats, and motion
detectors.
SOFTWARE AND PROGRAMMING TOOLS
A program for Arduino may be written in any programming language with compilers
that produce binary machine code for the target processor. Atmel provides a development
environment for their microcontrollers, AVR Studio and the newer Atmel Studio
The Arduino project provides the Arduino integrated development environment (IDE),
which is a cross-platform application written in the programming language Java. It
originated from the IDE for the languages Processing and Wiring. It includes a code editor
with features such as text cutting and pasting, searching and replacing text, automatic
indenting, brace matching, and syntax highlighting, and provides simple one-
click mechanisms to compile and upload programs to an Arduino board. It also contains a
message area, a text console, a toolbar with buttons for common functions and a hierarchy
of operation menus.
A program written with the IDE for Arduino is called a sketch. Sketches are saved on
the development computer as text files with the file extension .ino. Arduino Software (IDE)
2
pre-1.0 saved sketches with the extension .
The Arduino IDE supports the languages C and C++ using special rules of code
structuring. The Arduino IDE supplies a software library from the Wiring project, which
provides many common input and output procedures. User-written code only requires two
basic functions, for starting the sketch and the main program loop, that are compiled and
linked with a program stub main() into an executable cyclic executive program with
the GNU toolchain, also included with the IDE distribution. The Arduino IDE employs the
program avr dude to convert the executable code into a text file in hexadecimal encoding
that is loaded into the Arduino board by a loader program in the board's firmware.
PROGRAM STRUCTURE
setup(): This function is called once when a sketch starts after power-up or reset. It is
used to initialize variables, input and output pin modes, and other libraries needed in
the sketch.
loop(): After setup() has been called, function loop() is executed repeatedly in the main
program. It controls the board until the board is 000000powered off or is reset.
POWER:
The Arduino Uno can be powered via the USB connection or with an external
power supply. The power source is selected automatically. External (non-USB)
power can come either from an AC-to-DC adapter (wall-wart) or battery. The adapter
can be connected by plugging a 2.1mm center-positive plug into the board's power
3
jack. Leads from a battery can be inserted in the Gnd and Vin pin headers of the
POWER connector.
VIN: The input voltage to the Arduino board when it's using an external power
source (as opposed to 5 volts from the USB connection or other regulated power
source). You can supply voltage through this pin, or, if supplying voltage via the
power jack, access it through this pin.
5V: The regulated power supply used to power the microcontroller and other
components on the board. This can come either from VIN via an on-board regulator,
or be supplied by USB or another regulated 5V supply.
3V3: A 3.3 volt supply generated by the on-board regulator. Maximum current draw
is 50 mA.
GND: Ground pins.
MEMORY:
The ATmega328 has 32 KB (with 0.5 KB used for the bootloader). It also has
2 KB of SRAM and 1 KB of EEPROM (which can be read and written with
the EEPROM library).
Each of the 14 digital pins on the Uno can be used as an input or output,
using pinMode(), digitalWrite(), and digitalRead()functions. They operate at 5 volts.
Each pin can provide or receive a maximum of 40 mA and has an internal pull-up
resistor (disconnected by default) of 20-50 kOhms. In addition, some pins have
specialized functions:
Serial: 0 (RX) and 1 (TX). Used to receive (RX) and transmit (TX) TTL serial data.
These pins are connected to the corresponding pins of the ATmega8U2 USB-to-
TTL Serial chip.
4
connection to the computer (but not for serial communication on pins 0 and
1).
A Software Serial library allows for serial communication on any of the Uno's
digital pins.