Professional Documents
Culture Documents
2017
Done by
ABHISHA P. M. - ETAOEEC004
ARUN R. - ETAOEEC017
Engineering
First and foremost we thank the Almighty for His infinite blessings that He
has showered on us in every moment of developing this work.
Project WATER PURITY MONITORING AND NOTIFICATION SYS-
TEM is a success carved out of our hard work along with the encouragement
and co-operation of a number of people. We are greatly indebted to each and
everyone of them.
We would like to express our sincere gratitude to Assistant Professor Latha
K. N our guide who always motivated and advised us throughout the project.
We would like to acknowledge the project co-ordinator Assistant Profes-
sor Job Chunkath for his valuable advice and whole hearted co-operation.
We would also like to thank Professor Mrinalini C P, the Head of the De-
partment, Department of Electronics and Communication Engineering, Govt.
Engineering College, Thrissur for facilitating us with all the requirements of
the project wholeheartedly. The cooperation offered by the lab staff of Envi-
ronmental Laboratory, Civil Department, Govt. Engineering College, Thrissur
and other department personnel is also worth mentioning.
Our friends who helped us throughout the strenuous process of project
completion deserve a token of appreciation and our deepest gratitude. We
also thank all those friendly souls whom we unfortunately failed to mention.
AATHMAY PUTIYAN
ABHISHA P. M.
ARUN R.
ARYA VISWANATH
i
ABSTRACT
ii
Contents
1 INTRODUCTION 1
1.1 OBJECTIVE . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.2 PROJECT MOTIVATION . . . . . . . . . . . . . . . . . . . . . 2
1.3 IMPLEMENTATION . . . . . . . . . . . . . . . . . . . . . . . . 2
2 LITERATURE REVIEW 3
2.1 TESTING OF PARAMETERS . . . . . . . . . . . . . . . . . . 3
2.1.1 Turbidity (Suspended Solids) . . . . . . . . . . . . . . . 3
2.1.2 Estimation of Calcium and Magnesium Ions
(Total Hardness) . . . . . . . . . . . . . . . . . . . . . . 4
2.2 TEST KITS AVAILABLE IN INDIA . . . . . . . . . . . . . . . 4
3 GENERAL DESCRIPTION 8
3.1 BLOCK DIAGRAM . . . . . . . . . . . . . . . . . . . . . . . . 8
3.2 BLOCK DIAGRAM DESCRIPTION . . . . . . . . . . . . . . . 8
4 HARDWARE DESCRIPTION 9
4.1 ARDUINO UNO . . . . . . . . . . . . . . . . . . . . . . . . . . 9
4.1.1 Power . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
4.1.2 Memory . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
4.1.3 Input and Output . . . . . . . . . . . . . . . . . . . . . . 11
4.1.4 Communication . . . . . . . . . . . . . . . . . . . . . . . 11
4.2 GSM SIM900A MODULE . . . . . . . . . . . . . . . . . . . . . 12
4.2.1 GSM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
4.2.2 GSM MODULE . . . . . . . . . . . . . . . . . . . . . . . 13
4.3 TURBIDITY SENSOR . . . . . . . . . . . . . . . . . . . . . . . 15
4.3.1 LDR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
4.3.2 LED . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
4.3.3 Working of Turbidity Sensor . . . . . . . . . . . . . . . . 17
4.4 CONDUCTIVITY SENSOR . . . . . . . . . . . . . . . . . . . . 17
4.4.1 Working of Conductivity Sensor . . . . . . . . . . . . . . 18
5 CALIBRATION 20
6 CIRCUIT DESCRIPTION 22
6.1 CIRCUIT DIAGRAM . . . . . . . . . . . . . . . . . . . . . . . 22
6.2 CIRCUIT OPERATION . . . . . . . . . . . . . . . . . . . . . . 23
iii
7 FLOWCHART AND PROGRAMMING 24
7.1 FLOWCHART . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
7.2 PROGRAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
9 CONCLUSION 32
10 BIBLIOGRAPHY 33
11 APPENDIX A 34
12 APPENDIX B 36
13 APPENDIX C 39
iv
List of Figures
2.1 Nephelometer . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
12.1 SIM900A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
v
List of abbreviations
vi
LCD Liquid crystal display
SMT Surface-mount technology
Rx Receiver
GPIO General-purpose input/output
MMS Multimedia Messaging Service
PPP Point-to-Point Protocol
USSD Unstructured Supplementary Service Data
CSD Circuit Switched Data
PBCCH Packet Broadcast Control Channel
TCP Transmission Control Protocol
FTP File Transfer Protocol
vii
Chapter 1
INTRODUCTION
When we turn on the tap and fill up a glass, go for a dip in the ocean or fry
up a freshly caught fish from the local lake, most of us take it for granted that
these are all safe actions. The reality is that behind the scenes, scientists work
tirelessly to ensure that the quality of the worlds most valuable resource is
as high as possible. Water purification is the process of removing undesirable
chemicals, biological contaminants, suspended solids and gases from water.
The goal is to produce water fit for a specific purpose. Most water is disin-
fected for human consumption (drinking water), but water purification may
also be designed for a variety of other purposes, including fulfilling the require-
ments of medical, pharmacological, chemical and industrial applications. The
methods used include physical processes such as filtration, sedimentation, and
distillation; biological processes such as slow sand filters or biologically active
carbon; chemical processes such as flocculation and chlorination and the use of
electromagnetic radiation such as ultraviolet light. For water from lakes and
streams to coastal waters and estuaries, water quality monitoring is a critical
practice carried out in countries across the globe.
The purpose of the system is to ensure that the water surface is being pro-
tected from potential contamination. On an overview, water sample is analysed
using two sensors -
1.Conductivity Sensor
2.Turbidity Sensor
and the status of water is analysed and notification is sent to the user. Ba-
sically, the system measures the physicochemical parameters of water quality
like turbidity and hardness. The main constraints on the project was keeping
the budget low and making it user friendly.
1
B.TECH MINI PROJECT 2017
1.1 OBJECTIVE
Through this project we aimed at using technology for the most relevant
social issue prevailing today. By understanding the quality of water whether
it is turbid, hard or pure we can distinguish between the processing techniques
of water. By notifying the user about the purity level of water, the user can
be aware about the precautions to be taken. Thus we can reduce the health
issues related to it. Moreover this knowledge can be used to test the suitability
of water quality for its intended purpose.That is the more pure water can be
used for drinking, less pure can be used for agriculture etc. Thus the health
issues can be reduced as well as water conservation can also be done. In this
era of water scarcity and other water related health issues this low cost and
simple system will definitely be a boon.
1.3 IMPLEMENTATION
The system we proposed is a low cost, easy to implement one which con-
sists of two sensors, a microcontroller and a GSM (Global System for Mobile
Communication) module. The sensors are -
1.Turbidity sensor
2.Conductivity sensor
The sensor output is given to microcontroller where necessary analyzes is
done and is fed to the GSM. The GSM sends messages to the user notifying
whether the system is turbid or hard.
LITERATURE REVIEW
3
B.TECH MINI PROJECT 2017
Procedure:
I. Titration of sample:
25 ml sample is diluted to 50 ml with distilled water. 1-2 drops of buffer
solution are added (to give a pH of 10.0). 1-2 drops of indicator solution
are added and the solution is titrated with standard EDTA solution, with
continuous stirring till the end point is reached (blue color).
II. Calculation:
Hardness as mg CaCO3/L = [A x B x 100]/ ml sample
Where, A = ml titration for sample and B = mg CaCO3 equivalent to 1.00 ml
EDTA titrant
Calcium as mg Ca/L = A x B x 400.8/ml sample
A = ml titrant for sample
B = mg CaCO3 equivalent to 1 ml EDTA titrant at the calcium indicator end
point.
4. Developed by : Elico
Name of the kit : Water Quality Analyser
Method of Analysis : Through probes
Parameters that can be analysed : pH, temperature, dissolved
oxygen, conductivity
Power Supply : Two 9 volt battery
Weight : 6 kg
Size : Medium size VIP suitcase
Components : Single unit
GENERAL DESCRIPTION
8
Chapter 4
HARDWARE DESCRIPTION
9
B.TECH MINI PROJECT 2017
4.1.1 Power
The Arduino Uno can be powered via the USB connection or with external
power source is selected automatically. External power can come either from
an AC-to-DC adapter or battery. The adapter can be connected by plugging a
2.1 mm center positive plug into the boards power jack. Leads from a battery
can be inserted in the GND and VIN pin headers of the power connector. The
board can operate on an external supply of 6-20 volts. If supplied with less
than 7V, however, the 5V pin may supply less than 5V and the board may
be unstable. If using more than 12V, the voltage regulator may overheat and
damage the board. The recommended range is 7 to 12 volts. The power pins
are as follows:
• VIN: The input voltage to the Arduino board when it is using an external
power source. You can supply voltage through this pin or if supplying
voltage via the power jack, access it through this pin.
• 5V: This pin outputs a regulated 5V from the regulator on the board.
The board can be supplied with power either from the DC power jack (7-
12V). Supplying voltage via the 5V or 3.3V pins bypasses the regulator,
and can damage your board.
• 3.3V: A 3.3V supply generated by the on-board regulator. Maximum
current drawn is 50mA.
• GND: Ground pins
• IOREF: This pin on the Arduino board provides the voltage reference
with which the microcontroller operates. A properly configured shield
can read the IOREF pin voltage and select the appropriate power source
or enable voltage translators on the outputs working with 5V or 3.3V.
4.1.2 Memory
The ATmega has 32 kB (with 0.5 kB used for the bootloader). It also has
2KB of SRAM and 1 kB of EEPROM library).
4.1.4 Communication
The Arduino Uno has a number of facilities for communicating with a
computer, another Arduino, or other microcontrollers. The ATmega328 pro-
vides UART TTL (5V) serial communication, which is available on digital pins
0(RX) and 1(TX). An ATmega 16U2 on the board channels this serial com-
munication over USB and appears on a virtual common port to software on
the computer. The 16U2 firmware uses the standard USB COM drivers, and
no external driver is needed. However, on Windows, a .inf file is required. The
Arduino software includes a serial monitor which allows simple textual data
to be sent to and from the Arduino board. The RX and TX LEDs on the
board will flash when data is being transmitted via the USB-to-serial chip and
USB connection to the computer (but not for serial communication on pins
0 and 1). A Software Serial library allows for serial communication on any
of the Unos digital pins.The ATmega328 also supports I2C (TWI) and SPI
communication. The Arduino software includes a Wire library to simplify use
of the 12C bus; For SPI communication, use the SPI library.
4.2.1 GSM
GSM (Global System for Mobile communications) is an open, digital cel-
lular technology used for transmitting mobile voice and data services. GSM
differs from first generation wireless systems in that it uses digital technology
and Time Division Multiple Access (TDMA) transmission methods. GSM is
a circuit-switched system that divides each 200kHz channel into eight 25kHz
time-slots. GSM operates in the 900MHz and 1.8GHz bands in Europe and
the 1.9GHz and 850MHz bands in the US. The 850MHz band is also used for
GSM and 3GSM in Australia, Canada and many South American countries.
GSM supports data transfer speeds of up to 9.6 kbit/s, allowing the trans-
mission of basic data services such as SMS (Short Message Service). Another
major benefit is its international roaming capability, allowing users to access
the same services when travelling abroad as at home. This gives consumers
seamless and same number connectivity in more than 210 countries. GSM
satellite roaming has also extended service access to areas where terrestrial
coverage is not available.
GSM-900 uses 890 - 915 MHz to send information from the Mobile Sta-
tion to the Base Transceiver Station (uplink) and 935 - 960 MHz for the other
direction (downlink), providing 124 RF channels (channel numbers 1 to 124)
spaced at 200 kHz. Duplex spacing of 45 MHz is used. In some countries the
GSM-900 band has been extended to cover a larger frequency range. This ’ex-
tended GSM’, E-GSM, uses frequency range 880 - 915 MHz (uplink) and 925 -
960 MHz (downlink), adding 50 channels (channel numbers 975 to 1023 and 0)
to the original GSM-900 band. The GSM specifications also describe ’railways
GSM’, GSM-R, which uses frequency range 876 - 915 MHz (uplink) and 921
- 960 MHz (downlink). GSM-R provides additional channels and specialized
services for use by railway personnel. All these variants are included in the
GSM-900 specification.
The method chosen by GSM is a combination of Time- and Frequency-
Division Multiple Access (TDMA/FDMA). The FDMA part involves the di-
vision by frequency of the (maximum) 25 MHz bandwidth into 124 carrier
frequencies spaced 200 kHz apart. One or more carrier frequencies are as-
signed to each base station. Each of these carrier frequencies is then divided
in time, using a TDMA scheme. The fundamental unit of time in this TDMA
scheme is called a burst period and it lasts 15/26 ms (or approx. 0.577 ms).
Eight burst periods are grouped into a TDMA frame (120/26 ms, or approx.
4.615 ms), which forms the basic unit for the definition of logical channels.
One physical channel is one burst period per TDMA frame.
Design
R1 is taken as 3.3kohms in order to obtain a Vout in the range of 0-3V so that
variations can be easily monitored
∴ R1 = 3.3kohms
V cc = 5V
I = 30mA
R2 = 166.67ohms
∴ R2 ≈ 150ohms
4.3.1 LDR
Light Dependent Resistor (LDR) or a photo resistor is a device whose resistivity
is a function of the incident electromagnetic radiation. Hence, they are light
sensitive devices. They are also called as photo conductors, photo conductive
cells or simply photocells They are made up of semiconductor materials having
high resistance.
results in large number of charge carriers. The result of this process is more
and more current starts flowing through the device when the circuit is closed
and hence it is said that the resistance of the device has been decreased. This
is the most common working principle of LDR.
4.3.2 LED
The lighting emitting diode is a p-n junction diode. It is a specially doped
diode and made up of a special type of semiconductors. When the light emits
in the forward biased, then it is called as a light emitting diode.
Design
R3 is taken as 3.3kohms in order to obtain a Vout in the range of 0-3V so that
variations can be easily monitored.
CALIBRATION
Let Hout and Tout be conductivity sensor and turbidity sensor outputs
in volts.
Hardness in mg/L = 350 x (Hout - 1.35)
Turbidity in NTU = (-1030) x (Tout - 3)
20
B.TECH MINI PROJECT 2017
CIRCUIT DESCRIPTION
The Arduino Uno and the GSM SIM900A module are powered from
the AC mains using a 12V/1A DC adapter. The Turbidity sensor and the
Conductivity sensor are powered from the 5V pin of Arduino Uno. Pin num-
ber 10 of Arduino Uno is connected to the Rx of GSM.The output probes of
Conductivity and Turbidity sensor is connected to the analog pins A0 and A1
of Arduino Uno. Pin 10 of the Arduino Uno is connected to the Rx of the
GSM module and the two. They are both connected to a common ground.
22
B.TECH MINI PROJECT 2017
FLOWCHART AND
PROGRAMMING
7.1 FLOWCHART
24
B.TECH MINI PROJECT 2017
7.2 PROGRAM
The program is given below:
#include <SoftwareSerial.h>
SoftwareSerial mySerial(9, 10);
int H SensorValue, H temp, oldH Voltage=0;
float H Voltage, hardvalue;
int T SensorValue, T temp, oldT Voltage=0;
float T Voltage, turbidvalue;
void setup()
{
mySerial.begin(9600);
Serial.begin(9600);
delay(100);
}
void loop()
{
H SensorValue = analogRead(A0);
T SensorValue = analogRead(A1);
H Voltage = H SensorValue * (5.0 / 1023.0);
H temp = H Voltage;
T Voltage = T SensorValue * (5.0 / 1023.0);
T temp = T Voltage;
hardvalue = 350 * (H Voltage - 1.35);
turbidvalue = (-1030) * (T Voltage - 3);
if(hardvalue <0)
void NoWateraAlert()
{
mySerial.println(”AT+CMGF=1”);
delay(2000);
mySerial.println(”AT+CMGS=\”919645421093\”\r”);
delay(2000);
mySerial.println(”The sensor is out of water”);
delay(200);
mySerial.println((char)26);
delay(2000);
}
void HardAlert()
{
if(hardvalue >60)
{
SendText1();
}
else
{
SendText2();
}
}
void TurbidAlert()
{
if(turbidvalue >0 && turbidvalue <10)
{
SendText3();
}
else
{
SendText4();
}
}
void SendText1()
{
mySerial.println(”AT+CMGF=1”);
delay(2000);
mySerial.println(”AT+CMGS=\”919645421093\”\r”);
delay(2000);
mySerial.println(”The water is hard. The value of hardness in mg/L is ”);
mySerial.print(hardvalue);
delay(200);
mySerial.println((char)26);
delay(2000);
}
void SendText2()
{
mySerial.println(”AT+CMGF=1”);
delay(2000);
mySerial.println(”AT+CMGS=\”919645421093\”\r”);
delay(2000);
mySerial.println(”The water is not hard. The value of hardness in mg/L is ”);
mySerial.print(hardvalue);
delay(200);
mySerial.println((char)26);
delay(2000);
}
void SendText3()
{
mySerial.println(”AT+CMGF=1”);
delay(2000);
mySerial.println(”AT+CMGS=\”919645421093\”\r”);
delay(2000);
mySerial.println(”The water is not turbid. The value of turbidity in NTU is
”);
mySerial.print(turbidvalue);
delay(200);
mySerial.println((char)26);
delay(2000);
}
void SendText4()
{
mySerial.println(”AT+CMGF=1”);
delay(2000);
mySerial.println(”AT+CMGS=\”919645421093\”\r”);
delay(2000);
mySerial.println(”The water is turbid. The value of turbidity in NTU is ”);
mySerial.print(turbidvalue);
delay(200);
mySerial.println((char)26);
delay(2000);
}
29
B.TECH MINI PROJECT 2017
8.1 ADVANTAGES
1.Easy to Implement.
2.Cost Effective.
3.Low power consumption.
4.High Speed
5.User Friendly
8.2 DISADVANTAGES
1.Prone to fluctuations in water quality
2.Difficulties for implementing in flowing water. When implemented in flowing
water there is a continuous change in values.
CONCLUSION
The water purity monitoring and notification system was developed with
the objective to monitor the water quality and to notify the user about the
status of water. By developing this system the objective of the project was
fulfilled. By measuring the turbidity, the transparency of the water is pre-
dicted. That certainly gave the measure of solid and muddy particles in the
water. The conductivity sensor gave the measure of dissolved ions in the water
and thus the hardness of water was also calculated. The device is easy to use
with little or no training and can be used in most situations. Apart from the
engineering point of view, this project also has a wide range of socio-economic
applications. However there is still a great deal of work and several significant
problems that must be overcome before such a system can be brought into
every household in order to ensure that everyone has access to clean and safe
drinking water. Yet we strongly believe that we have made a relevant step in
order to achieve this future.
32
Chapter 10
BIBLIOGRAPHY
6)https://www.open-electronics.org/gsm-remote-control-part-4-sim900/
33
Chapter 11
APPENDIX A
ATMEGA328
34
B.TECH MINI PROJECT 2017
APPENDIX B
SIM900A
36
B.TECH MINI PROJECT 2017
Features-
General features:
• Dual-Band 900/ 1800 MHz
• GPRS multi-slot class 10/8
• GPRS mobile station class B
• Compliant to GSM phase 2/2+
Class 4 (2 W @ 900 MHz)
Class 1 (1 W @ 1800MHz)
• Dimensions: 24*24*3 mm
• Weight: 3.4g
• Control via AT commands (GSM 07.07 ,07.05 and SIMCOM enhanced
AT Commands)
• SIM application toolkit
• Supply voltage range : 3.1 - 4.8V
• Low power consumption: 1.5mA(sleep mode)
• Operation temperature: -40C to +85 C
Specifications for Fax:
Group 3, class 1
• Tricodec
i) Half rate (HR)
ii) Full rate (FR)
iii) Enhanced Full rate (EFR)
• Hands-free operation (Echo suppression)
• AMR
i) Half rate (HR)
ii) Full rate (FR)
Interfaces:
Compatibility:
AT cellular command interface
APPENDIX C
39