Real Time Water Quality Assurance with the Perspective of Internet of Things

DOI : 10.17577/IJERTV6IS040108

Download Full-Text PDF Cite this Publication

Text Only Version

Real Time Water Quality Assurance with the Perspective of Internet of Things

Divya Pathak

Department of Electronics & Communication Engg.,

  1. N. Modi Engineering College, Rajasthan Technical University, Kota, Rajasthan, India

    Aaditya Jain

    Department of Computer Science & Engg., R. N. Modi Engineering College, Rajasthan Technical University, Kota, Rajasthan, India

    Abstract To ensure the safe supply of drinking water the quality should be monitored in real time. The conventional method of water quality assurance is to take the samples manually and send it to laboratory for analysis. This technique is time overwhelming and not economical. Also it is not feasible to take the water sample to the laboratory after every hour for quality measurement and Assurance. To overcome from these problems a new system is proposed in this work. This water quality assuring system will measure and assure the essential qualities of water in real time. The proposed system consists of multiple sensors to measure the standard of water, Raspberry Pi 2 and Ethernet Local Area Network (LAN) to send the information to the controlling center. It's a real time system which is able to endlessly measure the standard of water and send the measured values to the controlling center in each predefined time. The system relies on sensors, Raspberry Pi 2 and Internet.

    Keywords Internet of Things (IoT ), Water quality assurance, Raspberry Pi 2, Sensors, Turbidity, pH, Temperature.

    1. INTRODUCTION

      Water is a resource of prime importance. Life on the earth would not have been evolved without water. The availability of high quality water is a key determinant for human, animal and plant survival. Water quality refers to the chemical, physical, biological, and radiological characteristics of water [16]. It is a measure of the condition of water relative to the requirements of one or more biotic species and or to any human need or purpose. It is most frequently used by reference to a set of standards against which compliance can be assessed. The most common standards used to assess water quality relate to health of ecosystems, safety of human contact and drinking water. The quality of water is determined by many factors that include total dissolved solid, conductivity, pH, turbidity and temperature. Many factories, power plants, nuclear reactors and petroleum refineries requires large amount of water for cooling purpose. The heated water is discharged into rivers and lakes results in increasing of water temperature. When water temperature becomes too high, it effects on organisms that are living in the water such as fishes. That means organisms that are living in water may die or may suffer from variety of ill effects. High Water temperature also reduces the solubility of oxygen and increases the toxicity of ammonia which also affects living beings present in the water. For these reasons, it is one of important parameter in water quality

      measurement and it is also important to protect water from unnecessary warming.

      Turbidity is the cloudiness of a fluid caused by large numbers of individual particles [17]. Turbidity in water is caused by Human activities that disturb the land, such as construction, mining and agriculture, can lead to high sediment levels entering water bodies during rain storms. Urbanized areas also cause large amounts of turbidity to nearby water bodies from paved surfaces such as roads, and bridges [10]. Certain industries such as petroleum refineries, mining and coal recovery generate the very high levels of turbidity from colloidal particles. In drinking water, the higher the turbidity level means higher the risk that people may suffer from gastrointestinal diseases [11]. Therefore, turbidity is another important key parameter of water quality measurement.

      Another important key factor for water quality measurement is pH. It is a measure of whether water is hard or soft. The range goes from 0 – 14, with 7 being neutral. pH of less than 7 indicates acidity, whereas a pH of greater than 7 indicates a base [12]. pH is really a measure of the relative amount of free hydrogen (acidity) and hydroxyl (base) ions in the water. Water that has pH value less than 7 indicates more hydrogen ions, whereas water that has pH value greater than 7 indicates more hydroxyl ions. If the pH value of water is too high or too low, aquatic organisms living within it will die and is not suitable water for drinking.

      The old method of measuring the quality of water which is in use today is not an economical as well as not reliable, time consuming and not accurate. So there is a necessity to develop a system that is accurate, robust and able to cope with the real time environment.

      This work presents an effective use of low-cost, robust, real time and easily deployable sensors for measuring the quality of water. In this real time IoT system, the water quality is measured using sensors such as digital temperature sensor, pH sensor, Turbidity sensor and Raspberry Pi 2. The sensors measure the quality of water by considering the pH, temperature, turbidity of the water. The qualities which are measured by sensors are transmitted to Raspberry Pi 2 and then it is transmitted to controlling centre through internet. These continuously measured values are stored in the repository. Measured values are displayed on LCD screen. This system allows the user to access the data from database through website and provides the advantage of improved efficiency, accuracy and low price.

    2. LITERATURE SEARCH

      The Internet of Things (IoT), is a concept that describes how objects that we are used in daily life will interact and negotiate with other objects over the internet [1]. This paper deals with real time water quality assurance with the perspective of IoT. This section reviews some relevant research works.

      Li Zhenan et.al [2], introduced an intelligent water quality and control system based on wireless sensor networks to measure the quality of water. This system used the mobile wireless sensors to monitor water quality in a remote fashion and can detect pollutant location. Wireless controlled UAVs are integrated for the marking, separation and removal of pollutant. The technical challenges such as sensor selection and wireless control are addressed with customized novel algorithms. But UAV control algorithm is not efficient method for control wireless systems.

      Mithila Barabde1 et.al [3] proposed new system for water quality assurance. This system is based on wireless sensor network (WSN) which makes use of ZigBee. Another important fact of this system is the easy installation of the system that is the base station can be placed at the local residence close to the target area and the monitoring task can be done by any person with very less training at the beginning of the system installation. One important aspect is the system should work in different environment in more effective way, but using this system it is difficult to get reliable results in every situation.

      1. Fredrick et.al [4], developed new prototype based on IEEE 802.15.2.4 and solar energy for water quality monitoring is described. The prototype used ECHERP routing protocol for energy conservation purposes and solar panels are used instead of batteries to ensure the system will last in a long period of time. But evidently solar energy technologies remain to be very costly alternative. The fabrication of solar modules and their installation entail large amount of resources. Main drawbacks of this system are costly and difficult to deploy the system.

        Akila U et.al [5], preented a water quality monitoring system based on wireless sensor network. The system consisting the base station and several sensor nodes. In the node side, water quality data was collected by sensors such as pH and Temperature. Here authors used ARDUINO UNO 3 as hardware component to interface between sensors and GSM module to develop the system. Drawbacks of this system are measures only pH and Temperature of water. It will not measure Turbidity of water and data storage module is not presented in this work.

        Thamarai Selvi D et.al [6], presented a design of real time monitoring of drinking water quality system at consumer sites. The proposed system consist of several in- pipe water quality sensors. These are low power, lightweight and capable to process of data. The System is validated to enable these sensor nodes to make decisions and trigger alarms when anomalies are detected. This automated water utility billing system will overcome the difficulties in existing Water distribution system. The total costing of the meters is supposed to reduce so as the system will be economical along with power consumption

        reduction will be achieved by programming. Proposed system as per user requirement that is for monthly billing cycle it will be in active mode once in a month and rest of the time it will be sleep mode. But these systems are bulky and remain cost prohibitive for large scale deployments such systems can take frequent samples of the water quality at a very limited number of locations.

        Amruta Boyne et.al [7], did the detailed study of embedded PLC and its pros and cons. Later, they developed a new system to measure the quality of water. Extra hardwares like camera, LCD, SD card, Ethernet, LAN with many allied techniques were used in that system. The sensors pH and TDS (Total Dissolved Salt) will be kept in the river water surface and the data captured by the sensor will be given to Arm cortex M3 – Microcontroller and then data is captured and transmitted to an authentic source. After calculating the vital inference from the sensed data its analyzed. But microcontroller is specific to particular application and also this system has more complex architecture than the system which is developed using Raspberry Pi 2.

        From the survey, following are the drawbacks identified in the existing systems:

        • Investment for the system is high.

        • Size of the system is large

        • The control system is not user friendly

        • The systems are not real time and not able to measure the quality of water efficiently

      To overcome these drawbacks, our system uses simple devices that are small in size. The investment for the system is comparatively very less. The mechanism we implemented is too simple and effective. This system works with an internet connection. The system will measure the temperature, pH and turbidity of water in real time. This system is user friendly which sends text messages for registered user if predefined values of water exceeded.

    3. SYSTEM DESIGN AND DEVELOPMENT The water quality measurement system uses pH,

      turbidity and temperature sensors to measure the standard of water. These sensors measure the corresponding values in the water. These three sensors are connected to Raspberry Pi. The Measured information send to Raspberry Pi. the output of the pH sensor is analogue in nature, so, it is converted in to digital using ADC (analog to digital converter). System uses LAN/wireless network for communication with the control centre. It's a real time system and it doesn't required any man machine interaction. The systematic arrangements of the components are shown in the Figure 1.

      The Raspberry Pi is a small sized single-board computer. All Raspberry Pis included the same Video Core IV GPU and either a single core ARMv6-compatible CPU or an ARMv7-compatible quad-core one. Pi is also included the 1 GB of RAM or a Micro SDHC one for boot media [12]. In this work Raspberry Pi 2 model is used. The pH sensor, Temperature sensor and Turbidity sensor are

      connected to Raspberry Pi as shown in the Figure 1. Python programming language is used to connect various sensors. PHP and html languages are used for Graphical User Interface. For information storage and retrieval MySql is used.

      The pH Electrode BNC is used to measure the pH value of the water. It is a gel-filled combination pH electrode designed to make measurements in the pH range of 0 to 14.The body that extends below the glass sensing bulb of the electrode makes this probe ideal for making measurements in the environment.

      Fig. 1 System Structure

      Turbidity is the phenomenon where by a specific portion of a light beam passing through a liquid medium is deflected from dissolved particles. Turbidity sensors are used to measure water quality in rivers and streams, wastewater and effluent measurements, control instrumentation for settling ponds, sediment transport research and laboratory measurements. In this work SKU: SEN0189 Turbidity sensor [14] is used to measure the turbidity of the water. This sensor measures turbidity of water in form of analog signal and this signal is goes to ADC where the signal is converted into digital and it is send to Raspberry Pi. Pi process the signal and code written in the Pi convert the digital signal into NTU.

      The DS18B20 Temperature sensor [15] is used to measure the temperature of water. It is a waterproofed version and it good up to 125°C. It is digital, so you don't get any signal degradation even over long distances. The sensor has 3 wires: red (VCC), black (GND) and yellow (DATA). Connect the red to +5V, the black to GND and the yellow to the digital pin D10 of Pi. Then put a 4.7k ohm resistor between yellow wire and +5V. We have added a 4.7K resistor, which is required as a pull up from the DATA to VCC line when using the sensor. It is a digital sensor so it is directly connected to Raspberry Pi.

      In this work we also implemented data storage facility. Here, Pi will send the sensors data to controlling center. This system also provides SMS notification facility for authorized users using SMS gateway. An SMS gateway allows a Pi to send Short Message Service (SMS) to a telecommunications network using web browser to people within the limit served by that gateway. An SMS gateway

      can also serve as an international gateway for users with roaming capability, allowing SMS communication away from the home network. In this work Way2SMS.com is used as SMS gateway to notify the registered users about sudden water quality variations that are measured by the sensors as show in Figure 2.

      Fig.2 SMS Transmission

      1. Measurement of Temprature of water using Temprature Sensor

        Figure 3 shows how sensor measuring the water temperature in the range from -550C to 1250C. Basically water temperature is classified into cold, normal and hot based on its temperature. If the temperature is in the range from -550C to 200C is considered as cold water, from 210C to 390C is considered as normal water and from 400C to 1250C is treated as hot water.

        Fig. 3 Flow chart of water temperature measurement

      2. Water pH value measurement using pH sensor

        The pH sensor measures hydrogen potential in the water that ranges between 0 and 14. Based on the pH value, water is classified as acidic, normal and basic. If the value is below 7 it is considered as acidic, above 7 as basic and 7 as normal or good water. In acidic, it is again classified as low acidic (3 to 6) and high acidic (0 to 2). In the same way basic water is also classified into two types. They are low

        basic (8 to 10) and high basic (11 to 14). The Figure 4 shows the flow chart of pH value measurement.

        Fig.4. Flow Chart of PH Value Measurement

      3. Measurement of Turbidity of Water

      The turbidity of water is its clarity. If any mud, slit or sand particles etc. are mixed with the water, its quality varies. According to the water quality norms, normal water rages from 0 NTU (Nephelometric Turbidity Units) to 5 NTU and also maximum of up to 25 NTU is permissible. If the water goes over 26 NTU up to 3000 NTU it is classified as turbid or mud mixed water. Figure 5 shows flow chart of water classification based on turbidity value of water.

      Fig.5. Flow Chart of Turbidity Value Measurement

      The Algorithm for water quality measurements is as follows.

      Step 1: Start.

      Step 2: turn on all sensors.

      Step 3: read the sensors data after every 10 minutes. Step 4: store the data in database.

      Step 5: if {temperature is <200C or >400C} | {turbidity is

      >26 NTU} | {pH is <7 or >8.5} then go to Step 6 else go to step 3

      Step 6: send appropriate message to registered users then go to step 3.

    4. RESULT AND ANALYSIS

      Three sensors (Temperature, Turbidity, and pH) are connected to Raspberry Pi as shown in the Figure 6. The digital temperature sensor DS18B20, which is a one wire digital device. So, it is directly connected to Raspberry Pi along with a 4.7k Ohm resistor which is required as a pull up from the DATA to VCC line when using the sensor. The turbidity sensor SEN-0189 is an analog sensor which senses the clarity of the water. Raspberry Pi supports only digital sensors and it will take only digital values. Therefore in this approach, an analog to digital converter is used (ADC- MCP3008) to convert analog signals into digital signals. Sensor is connected to channel 1 of the ADC to convert the analog value to digital. Later, digital value input to Raspberry Pi. Similarly, pH electrode BNC-E201 is also an analog sensor, therefore this sensor is connected to channel

      2 of ADC. Here, turbidity sensor and pH electrode are connected to ADC. ADC is connected to Raspberry Pi. All the three sensors in the following scenario measuring the quality of normal tap water. The Ethernet cable is connected to Raspberry Pi to send the information control center. The breadboard is used for the connections.

      Fig.6. Connections of Sensors to Pi

      The Figure 7 shows the readings of all the three sensors of normal tap water. The Temperature, pH and Turbidity values of the water is displayed along with its measuring units in the Terminal (Command Prompt) of the Raspberry Pi. It also shows the SMS notification sent to the registered user when there is a variation in the water quality.

      Fig.7. Readings from Sensors

      The Figure 8 shows the SMS notifications sent to the registered users of the device to know the quality of water. Here, users needs provide their mobile numbers to get notifications from the Raspberry Pi device. There are different notifications related to water temperature, pH and turbidity are send to registered users via SMS gateway. These notifications are received by the user when water quality is varied suddenly than some prefixed threshold values.

      Fig.8. SMS Notifications

      The Figure 9 shows the data retrieved from the database. It will help the users to know about water quality at any time and from anywhere. This page also provides an option

      to get the stored water quality information based on the specific date.

      Fig.9. Data Retrieved from Database

      The experimental outcomes obtained for various input and their comparisons are shown in the table 1. Table shows the input water type, measurement parameter considered. Laboratory value and system measured value.

      Initially, various types of water samples are considered for testing the proposed system. These samples of water are tested in SDM institute of Technology chemistry laboratory and results are noted. Later, same samples are tested with our developed device and results are once again noted separately. Here, we considered one parameter at a time and we obtained almost same result from developed device compared to laboratory result. This shows that proposed system can be used to measure the quality of water in real time.

      Table 1 Comparison of proposed system result with laboratory results

      S No.

      Input

      (Water)

      Measurement

      Laboratory

      System Value

      1

      Cold

      Temperature

      20

      20.083

      2

      Normal

      Temperature

      30

      30.062

      3

      Hot

      Temperature

      58

      58.103

      4

      High Acidic

      pH

      1.58

      2.008

      5

      Low Acidic

      pH

      5.7

      6.129

      6

      Normal

      pH

      7.6

      8.122

      7

      Low Basic

      pH

      9

      9.309

      8

      High Basic

      pH

      12

      12.403

      9

      Mud Mixed

      Turbidity

      1005

      1000

      10

      Normal

      Turbidity

      2

      0

    5. CONCLUSION

