You are on page 1of 5

2016 International Conference on Computer & Communication Engineering

Automated Water Tank Filteration System Using LDR


Sensor
S.Noorjannah Ibrahim, M.S.Lokman Hakim, A.L.Asnawi and N.A. Malik
Department of Electrical and Computer Engineering
International Islamic University Malaysia
Kuala Lumpur, Malaysia.
noorjannah@iium.edu.my ; aniliza@iium.edu.my; norehaa@iium.edu.my
Abstract — In this paper, we present the development of an effective way to reduce maintenance cost, and simplify cleaning
automated water tank filtration system together with the study on works. This technique could further be included as one part of a
water turbidity using light dependent resistor (LDR) as the sensing smart home monitoring system.
unit. The system comprises of a microcontroller (Arduino Uno), a
micropump, a sensing unit and a water filter. The main objective of Here, we studied the turbidity of water i.e., measure of
this paper is to study the ability of LDR sensing unit in detecting water cloudiness using a light-dependent resistor (LDR) in an
changes in water and to define the turbidity value of the water. This automated water tank filtration system. The automated system
paper also described how the microcontroller controls the filtration comprises of a sensing unit, a microcontroller, a micropump and
system. Experiments on water turbidity was conducted under two a carbon water filter. The sensing unit consists of a light-
conditions, undisturbed flow and continuous flow, which will affect dependent resistor (LDR) and a light-emitting diode (LED),
the measurements of the LDR. Results show that the LDR readings positioned opposite one another inside a black PVC pipe. By
in continuous flow require more time in between reading so that the using an algorithm, the microcontroller (Arduino Uno) acquires
turbidity value can be consistent. Results show that the LDR signals from the LDR and subsequently controls the operations
sensing together with the microcontroller can create a system that of the liquid micropump to regulate water flow to the water
is capable of measuring water turbidity not only for water tanks
filter.
but also for other water resources e.g. rivers, lakes, treatment
plants etc. The implementation of an automated water filtration The implementation of an automated water filtration system
system can potentially help consumers in monitoring their water can potentially help consumers, water operators and concession
tanks and can be included in the smart home system. companies in monitoring water resources and could preserve
water resource in Malaysia.
Keywords – Automater Filtration System, LDR, turbidity, water
monitoring
II. RELATED WORKS
I. INTRODUCTION
A. Monitoring of water quality
Water is the most valuable resource in this world. Water is
essential for human existence and well-being. Human use water Water covers at least 2/3 of the surface of the earth. Water
for numerous purposes in daily activities, for instance in management is essential, particularly in monitoring the quality
domestic households, water is used for washing, bathing, of water. Water quality defines the condition of water in terms
cooking as well as drinking. Scheduled inspections and specific of chemical, physical and biological characteristics that are safe
cleaning procedures are required to ensure the cleanliness of for human consumption. Human activities such as
water in tanks particularly of high-rise buildings and residential manufacturing, mining and construction for example, have
areas. These maintenance works are risky to the water operator’s resulted with the vast majority of surface water are polluted with
personnel and can be costly to consumers. The cleaning toxic. In fact, the water must be treated before it is safe to be
procedures sometimes require chemicals that could also used by human. Hence, the complexity of water standard relates
contribute to the maintenance cost and water wastage during the closely to the ecology of the earth and human activities.
cleaning process. In Malaysia, the drinking water quality standard conforms to
A solution to prevent the risks of manual inspection and to the National Standard for Drinking Water Quality (2nd Version,
replace chemical related cleaning procedures is by implementing January 2004) issued by the Engineering Services Division,
an automated filtration system. The idea is to develop a system Ministry of Health Malaysia (MOH). The standard complies
that can detect water cloudiness that indicates the dirtiness of with the World Health Organization (WHO) guidelines for
water automatically. When this condition happens, the system drinking water quality. In this standard in place, the company
will start the filtration process. This is an innovative and who manage water treatment plant (WTP) and water distribution

978-1-5090-2427-8/16 $31.00 © 2016 IEEE 195


