Arduino Uno-Based Water Turbidity Meter Using LDR and LED Sensors
Arduino Uno-Based Water Turbidity Meter Using LDR and LED Sensors
Arduino Uno-Based Water Turbidity Meter Using LDR and LED Sensors
Abstract
Arduino Uno water turbidity gauge has been successfully designed and manufactured. This tool is made using LDR as sensor and led as
a light source to measure the water turbidity value and Arduino Uno for data processing. The existence of this tool is already familiar and
comfortable to find. However, the price is relatively higher to make this tool is only owned by certain circles only. Nephelometric Meth-
od is a method of measuring the turbidity of water by passing a light source on water so that the intensity of light reflected by the sub-
stances causing turbidity can be known. With the use of led as a light source and photodiode as a light detector, and combined with pro-
cessing using Arduino Uno then the voltage obtained from the LDR sensor in the form of analog data is processed into digital data and
can be displayed in the LCD.
that can detect water turbidity, the output of the tool is displayed
1. Introduction on an LCD. Once the tool is packed, it is expected to help the
related parties to determine the quality of water so that water
An electronic device inevitably requires a power source, and this productivity is increasing and feasible to consume.
applies to the turbidity test equipment [1] [2]. Without electricity,
the test equipment cannot works properly. It is an information
retrieval tool to get important information. [3]–[11] [12]–[15]. A
2. Theories
valuable information is hiding on this tool and must be extracted
[16] [17]. Turbidimeter is a tool used as a standard test device 2.1. Nephelometric turbidity unit (NTU)
serves to determine the level of turbidity of water [18]. Test
equipment sold in stores is relatively expensive to make this tool Water is cloudy when the it contains many particles of suspended
is only owned by certain parties. To test whether the water we material giving it a brownish color. The ingredients that cause
consume has a good quality should be done in the laboratory test- turbidity include sludge, well-defined organic materials, and other
ing of drinking water. Not everyone has the time and cost to do a suspended particles. A nephelometer is a tool for measuring
test to find out water quality, especially drinking water. turbidity that gives results in units of Nephelometric Turbidity
The study attempts to make a simple drinking water test kit. This Unit (NTU) [35]–[37] it is the standard unit for measuring
tool is made by using a microcontroller [19]–[21]. The break- turbidity. In nephelometry and turbidimetry, light sources are
through in question is a tool with a dynamic form based Arduino projected through liquid samples stored in transparent sample
Uno in which has planted the program to determine how much containers. Generally, nephelometry uses light sources that have
value of turbidity of water in a glass container. A program de- relatively short wavelengths between 500 to 800 nm and are
signed on a microcontroller must have high security and accuracy effectively used to detect microscopic particles. Whereas,
[22]–[28] Every person and health worker can easily see the value turbidimetry generally uses light sources that have longer
of turbidity of water in a container and with a simple display, and wavelengths between 800 and 1100 nm and are effectively used to
a good data process makes all walks of life can use this tool. detect particles of larger size. If a beam of light is passed through
The author will create a tool to measure the level of turbidity of a cloudy sample, its intensity is reduced by scattering, and the
water. This system consists of Arduino microcontroller module as amount of light scattered depends on the concentration and
a data processor and Analog Digital Converter (ADC) [29]–[34] distribution of the particle size. In nephelometry, the scattered
as an analog to digital converter signal because Light Emitting light intensity is measured while in the turbidimetry, the intensity
Diode (LED) transcribes analog data. This tool is used as a system of the light transmitted through the sample is measured.
Copyright © 2018 A. P. U. Siahaan et al. This is an open access article distributed under the Creative Commons Attribution License, which per-
mits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
2114 International Journal of Engineering & Technology
3. Methodology
Arduino Uno has 14 digital pins and six analog pins that can be Fig. 3: PCB Design.
used as input and output. In this circuit, the LDR sensor is
connected to an Arduino analog pin. In the design of this tool LED The component layout is the arrangement of the electronic
is used as a light transmitter to be received by the color sensor. components of the schematic diagram drawing to be mounted on
LED is connected to digital pin seven on Arduino. The sensor the PCB surface in contrast to the PCB path. The arrangement of
circuit connected to Arduino can be seen in the following picture. the electronic components must correspond to the PCB path. Each
component to be installed has a size to correspond to the PCB
path. Each component to be installed has the proper size and
sufficient space on the PCB surface.
.
Fig. 4: LCD circuit.
The whole circuit has been connected with each pin on Arduino Table 2: NTU Comparison
Uno. The various tools and materials used are Arduino Uno, PCB, Test Number NTU Value
resistor, potentiometer, 16x2 LCD, LDR (Light Dependence 1 429
Resistance), LED, USB port, 9V Battery Socket and 9v Battery. 2 446
3 461
Overall can be seen circuit system based on Functions and their 4 483
goals on each pin Arduino Uno. The whole set of Tools can be 5 494
seen in the following figure.
4.2. Determination of NTU value
using the formula y = -111.25x + 506.67 where -111.25 and no. 7, pp. 279–284, 2017.
506.67 is the determination value determined based on NTU https://doi.org/10.23883/IJRTER.2017.3359.UXAIW.
assumption of aqua water samples with assuming the value of [7] S. Hartanto, M. Furqan, A. P. U. Siahaan, and W. Fitriani,
“Haversine Method in Looking for the Nearest Masjid,” Int. J.
NTU = 0 and from the most concentrated ink water sample
Recent Trends Eng. Res., vol. 3, no. 8, pp. 187–195, Aug. 2017.
assuming the value of NTU = 500 whereas x is the voltage value. https://doi.org/10.23883/IJRTER.2017.3402.PD61H.
[8] H. M. Ritonga, A. P. U. Siahaan, and Suginam, “Marketing
Table 3: ADC to NTU Scale Strategy through Markov Optimization to Predict Sales on Specific
ADC Value NTU Value Periods,” Int. J. Innov. Res. Multidiscip. F., vol. 3, no. 8, pp. 184–
4.55 0.5 190, 2017.
0.06 500 [9] I. Sumartono, A. P. U. Siahaan, and Arpan, “Base64 Character
Encoding and Decoding Modeling,” Int. J. Recent Trends Eng.
The result of the sample test in aqua water produces the voltage Res., vol. 2, no. 12, pp. 63–68, 2016.
value is 4.55 Volt and based on the sample test result on the real [10] W. Fitriani, R. Rahim, B. Oktaviana, and A. P. U. Siahaan,
ink water; it is obtained the voltage value of 0.06 volts. “Vernam Encypted Text in End of File Hiding Steganography
Technique,” Int. J. Recent Trends Eng. Res., vol. 3, no. 7, pp. 214–
219, Jul. 2017.
https://doi.org/10.23883/IJRTER.2017.3351.6ON8H.
[11] W. Fitriani and A. P. U. Siahaan, “Comparison Between WEKA
and Salford System in Data Mining Software,” Int. J. Mob.
Comput. Appl., vol. 3, no. 4, pp. 1–4, 2016.
[12] Mesran, K. Tampubolon, R. D. Sianturi, F. T. Waruwu, and A. P.
U. Siahaan, “Determination of Education Scholarship Recipients
Using Preference Selection Index,” Int. J. Sci. Res. Sci. Technol.,
vol. 3, no. 6, pp. 230–234, 2017.
[13] M. Iqbal, M. A. S. Pane, and A. P. U. Siahaan, “SMS Encryption
Using One-Time Pad Cipher,” IOSR J. Comput. Eng., vol. 18, no.
6, pp. 54–58, 2016.
[14] B. Oktaviana and A. P. U. Siahaan, “Three-Pass Protocol
Implementation on Caesar Cipher in Classic Cryptography,” IOSR
J. Comput. Eng., vol. 18, no. 4, pp. 26–29, 2016.
https://doi.org/10.9790/0661-1804032629.
[15] A. P. U. Siahaan, “Comparison Analysis of CPU Scheduling :
FCFS, SJF and Round Robin,” Int. J. Eng. Dev. Res., vol. 4, no. 3,
pp. 124–131, 2016.
Fig. 8: Voltage to NTU Value. [16] A. P. U. Siahaan and R. Rahim, “Dynamic Key Matrix of Hill
Cipher Using Genetic Algorithm,” Int. J. Secur. Its Appl., vol. 10,
no. 8, pp. 173–180, Aug. 2016.
Figure 8 is an NTU value of 0 with a voltage value of 4.55 volts
[17] A. P. U. Siahaan, “Adler-32 Integrity Validation in 24bit Color
for a sample of clean water and obtained a value of NTU of 500 Image.”
with a voltage value of 0.06 volts for dark water. [18] S. Bin Ibrahim, “Turbidity Measurement Using An Optical
Tomography System,” Int. J. Sci. Eng., vol. 5, no. 2, Oct. 2013.
[19] Prerana, M. R. Shenoy, B. P. Pal, and B. D. Gupta, “Design,
5. Conclusion Analysis, and Realization of a Turbidity Sensor Based on
Collection of Scattered Light by a Fiber-Optic Probe,” IEEE Sens.
Based on the results of research and manufacture of water J., vol. 12, no. 1, pp. 44–50, Jan. 2012.
turbidity test, it can be concluded that the results of water sample https://doi.org/10.1109/JSEN.2011.2128306.
test shows that the tool has functioned well and able to provide [20] J. Park, K. Park, K. Han, and K. Park, “Design and implementation
turbidity value of water by using different samples. In the test, of 2 channels turbidity sensor modules,” in 2013 10th International
Conference on Ubiquitous Robots and Ambient Intelligence
clear water produces a voltage value of 4.55 volts with an NTU
(URAI), 2013, pp. 447–450.
value of close to 0 while the test results of cloudy and dark water https://doi.org/10.1109/URAI.2013.6677307.
samples yield a voltage value of 0.06 volts with an NTU value [21] S. C. Liew, B. Saengtuksin, and L. K. Kwoh, “Monitoring turbidity
close to 500. The equation for obtaining the value of NTU is y = - and suspended sediment concentration of coastal and inland waters
111.25x + 506.67. This tool can be used to determine the water using satellite data,” in 2009 IEEE International Geoscience and
turbidity level. Remote Sensing Symposium, 2009, p. II-837-II-839.
https://doi.org/10.1109/IGARSS.2009.5418225.
[22] A. Lubis and A. P. U. Siahaan, “Network Forensic Application in
References General Cases,” IOSR J. Comput. Eng., vol. 18, no. 6, pp. 41–44,
2016.
[1] S. Aryza, M. Irwanto, Z. Lubis, A. P. U. Siahaan, R. Rahim, and M. [23] A. P. U. Siahaan, “Genetic Algorithm in Hill Cipher Encryption,”
Furqan, “A Novelty Design of Minimization of Electrical Losses in Am. Int. J. Res. Sci. Technol. Eng. Math., vol. 15, no. 1, pp. 84–89,
A Vector Controlled Induction Machine Drive,” in IOP Conference 2016.
Series: Materials Science and Engineering, 2018, vol. 300, no. 1. [24] A. P. U. Siahaan, “Rail Fence Cryptography in Securing
https://doi.org/10.1088/1757-899X/300/1/0120670. Information.”
[2] A. P. U. Siahaan et al., “Combination of Levenshtein Distance and [25] A. P. U. Siahaan, “Huffman Text Compression Technique.”
Rabin-Karp to Improve the Accuracy of Document Equivalence [26] R. D. Sari, Supiyandi, A. P. U. Siahaan, M. Muttaqin, and R. B.
Level,” Int. J. Eng. Technol., vol. 7, no. 2.27, pp. 17–21, 2018. Ginting, “A Review of IP and MAC Address Filtering in Wireless
[3] A. P. U. Siahaan, “The Analysis of Average Waiting Time in Network Security,” Int. J. Sci. Res. Sci. Technol., vol. 3, no. 6, pp.
Managing Concurrent Process.” 470–473, 2017.
[4] L. Marlina, Muslim, and A. P. U. Siahaan, “Data Mining [27] A. P. U. Siahaan, “Securing Short Message ServiceUsing Vernam
Classification Comparison (Naïve Bayes and C4.5 Algorithms),” Cipher in Android Operating System,” IOSR, Apr. 2016.
Inte rnational J. Eng. Trends Technol., vol. 38, no. 7, pp. 380–383, [28] A. P. U. Siahaan, “A Three-Layer Visual Hash Function Using
2016. https://doi.org/10.14445/22315381/IJETT-V38P268. Adler-32,” Int. J. Comput. Sci. Softw. Eng., vol. 5, no. 7, pp. 142–
[5] Z. Ramadhan and A. P. U. Siahaan, “Dining Philosophers Theory 147, 2016.
and Concept in Operating System Scheduling,” IOSR J. Comput. [29] A. P. U. Siahaan, “Vernam Conjugated Manipulation of Bit-Plane
Eng., vol. 18, no. 6, pp. 45–50, 2016. Complexity Segmentation.”
[6] D. Kurnia, H. Dafitri, and A. P. U. Siahaan, “RSA 32-bit [30] A. P. U. Siahaan, “Adjustable Knapsack in Travelling Salesman
Implementation Technique,” Int. J. Recent Trends Eng. Res., vol. 3, Problem Using Genetic Process,” Int. J. Sci. Technoledge, vol. 4,
no. 9, pp. 46–55, 2016.
International Journal of Engineering & Technology 2117