Professional Documents
Culture Documents
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