This work focused on analyzing the water quality with high performance, real time, accurate and low cost. This system can be used to measure the quality of drinking water, river water, sea water etc. Water quality is determined by considering several parameters like pH, temperature, turbidity, Total Dissolved Solids (TDS), conductivity etc. In this work pH, temperature and turbidity parameters are considered to measure the quality of water. These three parameters of the water are measured with the help of Raspberry Pi and sensors. The proposed system measures the temperature, turbidity and pH of water for every 5 minutes and these measured values are stored in database. based on the threshold values set, Raspberry Pi notifies the registered user by sending text SMS with the values and these values can also be retrieved through website.

In future, the parameters like Total Dissolved Solids (TDS), conductivity, hardness, chloride, ammonia, iron, fluoride etc are also considering for water quality measurement and these values are used to check the purity of water for many purposes such as drinking water and daily requirements.

ACKNOWLEDGMENT

We would like to express our deep sense of respect and gratitude towards Mr. Bhupendra Soni, Principal, R. N. Modi Engineering College Kota, and thanks to each person who has been the guiding force behind this work. Without their unconditional support it wouldn't have been possible.

REFERENCES

  1. Aaditya Jain, Bhuwnesh Sharma, Pawan Gupta, Internet of Things: Architecture, Security Goals and Challenges-A Survey, 3rd International Conference on Recent Trends in Engineering Science and Management (ICRTESM), ISBN:978-81-932074-4-4, 2016.

  2. Li Zhenan, Wang Kai, Liu Bo, Sensor-Network based Intelligent Water Quality Monitoring and Control, International Journal of Advanced Research in Computer Engineering &Technology, Volume 2, Issue 4, April 2013, ISSN: 2278 1323.

  3. Mithila Barabde1, Shruti Danve, Real Time Water Quality Monitoring System, International Journal of Innovative Research in Computer and Communication Engineering, June 2015, ISSN: 2320 9801.

  4. A. Fredrick Romanus Ishengoma, A Novel Design of IEEE

    802.15.4 and Solar Based Autonomous Water Quality Monitoring Prototype using ECHERP, International journal of Computer Science & Network Solutions, January 2014, Volume 2, ISSN: 2345-3397.

  5. Akila U, Elackiaselvi R, Mahaeshwari R, Shunmugavalli K, Mrs .T. Prathiba, Industrial sewage water quality monitoring system, International Journal of Advanced Engineering Research & General Science, Volume 3, Issue 2, March-April, 2015, ISSN: 2091-2730.

  6. Thamarai Selvi D, Anitha S.R, Potable Water Quality Monitoring and Automatic Billing System, International Journal of Advanced Research in Electrical, Electronics 10and Instrumentation Engineering, Volume 4, Issue 4, April 2015.

  7. Amruta Boyne, Prof. S. N. Kulkarni, Build out of Embedded PLC for Water Quality Monitoring, International Journal of Advanced Research in Computer Science and Software Engineering, Volume 5, Issue 6, June 2015, ISSN: 2277 128X

  8. Mr. Akram Salim Pathan, Mr. G.R. Gandhe, Design of Object-Oriented Water Quality Software System A Case Study of Upper Godavari River Paithan, Aurangabad (MS) India, International Journal of Scientific and Research Publications, Volume 3, Issue 6, June 2013, ISSN: 2250- 3153.

  9. Feng Zhang, Underwater Sensor Networks for Water Quality Monitoring.

  10. U.S. Environmental Protection Agency (EPA). Washington,

    D.C. "National Management Measures to Control Nonpoint Source Pollution from Urban Areas." Chapters 7 and 8. Document No. EPA 841-B-05-004. November 2005.

  11. A.G. Mann, C.C. Tam, C.D. Higgins, & L.C. Lodrigues. (2007). The association between drinking water turbidity and gastrointestinal illness: a systematic review. BMC Public Health. 7(256): 1 7.

  12. http://crest.cuny.edu/hires/wpcontent/uploads/2014/08/HIRE S_Experiment_Module_Water1.pdf.

  13. https://en.wikipedia.org/wiki/Raspberry_Pi

  14. https://www.dfrobot.com/wiki/index.php/Turbidity_sensor_S KU:_SEN0189

  15. http://datasheets.maximintegrated.com/en/ds/DS18B20.pdf

  16. Diersing, Nancy (2009). "Water Quality: Frequently Asked Questions." Florida Brooks National Marine Sanctuary, Key West, FL.

  17. https://en.wikipedia.org/wiki/Turbidity

Leave a Reply