An Iot Based Low Cost Air Pollution Monitoring System: Gagan Parmar, Sagar Lakhani, Manju K. Chattopadhyay
An Iot Based Low Cost Air Pollution Monitoring System: Gagan Parmar, Sagar Lakhani, Manju K. Chattopadhyay
An Iot Based Low Cost Air Pollution Monitoring System: Gagan Parmar, Sagar Lakhani, Manju K. Chattopadhyay
Abstract— A prototype for an Environmental Air Pollution systems. In view of the ever-increasing pollution sources with
Monitoring System for monitoring the concentrations of major toxic chemicals, these systems should have the facilities to
air pollutant gases has been developed. The system uses low cost detect and quantify the sources rapidly.
air-quality monitoring nodes comprises of low cost
semiconductor gas sensor with Wi-Fi modules. This system Using laboratory analysis, conventional air automatic
measures concentrations of gases such as CO, CO2, SO2 and NO2 monitoring system has relatively complex equipment
using semiconductor sensors. The sensors will gather the data of technology, large bulk, unstable operation and high cost. High
various environmental parameters and provide it to raspberry pi cost and large bulk make it impossible for large-scale
which act as a base station. Realization of data gathered by installation. This system can only be installed in key
sensors is displayed on Raspberry pi 3 based Webserver. A monitoring locations of some key enterprises, thus system data
MEAN stack is developed to display data over website. The is unavailable to predict overall pollution situation. To
fundamental aspect of proposed work is to provide low cost overcome defects of traditional monitoring system and
infrastructure to enable the data collection and dissemination to detection methods and to reduce test cost, this work proposes a
all stakeholders. method combining IoT technology with environment
monitoring.
Keywords— Internet of Things, Pollution Monitoring, ARM
Microcontroller, Nucleo F401RE, Raspberry pi-3, MEAN Section II gives a brief overview of IoT architecture and
Stack how each layer is realized. Section III describes the overall
system architecture and hardware used. Experimental setup and
I. INTRODUCTION results are described in section IV. The work is concluded in
525
Forwarding, a DNS is assigned to the IP of Raspberry pi. The calibration procedure has been carried out in two
Whenever a client open DNS the webserver will render a steps: First finding the initial position (zero) of the sensor.
webpage and the DNS can be accessible from anywhere in the Second determining the span of the sensor. To find the zero
world. The complete system is an application of “Internet of value of a sensor, it is required to use “zero air.” However,
things” because it uses Nucleo board based motes (nodes) for there is no established standard that defines “zero air” [11].
pollution monitoring in real time and using a wireless network So, both the sensors are calibrated in clean air at morning.
to process data in a distributed information system. This procedure was adopted as there was no way of
controlling the temperature and the relative humidity available
with us.
IV. ARCHITECTURE
In this section, we describe the different components of
TABLE I
pollution Monitoring system. The overall system architecture COMPARISON BETWEEN ANALYTICAL INSTRUMENTS AND GAS SENSORS
is depicted in figure 3. It can be seen that integration of [12], [13]
hardware and software platform is obtained by combining web
server, database server gateway from the sensor nodes Features Analytical Gas sensors
themselves. In contrast with the large scale monitoring system Instruments
at TEO, the system offered in this paper is designed for small Resolution Excellent Comparable
scale environment monitoring. Cost Very high Fair
Size Bulky Compact
Rigidity Fragile Rigid
Raspberry Pi
Process Control Difficult Easy
Mass Production Difficult Easy
Database
Measurement Instantaneous Continuous
Webserver
Yet, no gas sensors are present that are 100% discerning to a
Gateway Application
single gas. Hence, it is necessary to use instruments that
employ analytical techniques to identify gases. Examples of
such instruments are Fourier transform infrared (FTIR)
instruments, gas chromatographs, and mass spectrometers.
SERIAL SERIAL Table I presents several feature comparisons between gas
WIRELESS WIRELESS sensors and analytical instruments [14].
(Wi-Fi Module) (Wi-Fi Module)
In proposed Work we are using two low cost
semiconductor gas sensors one is MQ7 while the other one is
NUCLEO NUCLEO MQ135 (MQ7 is a carbon-mono-oxide sensor and MQ135
F401RE F401RE
detects NH3, CO2 etc.) shown in figure below.
LAB2
Node 1 Node 2
A. Gas Sensors
These form the front end of the laboratory IoT systems. These
are so called “Things” of the system. Their main purpose is to
collect environmental data from surrounding (sensors) or give
Fig. 5: Gas Sensors
out data to their surroundings (actuators).
The low cost semiconductor sensors are suitable to
use in an array form for low cost environment pollution
monitoring systems. Such an array could be enhanced with
additional temperature, pressure, and relative humidity sensors
to measure the pollutant concentrations together with other
physical parameters, with the advantage of better calibration
of the gas sensors.
526
B. Raspberry pi 3 with a Wi-Fi Module (ESP8266) each is interfaced with
Nucleo F401RE to form two client nodes. Fig 6 below shows
a client node (simple node). These Client nodes send sensor
data wirelessly from sensor node (Nucleo) to Gateway
(Raspberry pi 3) in the form of packets. These data packets
contain id of the node data and the time of packet created. To
save and analyze data we have installed a NoSql database
(Mongo DB) in raspberry pi. The data saved in JSON format
(JavaScript Object Notation).So, it is simple to render the web
page with JSON formatted data. For data visualization we
have designed a webpage using MEAN stack.
We have assigned a DNS to the static IP of
Fig. 6: Raspberry pi 3 Raspberry pi and forwarding the port over internet. So, that it
We have used Raspberry Pi 3
as a Base Station in our
system. Raspberry Pi is configured as credit size
microcomputer based on Raspbian Linux Operating System.It
offers less complexity and more affordable solutions for
wireless monitoring [15]. The Raspberry Pi 3 Model B
features a quad-core 64-bit ARM Cortex A53 clocked at 1.2
GHz ,1 GB SDRAM with built-in Wi-Fi and Bluetooth.
The board also provides user with ETHERNET
which is advantageous to our system. This results in remote
access management through SSH login by putting IP address
in it.
C. Nucleo F401REtx
Fig. 4 shows a Nucleo F401RE microcontroller has ARM®32-
bit Cortex®-M4 CPU with 84 MHz max CPU frequency, 512
KB Flash, and 12-bit ADC with 16 channels. It has Arduino can accessible from anywhere in the world. Fig 8 shows
compatible14 digital input/output pins (of which 6 can be used webpage designed using MEAN stack.
as PWM outputs), 6 analog inputs, a USB connection, an ICSP
header, and a reset button. It also contains everything needed
Fig. 8: Experimental setup & Connection
to support the microcontroller, we can connect it to a computer
with a USB cable to get started [16].
527
the target gas concentrations. The usage of the semiconductor (MIPRO), 2014 37th International Convention on, pp.1013, 1018,
26-30 May 2014
sensors adds several advantages to a system such as low cost,
[16] R. Bhadoriya, M. K. Chattopadhyay and P. W. Dandekar, "Low
quick response, low maintenance, ability to produce cost IoT for laboratory environment," 2016 Symposium on
continuous measurements, etc. Colossal Data Analysis and Networking (CDAN), Indore, 2016,
One major advantage provided by the system is small pp. 1-4.
size. The gateway node of Wireless Sensor Network, database
server and web server all are packed into a single compact
credit sized micro-computer Raspberry Pi. This makes the
system very portable. In addition, this system allows us to
integrate other hardware components with the Raspberry Pi as
a credit size microcomputer. System can be upgraded by
adding more sensing nodes. The detailed design and
measurement results demonstrate the usefulness of this
system. The prototype can be realized as a handheld mobile
device for pollution monitoring.
VII. REFERENCES
528