Real Time Water Qualtiy Measurement System


Table of Contents

  1. Introduction
  2. Solution Architecture
  3. Links


The traditional method adopted by environmental authorities in measuring the quality of water is to collect water samples from various locations and send them to the laboratories for for analysis, but this is inefficient and ineffective as it is time consuming, wasting human labour, and not economical. To get a analysis by observing previous records will also be difficult in this technique. If real time monitoring is required, this method is unable to provide expected outcomes as it may not be possible to take samples and send them immediately to the laboratories for analysis.

The system consists of several sensors located in remote locations to measure the water quality real time (most probably near water resources around industrial environments). The information received by sensors are sent to a centralized system which is monitoring the water quality measurement through GSM modules. These information can be sent at a predefined interval of time and they can be analyzed from the central monitoring system. Moreover, this system is only accessed by the authorized personnel only who works at environmental authorities. Hence, the system is secured with access restrictions.

Main objectives are as follows

  1. Cost effective

  2. Time saving

  3. Remote monitoring and centralized controlling

  4. Higher scalability

  5. Higher security

  6. Easy Report generation for analysis

  7. Power efficient/ Power saving


These are the main subject areas to be covered in each course as this is a joint project.

Solution Architecture

Overview of Infrastructure:

The qualities that can be measured vs qualities we wish to measure are as follows:

According to the Central Environmental Authority (CEA) of Sri Lanka and Environmental Protection Agency(EPA) of United States of America these are the typical water quality parameters measured.

  1. pH

  2. Conductivity

  3. Temperature

  4. Turbidity

  5. Dissolved Oxygen (DO)

  6. BOD - Biological Oxygen Demand

  7. COD - Chemical Oxygen Demand

  8. Dissolved Heavy Metals and their concentrations

  9. Fully or partially dissolved organic and inorganic compounds and their concentrations

From these only qualities from 1) to 4) can be measured in this project since rest of the qualities involve deep chemical analysis of samples.

Embedded Systems Design

Atmega MCU is used at each node and it is used to manipulate the power consumption by each sensor. Further, it used to control all the peripherals connected to the end node.

All the above components are connected to make a single end node of the system.

Web and Network Application Design

A GSM module connected at each end is used to communicate between the node and the central server.

GPRS is used to transfer data packets from the end node to the central server via the Internet.

TCP/UDP are used as Transport Layer protocols and IP is used as Network Layer Protocol.

Back end

The following technologies are used to develop the back end web application

  1. MySQL

  2. PHP or Node.js

Front end

  1. HTML

  2. CSS

  3. JavaScript

  4. Bootstrap

Computer and Network Security

Sensitive data of this system include the following.

1) Monitored data from each node - They have to be protected.For instance, an industry owner which may be releasing harmful substance to water resources may intercept the data transfer from a node situated in a water source near the industry and send fake data to cover up their actions

2) User information stored in the central server

3) Login requests to the central server

Most of the above sensitive data can be encrypted to ensure security.

Project overview video