Real-Time Water Quality Monitoring System Using Internet of Things
Real-Time Water Quality Monitoring System Using Internet of Things
Manipal University Jaipur, Malaviya National Institute of Technology Jaipur & IRISWORLD, July 01-02, 2017
Abstract-The conventional method of testing water quality is to in time accordingly [1],[2]. Cost of the system depends on
gather samples of water manually and send to the lab to test and number of parameters to be measured. Water quality
analyze. This method is time consuming, wastage of man power, monitoring systems need to quickly identify any changes in
and not economical. The water quality measuring system that we the quality of water and report the same to the officials for
have implemented checks the quality of water in real time
immediate action. The system is designed for continuous on-
through various sensors (one for each parameter: pH,
conductivity, temperature) to measure the quality of water. The site sensing and real time reporting of water quality data
ZigBee module in the system transfers data collected by the where the officials can access the data on the smart phone/PC
sensors to the microcontroller wirelessly, and a GSM module through Internet. Our proposed system employs use of
transfers wirelessly the data further from the microcontroller to multiple sensors to measure the parameters, measures the
the smart phone/PC. The system also has proximity sensors to quality of water in real-time for effective action, and is
alert the officials by sending a message to them via the GSM economical, accurate, and required less manpower. In this
module in case someone tries to pollute the water body. This paper section 2 discusses about literature survey on water
system can keep a strict check on the pollution of the water quality monitoring while section 3 discusses on Internet of
resources and be able to provide an environment for safe
Things. Section 4 discusses implementation of water quality
drinking water.
monitoring system, and results obtained through the system
Keywords-Water quality, pH, Conductivity, IoT, ZigBee, are discussed in section 5. Section 6 concludes the paper.
GPRS/GSM, WiMAX
II. LITERATURE SURVEY
1. INTRODUCTION
The available water resources are getting depleted and water
Water is one of the most essential natural resource that has quality is deteriorated due to the rapid increase in population
been gifted to the mankind. But the rapid development of the and need to meet demands of human beings for agriculture,
society and numerous human activities speeded up the industrial, and personal use. The quality of ground water is
contamination and deteriorated the water resources. For above also affected by pesticides and insecticides. The rivers in India
water quality monitoring is necessary to identify any changes are getting polluted due to industrial waste and discharge of
in water quality parameters from time-to-time to make sure its untreated sewage. In order to eliminate problems associated
safety in real time. The Central Pollution Control Board with manual water quality monitoring, CPCB has planned to
(CPCB) has established a series of monitoring stations on go hi-tech and plans to establish ‘Real Time Water Quality
water bodies across the country which monitor the water Monitoring (WQM) Network’ across Ganga Basin. Stephen
quality on either monthly or yearly basis. This is done to Brosnan, 2007 [3] investigated a wireless sensor network
ensure that the water quality is being maintained or restored at (WSN) to collect real time water quality parameters (WQP).
desired level. It is important that it is monitored on regular Quio Tie-Zhn, 2010 [4] developed online water quality
basis. Water quality monitoring helps in evaluating the nature monitoring system based on GPRS/GSM. The information
and extent of pollution control required, and effectiveness of was sent by means of GPRS network, which helped to check
pollution control measures. CPCB has plans to establish water remotely the WQP. Kamal Alameh, 2011[5] presented web
quality monitoring network across Ganga river basin. All the based WSN for monitoring water pollution using ZigBee and
stations will operate in real time and central station can access WiMAX networks. The system measured various WQP. It
data from any of the above stations using GPRS/GSM or 3G collected, processed measured data from sensors, and directed
cellular services. State pollution boards and CPCB zonal through ZigBee gateway to the web server by means of
offices can also access data from central station. Large amount WiMAX network to monitor quality of water from large
of data can help to take right decisions and also to implement distances. System was capable of monitoring water pollution
in real time. Dong He, 2012 [6] developed WQM system
A. ThingSpeak
79
application. We use AT commands to connect to Wi-Fi
networks and open TCP connections without need to have
TCP/IP stack running in our own microcontroller. By just
directing connecting the microcontroller to this module, we
can start pushing data up to the Internet (Central server).
A. Sensors
80
cm apart (unit: mili- or micro-Siemens per cm). A constant and password, it goes to the web page where the parameters
voltage is applied across electrodes. The current flow through are displayed in real-time in the form of plots.
the water is proportional to the concentration of dissolved ions
in the water, which measures the electrical conductivity. The
dissolved salts concentration is directly proportional to
electrical conductivity. Total dissolved solid (TDS)
determines the quantity of minerals and salts reside within the
water. TDS in water is determined by multiplying the
conductivity by a factor of 0.67.
Getting started
x Sign-up to create a new account in ThingSpeak
x Create a new channel to store the data from sensors
x ThingSpeak has a ‘status update field’ to send any
additional information required on the page Fig. 3. Data Logging on ThingSpeak
x Give the field names: pH, Temp, conductivity, TDS
x If you check ‘public’, other people can access your To demonstrate the quality of water, the pH sensor and EC
data sensor is put into a container filled with tap water, to which 3-
4 drops of acid is added. From the graphs in Fig. 4 shown
x Click on ‘Save channel’
below, we can see that the pH of the water remains at around
x An API key is created. An application programming 3 to 4.5 means the water is acidic in nature. The temperature
interface (API) key is a code passed in by computer of the surrounding stays between 32 to 34 degrees. The
programs calling an API to identify the calling conductivity of water is at 7 to 9 microSiemens/centimeter.
program (its developer, or its user to the Web site.) Total Dissolved Solids are 0.67*electrical conductivity which
can be measured from the graph.
Sending data to ThingSpeak channel
x Chrome Poster- a developer tool that allows us to VI. CONCLUSIONS
interact with the http server
x Copy the URL provided in Poster The low cost, efficient, real-time water quality monitoring
x Enter ‘key=APIkey&pH=3.5’ in the ‘Content body’. system has been implemented and tested. Through this
This will put the data (3.5) into the pH field system, the officials can keep track of the levels of pollutions
x Click on ‘Post’ occurring in the water bodies and send immediate warnings to
x If everything is successful, ThingSpeak API status the public. This can help in preventing diseases caused due to
polluted water and presence of metals. Quick actions can be
will be ‘200 OK’.
taken to curb extreme levels of pollution like in the case of the
x We can keep adding any number of values. The Ganga and Yamuna rivers. The system can be easily installed,
status window shows the number of values. with the base station kept close to the target area, and the task
x Select ‘View Charts’ to create a chart out of the data of monitoring can be done by less-trained individuals.
sent to ThingSpeak channel. Performance modeling in different environment is important
x Through ‘Embed code’ given at the bottom of the to study in future because different kind of monitoring
window, we can give other people access to the application requires different arrangement during system
channel. installation.
x Data importing from the sensors, and then exporting Internet of Things (IoT) and its services are becoming part of
the data onto the channel, all takes place in real-time our everyday life, ways of working, and business. There is a
basis. great deal of research on developing crucial building blocks
and models for the next generation Internet services supported
V. RESULTS by a plethora of connected things. With the help of efficient
and intelligent use of mobile network, IoT has revolutionized
Authorized users can access data by logging on ThingSpeak the world. It is changing the future of technology and how
website as shown in Fig. 3. On entering the registered user ID objects behave around us? It won’t be long when we can
81
access any information and command objects at the touch of Advanced Transducers and intelligent Control System Lab, Taiyuan
Technical University, Taiyuan, China, 2010
fingertips.
[5] Steven Silva, Hoang N Ghia Nguyen, Valentina, Tiporlini, Kamal
Alameh, “Web based Water Quality Monitoring with Sensor Network:
ACKNOWLEDGEMENT Employing ZigBee and WiMAX Technology”, 36th IEEE Conf. on
Local Computer Networks,
2011
The authors are thankful to Prof. Dinkar Prasad, Head, EE
[6] Donge He, Li-Xin Zhang, “The Water Quality Monitoring System based
Dept., and Associate Director, School of Engg., Shiv Nadar on Wireless Sensor Network” Report: Mechanical and Electronic
University, G. Noida (UP), India for providing necessary Information Institute, China University of Geo- Science, Wu Hen,
resources and infrastructure to conduct this project work and China, 2012
[7] Pavlos Papageorgiou, “Literature Survey on Wireless Sensor
for his encouragement, and permission to publish this paper.
Networks”, Report: University of Maryland, 16 July 2003
[8] Satish Turken, Amruta Kulkarni, “Solar Powered Water Quality
REFERENCES Monitoring System using Wireless Sensor Network”, IEEE Conf. on
Automation, Computing, communication, control, and compressed
[1] R.M. Bhardwaj, “Overview of Ganga River Pollution”, Report: Central sensing, pp281-285, 2013
Pollution Control Board, Delhi, 2011 [9] Liang Hu, Feng Wang, Jin Zhou and Kuo Zhao “A Survey from the
[2] Nivit Yadav, “CPCB Real time Water Quality Monitoring", Report: Perspective of Evolutionary Process in the Internet of Things”,
Center for Science and Environment, 2012 International Journal of Distributed Sensor Networks, Article ID
[3] Tuan Le Dinh, Wen Hu, Pavan Sikka, Peter Corke, L. Overs, Stephen 462752, 2015
Brosman, “Design and Deployment of a Remote Robust Sensor [10] ThingSpeak-Understanding your Things-The open IoT Platform with
Network: Experiences from Outdoor Water”, 32nd IEEE Conf. on Local MATLAB analytics, MathWorks.
Computers, pp 799-806, Feb., 2007 [11] User Manual Arm7-LPC2148 Development kit – Pantech Solutions.
[4] Quio Tie-Zhn, Song Le, “The Design of Multi-parameter On line [12] ESP8266 serial Wi-Fi wireless Transceiver Module for IoT,
Monitoring System of Water Quality based on GPRS”, Report: ESPRUINO-Wireless.
Fig. 4. Water Quality parameters (pH, Temperature, Conductivity, and TDS) Measurement Results
82