DOI 10.1109/ICCCE.2016.51
to consumers must comply with the standard stipulated in sensors; and 3) micropump that regulates water from the tank by
National Standard for Drinking Water Quality issued by the pumping out and flow the water to the filter as illustrated in Fig.
MOH shown in Table 1[1]. 1. The LDR sends data to the Arduino Uno and monitor using
serial communication. Arduino analyzes the measured values
TABLE I. WATER QUALITY STANDARD IN MALAYSIA [1] from the LDR and compares them to the reference value set to
trigger the liquid micropump ‘on’ and ‘off’. These measured
Parameter Recommended Raw Drinking Water values are used to calculate the turbidity inside the water tank
Water Quality Quality Standards and evaluate the functionality of the system.
Acceptable Value Maximum Acceptable
(mg/liter) Value (mg/liter)

E.Coli 5000 MPN/100ml 0 in 100 ml


Turbidity 1000 NTU 5 NTU
Color 300 TCU 15 TCU
pH 5.5-9.0 6.5-9.0
Free Residual - 0.2-5.0
Chlorine 3. Mircopump :
Regulate water in
and out of the tank.
The monitoring of the water quality supplied by WTP
operators and the treated water in the distribution system is
through sampling and testing methods by MOH. The common
technique of monitoring water quality requires samples of water 2. Mircocontroller :
to be taken and brought to the laboratory at specific duration of Receives and process
data from sensor.
time. The monitoring of water quality parameters such as pH, Activates micropump.
turbidity, conductivity, hardness, phosphate and nitrate is to
ensure the quality of water is within the stipulated standard [2].
1. Sensor unit :
LDR and LED are
Although, the amount of chlorine in water treatment plant is positioned inside a
black PVC pipe.
sufficient to kill germs, however, the WTP operators
recommend consumers to conduct water quality checking
periodically at their homes because the internal plumbing system
and metal storage tanks could cause sediments and discoloration Figure 1. Block diagram of the automated water tank filtration system.
in water. This issue has leads to the development of this project
that could solve and simplified the monitoring process of water A. LDR as turbidity sensor
in storage tanks at housing area. Therefore, there is a necessity
to develop a system that is capable of monitoring the quality of In this work, the Light dependent resistor or LDR acts as the
water in real time and could filter any sediments and sensor that indicates the cloudiness of water. The setup for
discoloration in water automatically. cloudiness sensing is by positioning light emitting diode or LED
opposite to the LDR. Made from a high-resistance
The majority of water monitoring system employed semiconductor, LDR is a variable resistor whose value decreases
with increasing incident of light intensity. If the incident of light
nowadays are for monitoring water resources such as lakes,
on LDR is of high frequency, photons absorbed by the
rivers, damp, water treatment/distribution plant etc. to ensure the semiconductor material provide enough energy to bound
quality of water for human use. Many works conducted shown electrons to jump into the conduction band. The more incidents
advancements in the monitoring system. Some use wireless of light on the LDR will result with more free electrons and
sensor network to assess multiple parameters [3]. Other works thereby lowering resistance of the LDR.
incorporate the water monitoring system with GSM or other
communications technique to allow real-time online monitoring The LDR and LED were located inside a black PVC pipe
of water quality [4-6]. However not many works were conducted with distance 1.8cm between one another shown in Fig. 1. The
to monitor water quality of water tanks at home. Hence, the PVC pipe is placed inside the water tank at 5cm from the bottom
work in this paper is to study water turbidity in water tank using of the tank. For the sensing unit to work, the PVC pipe needs
two openings as inlet and outlet for the water to pass through the
LDR as one factor to monitor water quality.
LDR and LED setup. Fig.2 illustrates the measurement circuit of
LDR voltage used to determine the turbidity of water. When the
III. METHODOLOGY LED illuminates in clear water, the LDR will send low voltage
to the analog input of Arduino Uno. In contrary, when murky
The automated water filtration system consists of : 1) sensor water flows, the LDR will send Arduino Uno a high voltage
unit; 2) microcontroller that receives and process data from instead.

