Professional Documents
Culture Documents
A PROJECT REPORT
ON
“PYTHON BASED
WATER
MONITORING
SYSTEM USING
RASPBERRY PI”
BACHELOR OF ENGINEERING
Water pollution is one of the biggest fears for the green globalization. In order
to ensure the safe supply of the drinking water the quality needs to be
monitored in real time.
In this project “Python Based Water Monitoring System” we design and
develop a low cost system for real time monitoring of the water quality using
IOT,(internet of things).The system consist of several sensors used to measuring
physical and chemical parameters of the water. The parameters such as
temperature, PH, turbidity, flow sensor of the water can be measured. The
measured values from the sensors can be processed by the core controller.
The measured values from the sensors can be processed by the core controller.
The Raspberry Pi model can be used as a core controller. Finally, the sensor
data can be viewed on internet using WI-FI system.
i
TABLE OF CONTENTS
ABSTRAC i
T
ACKNOWLEDGEMENT ii
LIST OF FIGURES iv
LIST OF TABLES v
1 INTRODUCTION 1-2
5 IMPEMENTATION 23
6 TESTING 41
7 SNAPSHOTS 50-54
8.1 Conclusion 55
REFERENCES 56-58
PAPER PUBLISHED
iii
LIST OF FIGURES
2.5 Raspbian OS 12
2.6 Raspberry Pi 13
3.2 PH sensor 15
Snapshot-1
Snapshot- 31
2
Snapshot-3 32
6 33
Snapshot-
4
iv
LIST OF TABLES
Detection
v
Water Monitoring System
Chapter 1
Preamble
1. Introduction
In today’s world water is an essential resource without which we cannot live without,
hence it can be said that water is a critical resource in the lives of people who both will
have benefits from its use and who are harmed by its misuse and unpredictability
(flooding, droughts, salinity, acidity, and degraded quality). Water pollution is one of the
biggest fears for the green globalization. In order to ensure the safe supply of the
2. Relevance of theproject
Theproject is based onsolving the issues related with the pollution levels of water by
identifying the underlying issues present in the quality of water by analyzing the intrinsic
issues which cause the quality of water from a different source to degrade and cause
in the water in most Indian localities which cause a lot of harm to the populace mainly
in rural areas and areas where water is not readily available or easy to check.
1.3 Purpose
It has been seen that the quality of the water being distributed to most areas (both rural
and urban) has been deteriorating with time as the water sources from where the water
is being drawn gets polluted, as well as lapses in the part of civic body responsible for the
maintenance of the quality of water. It may also be due to no proper maintenance of the
machines which perform the actions necessary to clean or improve the quality of water
Thisproject works on achieving proper evaluation of the quality of water with respect to
some of the most basic parameters i.e. the temperature will be monitored so that the
climatic changes don’t affect the water. The PH will be monitored so that it remain in the
most optimal range and is fit for human consumption and prevents the growth of disease
causing microbes. The flow of the water is monitored so that there are no disruptions or
leaks and also to maintain a specific flow rate which prevents the growth of fungal and
small plants in the transport network. Finally The turbidity of the water is monitored so
that it gives us a measure of the amount of impurities in the water and if needed it can
prompt the required action to change r modify the quality of water if its not in the
permissible range. A major advantage of the system is the real time monitoring of the
quality of the water (i.e:-its immediate quality is monitored) which gives us ability to
immediately determine if the water is really safe for consumption or not. The system
and see if there should be any additional measures taken to clean or improve the quality
of the waterCollegeofEngineering
NewHorizon 2018-2019 2
Water Monitoring System
additional equipment or not, which in turn helps us to save money and time.
This project is executed by considering all the sensor values from the sensors are appropriately
taken. These values contain the parameters of the water sample being tested such as
In addition to the parameters listed above some additional details can also be gained by the
use of simple scientific knowledge. For example the density of water can be found using the
flow rate of water, which can in turn be used along with the temperature sensor values to
find if the water is contaminated by specific bacteria which can exist in the water sample only
if specific requirements for their survival are met. One such example is E-coli bacteria which
exists in the guts (intestine and stomach mainly) of humans and other animals. It needs a
relatively higher temperature and density to survive (the harmful strain of the bacterium E. coli
O157:H7, can cause severe abdominal cramps, bloody diarrhea and vomiting). Although it can
spread through other sources also one of its main transmission source is through water
sources
notes down the requirements for different kinds of impurities to provide the necessary
This project also requires that the water from a source to be passed with careful
If the water that passes through the sensors passes the required permissible safety
requirements of the locality then it can be declared as safe for human use.
5. Problem definition
increasing at an alarming rate and has become a critical issue which hinders the growth
of the populace and its affecting the effective working of thecities as a whole.
Oneofthemajor reasons for this is the pollution of most water bodies and no proper methods
6. Problem explanation
The quality of water has deteriorated a lot as can be seen by how most lakes in our cities
are frothing with foam due to the impurities released into the lakes. The water must
definitely be treated to make it fit for consumption and daily use. Moreover, we should
have a means to measure the quality in terms of parameters which we can easily
understand and monitor the quality in real time. Now that there is a large amount of
people fussing about water especially in summer, thegovernmentt has started identifying
few cases where the water is not treated before use and are in need of a solution to
identify the reasons for this growing amount of pollution to the water sourcesin thecity.
supply water to the neighbourhoods. Since water is supplied by private vendors also in
most areas due to a acute water shortage, the quality of the water is being affected
adversely and in turn leading to a lot of ailments. Although in the early stages its not
visible in everyone and only people with weak immune systems such as elderly people or
new born infants are affected, if its allowed to grow it will definetly lead to an epidemic
of massive proprtions. Hence the need for proper methods to identify the quality of
water.
7. Objective of thestudy
This project focuses on the above mentioned problems by introducing a dynamic IOT Python
based Water monitoring system using Raspberry pi to identify the water Level, amount of
impurities, PH variations & Detect the presence of Bacteria. The Water wastage and Purity of
8. Existing system
In the current system, water sample is taken from the source and examined in the
1.8.1 Limitations
The system which is implemented and is deployed across the country has certain
▶ The experts in the lab measure the sample and give a report to the concerned authorities before
the water is sent to the consumers if it passes the QA testing . If the water sample gets
contaminated during the transfer to the customer it cannot be detected.
The consumer is not made aware of the details of the water sample like its components .
▶ The propose model is a simple water levels / Leaks and Impurities sensing and sending the
data to the WINGZ gateway or directly to server using GSM. The C-mote which measures
the level sends the collected data to the WINGZ through ZigBee/6LoWPAN and UI or a web
application for WINGZ or any platform can be developed to monitor the data obtained from
▶ Data analytics can also be implemented on the gateway side to study the pattern of usage
in storage tanks or water level changes in natural water bodies. There are many types of
▶ Based on the requirement like measuring range, output (ADC, I2C, UART, Bio etc…) the
sensor has to be selected. Once the sensor is selected and procured, the embedded C
program has to be implemented in C-mote to obtain the water level data from sensor and
communication link between the C-mote and WINGZ using ZigBee/6LoWPAN or GSM has to
be established.
On the WINGZ gateway a simple UI app or middleware using C, C++, python can be developed
to analyse the data or to send the data to the back end server. Water quality sensors like pH,
chlorine, turbidity and flow sensors can also be included with the system to monitor those
parameters.
Advantages
The proposed system tackles the problems mentioned in the existing system such as:
The system provides real time quality measure of the water sample.
Easily deployable.
Chapter 2
Literature Survey
Internet of Things (IOT) is determined as the network of environmental objects which includes
devices, homes, motors which are embedded with sensor, micro-controller, and community
associativity
It helps combine objects which can then exchange statistics. IOT is a gadget of interrelated
computing gadgets, virtual machines, objects, animals or people with specific identifiers and
ability to transfer statistics over a community with none human-to-human or human-to-pc
interplay.
IOT includes net-enabled smart devices that use sensors, embedded processor and
hardware to retrieve, ship and get entry to information they gather by from their
environments.
IOT gadgets share the sensor records they acquire by using connecting to an IOT gateway to
the device where information is both sent to the cloud to be analyzed or analyzed domestically.
The real-global programs of net of factors, tiers from purchaser IOT and organization IOT to
production and commercial IOT.
ATM (Automated Teller Machine) was one of the earliest IOT enabled devices ever to be
introduced. Wearable devices like fitness trackers, smartwatches are connecting extra regular
customers to the IOT. The generation of internet-linked garb is coming. Smart homes are not a
factor for future anymore. Human beings have already commenced adopting smart home, home
equipment and home automation gadgets.
2. Python
Python is dynamically typed and garbage-collected.
It supports various types of programming concepts which includes procedural, object-oriented, and
functional programming and also features a comprehensive library.
Widely used to create web applications on server and also used widely to develop applications and mobile
games.
It is high level multi purpose programming language that is widely used in the current industry
It will seem that there are quite some components to consider when you start plotting with this
Python data visualization library.
Sometimes it is even discouraging seeing the amount of code that is necessary for some plots, not
knowing where to start and which components you should use. this Library is very flexible and has a
lot of handy, built-in defaults that will help you out tremendously.
You don’t need much to get started: you need to make the necessary imports, prepare some data,
and you can start plotting with the help of the functions When you’re ready, don’t forget to show
your plot using the functions.
The anatomy of a Matplotlib plot: is it subplot? Or the Axes? What is it exactly?
Plot creations
Plotting routines
Basic Plot Customizations
Saving Showing Clearing the plots
The main point of Matlib port is to run along with python by showing the above forms of results which is
to be conducted in project.
Data visualization is defined as the process in which the data is represented visually to make the context
The process of visually representing data in forms of graphs, charts, Flow diagram, pie chart, are called
Data visualization.
Data visualizations is viewed widely by many disciplines because it is a part of modern equivalent for visual
communication.
It ensures the viewers to learn more about the project analyze, study and gasp the detail of it.
This pictorial representation helps in understanding the complex data sets since it is represented
visually.
2.5 Raspbian OS
Raspbian os is a special type of operating system which helps in functioning the device
operations necessary for customizing the software.
Basically the Raspbian is the Foundations first operating system which is more stable.
There are several version of Raspbian which includes Raspbian stretch and Raspbian Jessie
2.6 Rasberry pi
Raspberry pi is low cost seized computer which plugs into monitor or Tv which is handy on
keyboard and mouse.
The raspberry pi is device which enables all age people to learn and explore it.
The Raspberry pi is one special type of device which enable the user to explore the
software and run the applications based on the customization.
Chapter 3
System RequirementSpecification
The Python based Water monitoring system using Raspberry pi is developed to serve as a
measure to find all the parameters of water which are needed to find out if the water is
indeed safe for human consumption and general use. The system contains the integration
of several sensors namely PH , temperature ,turbidity, flow sensor to find out their
values and then determine if the water is indeed safe for human consumption . Other
parameters needed can be derived from the known parameters and then we can
The project revolves around the fact that the parameters of water being tested remain
constant during the entire process of testing. All the sensors must first be verified to see
if they are working in their optimal range and if needed, the necessary calibrations are to
be done as required. The data are kept in databases for further analysis using machine
learning algorithm.
The normal range of all the sensors must be taken into account before implementing it.
The sensors range, version info, input voltage and the correct fittings of the connections
must be verified before the system can be used and implemented and the necessary
parameters can be read from the sensor and other operations can be performed.
1. Hardware
requirements PH-
SENSOR
PH, normally used for water measurements, is a measure of acidity and alkalinity, or the caustic and
base present in a given solution.
It is generally expressed with a numeric scale ranging from 0-14. The value 7 represents neutrality.
The numbers on the scale increase with increasing alkalinity, while the numbers on the scale decrease
with increasing acidity.
Each unit of modification represents a multiple modification in acidity or pH.
The pH value is also equal to the negative logarithm of the hydrogen-ion concentration or hydrogen-
ion activity.
The sensor used by us in the implementation of our project is a combination pH sensor as
The most common technique of measurement hydrogen ion concentration is to use associate chemical
science hydrogen ion concentration sensing element.
Combination hydrogen ion concentration sensing elements area unit a sort of chemical science
hydrogen ion concentration sensor that feature each a measurement conductor and a reference
conductor.
The measurement conductor detects changes within the hydrogen ion concentration price whereas the
reference provides a stable signal for comparison.
A high impedance device, known as a pH meter, is used to display the millivolt signal in pH units.
Combination pH sensor technology can be used to build different products, including laboratory pH
sensors and industrial or process pH sensors. The pH sensors have a wide variety of uses.
Temperature Sensor
Temperature detection is that the foundation for all advanced varieties of temperature
management and compensation.
The temperature detection circuit itself monitors ambient temperature. It can then notify the
system either of the actual temperature or, if the detection circuit is more intelligent, when a
temperature control event occurs.
When a particular extreme temperature threshold is exceeded, preventative action can be taken by the
system to lower the temperature.
An example of this is turning on a fan.
Similarly, a temperature detection circuit will function the core of a temperature compensation perform.
Consider a system such as liquid measuring equipment. Temperature, in this case, directly affects the
volume measured. By taking temperature into account, the system can compensate for changing
environment factors, enabling it to operate reliably and consistently.
3. Thermocouple
This type of temperature sensors consists mainly of two wires of different metals connected at two
points.
The variable voltage between these 2 points reflects proportional changes in temperature.
Thermocouples are nonlinear, requiring conversion once used for temperature management and
compensation, generally accomplished employing a search table.
Accuracy is low, from 0.5 °C to 5 °C. However, they operate across the widest temperature range, from -
200 °C to 1750 °C.
4. Semiconductor-based sensors
Turbidity Sensor
Turbidity sensors live the quantity of sunshine that's scattered by the suspended solids in water.
As the quantity of total suspended solids (TSS) in water will increase, the water’s turbidness level (and
cloudiness or haziness) will increase.
Turbidity sensors are put to use in streams and water gauging, waste matters and effluent
measurements, managing instruments for subsiding ponds, sedimentary transportation research, and
lab experiments.
Flow Sensor
Flow sensors are devices used for measure the rate of flow or amount of a moving liquid or gas.
The water flow sensing element consists of a plastic valve body, a water rotor, and a hall-effect
sensor. When water flows through the rotor, rotor rolls. Its speed changes with different rate of flow.
The hall-effect sensor outputs the corresponding pulse signal. The figure given below
shows the cross-section of the sensor we have incorporated into our project.
Python
The language of Python programming is freely available and makes it almost as easy to
solve a computer problem as you write your thoughts on the solution. It is possible to
write the code once and run on almost any computer without changing the program. It is
level. Python allows programmers to create simple or complex programs using different
programming styles, get faster results, and write code almost as if they were speaking in
a human language. Google Search, YouTube, BitTorrent, Google App Engine, Eve Online,
Maya and iRobot machines are some of the popular systems and applications that Python
used during development. Python has been around for over 20 years, so many code
written in Python has built up over the decades and, being an open source programming
language, a lot has been released for use by others. You can install this software to use
your own projects on your system. For example, if you want to use Python to build scripts
with command-line arguments, you would install and import the "click" library into your
scripts.
Arduino
Arduino is associate ASCII text file physical science platform supported easy-to-use hardware and
software package.
Arduino boards are able to scan inputs - lightweight on a sensing element, a finger on a button,
or a Twitter message - and turn it into an output -
activating a motor, turning on an LED, publishing something online.
You can tell your board what to try to by causation a collection of directions to the
microcontroller on the board.
To do therefore you employ the Arduino programing language (based on Wiring), and the
Arduino Software (IDE), based on Processing.
Over the years Arduino has been the brain of thousands of comes, from everyday objects to
complex scientific instruments.
Arduino was born at the Ivrea Interaction style Institute as a straightforward tool for quick
prototyping, aimed at students without a background in electronics and programming.
As before long because it reached a wider community, the Arduino board started changing
to
adapt to new needs and challenges, differentiating its offer from simple 8-bit boards to products
for IoT applications, wearable, 3D printing, and embedded environments.
All Arduino boards ar fully ASCII text file, empowering users to build them independently and
eventually adapt them to their particular needs.
The software package, too, is ASCII text file, and it's growing through the
contributions of users worldwide
3. Input Requirements
The details of the Arduino- uno are the same as any basic Arduino, hence the drivers required
are simple ones which are available in the website of Arduino. They are free to download
and use . The Arduino takes in 5V power supply in the form of uninterrupted power directly
from the Raspberry pi where its connected and passes the necessary input to the sensors as
and when required by them.
4. Output Requirements
All the sensor output taken or sensed by the Arduino are directly passed to the
Arduino board which is interfaced or connected with the Raspberry pi. The data is
passed to the Pi which can be viewed on the serial Monitor section of the Python
software section.
5. Language specification
Python
Python was released on July 3rd, 2010 which included different set of updation and
changes than its former version. It has two sting types which are Unicode strings and
non- Unicode strings. The xrange() function is added to be used to create iterable
objects. There are separate int and long types for non-floating-point numbers. It
included the support for Tkninter and a backport of the memory view object. It has
the added feature of dictionary view and new syntax for nested with statements. It
has much longer period time of maintenance when compared to the earlier version
of
2.x which will be supported by the core development team which means that it will
be receiving the security updates and other bug fixes until at least 2020 which almost
10 years from the date of initial release
Chapter 4
The IOT based system to monitor the quality of water using the sensors to determine
the parameters is built and can be used to measure some of the basic parameters.
System Architecture:-
Chapter 5
Implementation
“Python based Water monitoring system using Raspberry pi” is a system used to measure
Implementation of the project is done one sensor at a time so that it is easy to get the
that can function independent of each other. Many such modules are combined/integrated
togetherto performthe tasks rendered by them and give the output required by them
which
Modules in “Python based Water monitoring system using Raspberry pi” are listed
below:
1. RPH sensor module to determine the ph of the water which we are testing.
sections. As a prototype the above modules are implemented in a simpler and cost-
Code snippets:-
#include <OneWire.h>
#include <DallasTemperature.h>
#define ONE_WIRE_BUS 5
OneWire oneWire(ONE_WIRE_BUS);
DallasTemperature sensors(&oneWire);
float Celcius=0;
float Fahrenheit=0;
float voltage=0;
void setup(void)
void setup(void)
{
Serial.begin(9600);
sensors.begin();
void loop(void)
{
sensors.requestTemperatures();
Celcius=sensors.getTempCByIndex(0);
Fahrenheit=sensors.toFahrenheit(Celc
ius);
for(int i=0;i<10;i++)
{
buf[i]=analogRead(analogInPin);
delay(10);
}
for(int i=0;i<9;i++)
{
for(int j=i+1;j<10;j++)
{
if(buf[i]>buf[j])
{
temp=buf[i];
buf[i]=buf[j];
buf[j]=temp;
}
NewHorizon CollegeofEngineering 2018-2019 27
Water Monitoring
System
}
}
for(int i=2;i<8;i++)
avgValue+=buf[i]
;
float pHVol=(float)avgValue*5.0/1024/6;
float phValue = -5.70 * pHVol + 21.34;
Serial.println(phValue);
Serial.print("pH");
Serial.print(" C ");
Serial.print(Celcius);
Serial.print(voltage);
Serial.print("V");
delay(10000);
}
import serial
import time
import csv
import
numpy as
np
import
matplotlib.p
yplotNewHorizon
as plt CollegeofEngineering 2018-2019 28
Water Monitoring System
ser = serial.Serial('/COM6',9600)
ser_bytes = ser.readline(10)
print (ser_bytes)
ser.flushIn
put()
while True:
try:
ser_byte
s=
ser.rea
dline()
decoded_bytes = float(ser_bytes[0:len(ser_bytes)-2].decode("utf-8"))
print(decoded_bytes)
temp = float(decoded_bytes(1:3))
turb = float(decoded_bytes(4:6))
pH = float(decoded_bytes(6:8))
with open("test_data.csv","a") as f:
writer = csv.writer(f,delimiter=",")
writer.writerow([time.time(),decoded_bytes])
except:
print("Keyboard Interrupt")
ser.close()
break()
plt.xlabel('time (s)')
plt.ylabel('Celsisus (C)')
plt.title('Temperature')
plt.grid(True)
NewHorizon CollegeofEngineering
plt.savefig("Temperature.png") 2018-2019 29
plt.show()
Water Monitoring
System
plt.xlabel('time (s)')
plt.ylabel('Volatge (C)'
plt.title('Turbidity')
plt.grid(True)
plt.savefig("Turbidity.png")
plt.show()
plt.xlabel('time (s)')
plt.ylabel('pH ')
plt.title('pH')
plt.grid(True)
plt.savefig("pH.png")
plt.show()
Serial.begin(9600);
sensors.begin();
int sensorValue = analogRead(A1);
voltage = sensorValue * (5.0 / 1024.0);
}
void loop(void)
{
sensors.requestTemperatures();
Celcius=sensors.getTempCByIndex(0);
Fahrenheit=sensors.toFahrenheit(Celcius);
for(int i=0;i<10;i++)
{
buf[i]=analogRead(analogInPin);
delay(10);
}
for(int i=0;i<9;i++)
{
for(int j=i+1;j<10;j++)
{
if(buf[i]>buf[j])
{
temp=buf[i];
buf[i]=buf[j];
buf[j]=temp;
}
n = 256
X = np.linspace(-np.pi, np.pi, 256, endpoint=True)
C,S = np.cos(X), np.sin(X)
plt.plot(X, C)
plt.plot(X,S)
plt.show()
while True:
try:
ser_byte
s=
ser.rea
dline()
decoded_bytes = float(ser_bytes[0:len(ser_bytes)-2].decode("utf-8"))
print(decoded_bytes)
temp = float(decoded_bytes(1:3))
turb = float(decoded_bytes(4:6))
pH = float(decoded_bytes(6:8))
with open("test_data.csv","a") as f:
writer = csv.writer(f,delimiter=",")
writer.writerow([time.time(),decode
d_bytes])
except:
print("Keyboard Interrupt")
ser.close()
break()
Chapter 6
EXPERIMENTAL RESULTS
The snapshots of each module’s outcome are included below.
i) For
Dusty water:-
Temperature Sensor:-
Flow Sensor:-
Flow Sensor output is measured in terms of amount of water flowing per unit time.
The unit which is used here is litres/hour.
Since the amount of water which we are using is too little the measurements are in
te range of 0-0.2 l/h.
PH Sensor : -
Soap water:-12.3-14
Chapter 7
Testing
Testing helps find and fix the bugs in the software which prevent the program from performing as
required or as efficiently as needed.
Bug fixing in the early development stages helps to save a lot of time and effort.
Testing is very essential tomake sure that the final output product willwork well without any
errors oncedeployed.
Validation is the process of ensuring that the software built is in accordance with
7.2 Testing
Levels
1. Functional testing
project.
Types:
Unit testing: Each unit/module ofthe project is tested one by one to check
for bugs.
If any bugs found during the process by the testing team, it is reported once
Integration testing: All the units are nowintegrated as one single unitandchecked
for bugs. This also checks if all the modules are working properly with each other.
Sanity testing: It ensures change in the code doesn’t affect the working of
the project.
Beta/Acceptance testing: User level testing to obtain user feedback on the product.
Performance testing: Checks for speed, stability and reliability of the software, hardware
with UI.
Security testing: Checks if thesoftware has vulnerabilities and if any, fix them.
Stresstesting:Thistestingcheckstheperformanceofthesystemwhenitisexposedto
different stresslevels.
Usabilitytesting: Type of testing checks the easily the software is being used by
the customers.
or external standards.
White box testing is performed by the developer while developing the various modules for the
software. This type requires thorough knowledge about the software i.e. the
internal logic in the program that is used and the structure of the code used in the program.
Unit Testing is the very first level of testing of thesoftware where theminute testable partsofanewly
finishedsoftwarepartsaretested.Thisisusedtovalidatethateachunit of the software performs as designed.
Unit-1
Temperature N Y Y Y Y
Sensor
Caliberation- Y/N
Turbidity N N N Y Y
Sensor
Caliberation– Y/N
pH Sensor Caliberation– N N Y Y N
Y/N
Actions
Model Integration– X TC EC EC TC
TC/EC
T/F
Visual Depiction of X F T T F
Y-
Yes
N-
No
TC-
True
Coun
t
The testing
method used
for Unit testing
is White Box
testing method
.
OOP concepts
supported by
unit test
framework:
test
fixture:
Atestfixtureisusedasabaselineforrunningteststoensurethattestsare
conducted in a fixed environment for repeatable results.
Examples :
Atestcaseisasetofconditionswhichisusedtodeterminewhetherasystem under
test workscorrectly.
test suite:
NewHorizon CollegeofEngineering 2018-2019 41
Testsuiteisacollectionoftestcasesthatareusedtotestasoftwareprogramto showthatit hassome
specified set of behaviours byexecuting theaggregated tests together.
Water Monitoring
System
to carry out testing on the unit by providing input and verifying the output manually into
automated testing.
INTEGRATIONTESTINGisasoftwaretestlevelthatcombinesandtestsindividual units as a
group. The purpose of this test level is to identify errors in the interaction of integrated
units. In Integration Testing, test drivers and test stubs are usedto assist.
Testing the interfaces between units / modules is the main function or goal of this test.
created and tested, combining of those “Unit Tested” modules are started and start
doing the integrated testing. The main function or goal of this testing is to check the
functions between the units/modules. The individual modules are first tested in isolation.
Once the modules are unit tested, they are integrated one by one, till all the modules are
integrated, to check the combinational behavior, and validate whether the requirements are
Here we should understand that integration testing does not take place at the end of the cycle,
butis carriedoutatthesametimeasthedevelopment.Somostofthetime,not all themodules are
available for testing and here'swhatthechallenge is totestsomething
UI – User Interface module, which is visible to the end user, where all the inputs are given.
BL– Is
the Business Logic module, which has all the all the calculations and business specific
methods.
VAL – Is the Validation module that has all the input correctness validations.
CNT – Is the content module that has all the static content specific to the user's inputs.
EN – Is the Engine module, this module reads all the data that comes from BL, VAL and
CNT
module and extracts the SQL query and triggers it to the database. Scheduler – Is a module
that schedules all reports (monthly, quarterly, semi-annually & annually) based on user
selection
DB – Is the Database.
Now, having seen the architecture of the entire web application, as a single unit,
1. Howthe BL, VAL and the CNT module will read andinterpret ate the data entered in
the UImodule?
2. Is BL, VAL and CNT module receiving the correct data from UI?
4. How will the EQ read the data and extract the query?
Big bang integration testing was carried out to test the flow of data and interactions
between the modules in the project.
As theproject was demonstrated as aprototype big bang approach is the onethat was
1. Bottom-up approach
1. The output from the LPR system is testedfor accuracy andif it’s in the acceptable string
format.
2. The occupancy count is determined based on the vehicle and count is processed
fortollgeneration.
4. The dynamic toll along with vehicle details, route chosen and time stamp is updated in a
column-key of the database for further queries.
5. System testing
System Testing is a software test level that tests a complete and integrated software. This test
is intended to evaluate the compliance of the system with the specified requirements. Testing
system requirements: The agenda is to test if the system serves the initial requirements
stated, asin:
If,avehiclepassesbythetollgate,theimagewiththevehiclenumberplatetobe
captured.
The capture image to be processed and the number plate to be detected and the
number to be predicted and access the details of the vehicle from the authorized
database.
car else just consider the route chosen and the type of the vehicle.
Chapter 8
8.1 Conclusion
Monitoring of Turbidity, PH & Temperature of Water makes use of water detection sensors with
unique advantage and existing GSM network. The need to monitor these values of water arises
with the rise in the risk caused due to the current water quality and standards of water available
for drinking, domestic and household purposes. Even if we humans get adapted to the current
standards and quality of water content, there are many other living organisms and plants that
need a good supply of clean to water to survive. The water quality monitoring is performed
automatically by the system and it is low in cost and does not require people on duty. So the
water quality testing is likely to be more economical, convenient and fast. The system has good
flexibility. This system can be used to monitor other water quality parameters only by replacing
the corresponding sensors and changing the relevant software programs. The working is simple,
the system can be put to better and more use to monitor hydrologic, air pollution, industrial and
agricultural production and so on. It has widespread application and an extension value. In this
project, a IOT based bio monitoring system is proposed which uses sensors to get the most
essential values which can be used to obtain other parameters of all the sensors that are being
used in the model. The project serves its purpose well to cater the needs of current and future
generations. The fact that it focuses on the most sensitive and basic need for survival makes it
that valuable and resourceful. The project focuses completely on something that goes
completely unnoticed and ignored, the quality of water being consumed and used for other
needs. If the quality of water of many places were known, people would immediately stop
consuming or avoid using that particular water due to how harmful and dangerous it may turn out
to be for daily usage. People moving into new locations have no idea about the water
quality and standards of that place, and need a source to monitor the same, this project
would definitely prove to be of great use in such circumstances. Also, knowledge of such quality
of water would help make changes and provide better water henceforth, as prevention is always
The data that is collected over time can be sent to a system or program that can be used to
obtain additional parameters such as density, amount of bacteria the viscosity of water etc.
and then these parameters can be analyzed and by the software. This project serves as a great
purpose to current and future generations. Water monitoring in these times of having irregular
and low quality water supply proves to be very essential to household and domestic needs.
The current generation having suffering a lot of water pollution and unsafe water, definitely
need an approach to keep track of the water that they are consuming and using for domestic
needs. The future however, this project can be implemented just the way it is or also with
major and minor changes to suit the needs of the future generations. The fact that there are a
lot of dying water bodies and the need for water arising every day this project would indeed be
REFERENCES:
1. Dr. Mohan Kumar S & Dr. Balakrishnan, Classification Of Breast Mass Classification – CAD System
And Performance Evaluation Using SSNE, IJISET – International Journal of Innovative Science,
Engineering & Technology, Vol. 2, Issue 9, 417-425, ISSN 2348 – 7968
2. Dr. Mohan Kumar S, Dr. Balakrishnan, Classification Of Breast Mass Classification – CAD System
With Performance Evaluation, International Journal of Engineering And Computer
Science, Volume 4, Issue 09, 14187-14193, ISSN 2319-7242, September, 2015
3. Dr. Mohan Kumar S, Dr. Balakrishnan, Classification Of Breast Microcalcification- CAD System
And Performance Evaluation Using SSNE, International Journal of Advanced Research in Computer
Science and Software Engineering, Volume 5 , Issue 9, 824-830, ISSN: 2277 128X, Sep- 2015
www.codenotes.com
www.python.org
www.w3schools.com