196
Turbidity measurement due to relative light transmission VRo/x = VLDR*(5/ 1023) (Volts) (3)
can be defined by the absorbance logarithm value [7]:
The system also uses a relay circuit that functions as
A= log (To/Ti), (1) switching control so that the current does not overflow to the
Arduino board between ‘ON’ and ‘OFF’ operations of the
where To is the incident luminous intensity and Ti is the micropump. Relay controls one electrical circuit by opening and
transmitted luminous intensity. However, the resistance of LDR closing contacts in another circuit. For the micropump to works
is inversely proportional to To, hence the absorbance can be automatically, the LDR input must be set to a reference value in
simplified as [6]; Arduino. Any value that is below the reference will stop the
A= log (Rx/Ro). (2) filtration operation whereas any value that exceeds the reference
will trigger the micropump and keep on flowing water to the
Rx denotes as the value of resistance when the water becomes filter.
murky and Ro is the initial condition resistance of the water. By
assuming that current flow is negligible and the value of VLDR in C. Experimental Setup
Fig. 2 is proportional with respect to Rx/o in (2), the measured
input voltage into the Arduino Uno can be used to calculate the Water turbidity tests were conducted to evaluate the LDR
turbidity of water. sensing ability using a setup shown in Fig. 4. Initial values VRo,
was determined as the LDR value for tap water. Then, 10gm,
20gm, 30gm, 40gm and 50 gm of soil to create water cloudiness
were mixed with the 2-litre of water. The sensing unit measured
the cloudiness of each mixture every 1 second and sent the
readings to the serial monitor. At least 7 readings were taken for
each setup. Then, the averaged values were used in turbidity
calculations. In this turbidity test, the micropump was set to be
‘off’.

Figure 2. Voltage divider for sensing LDR voltage where V LDR is measured to
the analog input of Arduino.

B. Microcontroller
The automated filtration water system uses Arduino Uno as
the microcontroller. The board has 14 digital input/output (I/O)
pins to connect with various sensors and devices. From these 14
pins, 6 can be used as pulse width modulation (PWM) outputs or
digital outputs (important for varying voltages in between 0V to
5V) and 6 analog inputs pin. The board is equipped with 10 bit
Figure 3. Relay circuitry for the automed filtration system
Analog to Digital Converter (ADC), a 16 MHz quartz crystal, a
USB connection, a power jack, an In-Circuit Serial
Programming (ICSP) header and a reset button to support
microcontroller operations. The digital I/O pins with 5V can
handle up to 20mA current while 3.3V can handle up to 50mA
current. This microcontroller also has 32KB of Flash Memory of
which only 0.5KB used by the bootloader.
Not only the microcontroller gives power supply to the
devices but it also acquires the readings from the sensing unit
involved. Note that Arduino Uno segments any readings from its
analog inputs i.e., VLDR in Fig. 2, to integer values between 0 to
1023 due to the 10-bit resolution of the Arduino’s ADC. Which
means, in order to get the actual measurements voltage of the
LDR sensor, the Arduino must convert the integer values using
this formula:

197
Figure 4. The setup for measuring turbidity using the automated filtration the readings and hence the time for measuring the turbidity
system.
values must be within 5-10 minutes. The results in Fig. 6 no
After the turbidity testing, functionality test of the longer follow the trend in (3), which means there are other
automated filtration system was performed. This test is to ensure factors need to be considered in characterization of turbidity.
the micropump and the LDR sensing can work properly during As we all know, there are many parameters that define the
continuous flow of water. In this test, the limit of LDR sensing quality of water. Here, we only discussed water turbidity and its
was set at 400. Mixture of water and soil will increase the value relation with the LDR sensing unit. As the system uses Arduino
and trigger the system to operate. Results from these Uno, other parameters such as pH, conductivity, hardness etc.
experiments are discussed in the following section. can be included to the system by simply connected to the analog
input. By using Arduino Uno, the system can also be expanded
IV. RESULTS to a wireless sensor network which can be useful to monitor
Turbidity values were determined by (3), with the average wider areas such as rivers, lakes and water treatment plants.
value for VRo is 2.236V. The turbidity values against the soil CONCLUSION
concentrations are plotted in Fig.5. It shows that the turbidity is
proportional to the increment of soil concentration. The high the In conclusion, by using low-powered microcontroller like
concentration of soil in water, high turbidity values were Arduino Uno and LDR sensing setup, an automated water
recorded by the LDR sensor. The measured turbidity values are filtration system can be developed. The system is useful because
it allows users to monitor the quality of water (from the turbidity
also in logarithmic trend as shown in the graph.
parameter) and monitor the water filtration process. The system
is flexible and can be enhanced with more sensors such as pH
and conductivity sensors to realize a comprehensive water
monitoring system.

Figure 5. Turbidity results from the LDR reading show in a non-continuous flow Figure 6. The turbidity results in disturbed or continuous flow water (during
(undisturbed) water. filtration).

As expected, the turbidity of water decreases as the In this work, test on the LDR sensor that represent water
filtration process in progress as shown in Fig.6. In this test, the turbidity were studied for two water conditions; non –continuous
the turbidity reading can be considered as the reading of flow and continuous flow. Results show that the turbidity values
continuous flow water because the water from the filter will be in non-continuous flow has consistent results and follows the
flowed back to the tank and create disturbance in the system. logarithmic trend depicted in (3). Meanwhile, in continuous
Any disturbance in the water will cause the LDR reading to flow, the turbidity results show that time for measuring turbidity
fluctuate. Therefore, results were averaged LDR values for must not be in short duration because the LDR sensor needs to
every 1 minute. get the stabilize average reading as there are other factors need
The turbidity readings in Fig.6 show constant value for at to be considered in characterization of turbidity. For future
work, the automated water filtration system will be enhanced
least 10 minutes at certain location during filtration before
with other sensors and incorporated into a web-based monitoring
giving sharp drop at the 11, 19 and 37 minutes. This suggests
system.
that in continuous flow LDR sensor needs some time to stabilize

198
ACKNOWLEDGMENT [4] K. A. U. Menon, D. P and M. V. Ramesh, "Wireless sensor network for
river water quality monitoring in India," Computing Communication &
Data from this paper was measured using hardware Networking Technologies (ICCCNT), 2012 Third International Conference
constructed for the Integrated Design Project (IDP) entitled on, Coimbatore, 2012, pp. 1-7.
“Automated Water Tank Filtration System”. The Author would [5] A. S. Rao, S. Marshall, J. Gubbi, M. Palaniswami, R. Sinnott and V.
Pettigrovet, "Design of low-cost autonomous water quality monitoring
like to thank Nurul Najah Najman, Nuradilah Hashim, Rafidah system," Advances in Computing, Communications and Informatics
Ismail and Khalida Hussin for their contributions in this project. (ICACCI), 2013 International Conference on, Mysore, 2013, pp. 14-19.
[6] T. P. Lambrou, C. C. Anastasiou, C. G. Panayiotou and M. M. Polycarpou,
REFERENCES "A Low-Cost Sensor Network for Real-Time Monitoring and
Contamination Detection in Drinking Water Distribution Systems," in
[1] Drinking Water Quality Standard, http://kmam.moh.gov.my/public-
IEEE Sensors Journal, vol. 14, no. 8, pp. 2765-2772, Aug. 2014.
user/drinking-water-quality-standard.html, retrieved on 20th May 2016.
[7] Madrid, R. E., et al. "Multichannel bacterial growth analyser by impedance
and turbidity." Medical and Biological Engineering and Computing 32.6
[2] T. L. Dinh, W. Hu, P. Sikka, P. Corke, L. Overs and S. Brosnan, “Design (1994): 670-672.
and Deployment of a Remote Robust Sensor Network: Experiences from [8] Saba Mylvaganam and Torgeir Jakobsen,“Turbidity Sensor For
an Outdoor Water Quality Monitoring Network,” Local Computer Underwater Applications, Sensor Design and System Performancs with
Networks, 2007. LCN 2007. 32nd IEEE Conference on, Dublin, 2007, pp. Calibration Results”, pp.158-161.
799-806.
[9] Datasheet for Arduino Uno by ArduinoTM,
[3] Peng Jiang,Zheming Wang,“Design of water environment monitoring https://www.arduino.cc/en/Main/ArduinoBoardUno, retrieved on 16th
system based on wireless sensor network,” IEEE 2nd International March 2016.
Conference on Industrial and Information Systems, pp., 2010.

199

You might also like