0% found this document useful (0 votes)
70 views5 pages

Arduino Uno-Based Water Turbidity Meter Using LDR and LED Sensors

Download as pdf or txt
Download as pdf or txt
Download as pdf or txt
You are on page 1/ 5

International Journal of Engineering & Technology, 7 (4) (2018) 2113-2117

International Journal of Engineering & Technology


Website: www.sciencepubco.com/index.php/IJET
doi: 10.14419/ijet.v7i4.14020
Research paper

Arduino Uno-based water turbidity meter using LDR


and LED sensors
A. P. U. Siahaan 1 *, Nogar Silitonga 2, Muhammad Iqbal 1, Solly Aryza 1, Wirda Fitriani 1,
Zuhri Ramadhan 1, Zuraidah Tharo 1, Rusiadi 3, Rahmad Hidayat 3, H. A. Hasibuan 3,
M. D. T. P. Nasution 3, Ali Ikhwan 4, Zulfi Azhar 5, Mhd. Irwan Dwitama Harahap 6
1Faculty of Science and Technology, Universitas Pembangunan Panca Budi, Medan, Indonesia
2 Faculty of Computer Science, Universitas Methodist Indonesia, Medan, Indonesia
3 Faculty of Social Science, Universitas Pembangunan Panca Budi, Medan, Indonesia
4 Faculty of Science and Technology, Universities Islam Negeri Sumatera Utara, Medan, Indonesia
5 Department of Information System, STMIK Royal Kisaran, Kisaran, Indonesia
6 Degree Student of Faculty of Science and Technology, Universitas Pembangunan Panca Budi, Medan, Indonesia

*Corresponding author E-mail: [email protected]

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.

Keywords: Arduino Uno; Turbidity; Water Clarity.

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

2.2. Arduino uno

Arduino Uno is one of a series that contains microcontroller based


on ATmega28 [38]. This tool is the development of an old
microcontroller that has been refined with various features needed
to support the microcontroller to work [39]. It also has a USB
connection to do programming on the microcontroller. After the
tool is programmed by connecting the USB cable to PC, Arduino
Uno is ready to work. Arduino Uno has 14 digital input/output
pins, six analog inputs, a 16MHz ceramic resonator, USB
connection, input power plug, ICSP header, and a reset button
[40]. Arduino Uno R3 is the latest and last series of Arduino USB
series. The following picture is an Arduino Uno R3.

Fig. 2: LDR and LED Sensors Series.

3.2. Design of printed circuit board

Design of Printed Circuit Board (PCB) on the manufacture of the


water turbidity detection system using Kicad to design the
electronic circuit. This software facilitates the design scheme for
electronic circuits and converts it into PCB design. Printed Circuit
Board (PCB) is a circuit board made of ebonite (Pertinax) or glass
fiber where one side of the surface is coated with thin copper.
Based on the PCB arrangement is divided into three types, the first
PCB Single Layer is a plain PCB that only has one layer of copper
on one side. Double Layer PCB is a plain PCB that has two layers
of copper on both sides, and PCB Matrix Strip Board is a PCB
Fig. 1: Arduino Uno R3. that has one side of copper and has holes with a regular size of 0.8
to 1 mm. With the right design will get layout PCB path is neat
Arduino Uno Specification: and easy to use. The width and distance between paths should also
• ATmega328 Microcontroller be estimated to avoid errors or short links due to too tight and
• Power Supply 5V narrow paths. The design of PCB layout can be seen in the
• Input resistance (recommendation) 7-12V following picture.
• Input resistance (limit) 6-20V
• Pin I / O Digital 14 (with 6 PWM output)
• Analog Input Pin 6
• DC current per Pin I / O 40 mA
• DC current per Pin I / O for PIN 3.3V 50 mA
• Flash Memory 32 KB (ATmega328) where 0.5 KB is used
by bootloader
• SRAM 2 KB (ATmega328)
• 1 KB EEPROM (ATmega328)
• 16 MHz Clock Speed

3. Methodology

3.1. Series of LDR and LED sensors

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.

3.3. LCD circuit

The design of the LCD circuit using pin 15 to pin 20 on Arduino


where on the LCD is also coupled two resistors as a controller to
set the light on the LED light and setting the LDR sensor
manually. The following picture is the LCD circuit
International Journal of Engineering & Technology 2115

.
Fig. 4: LCD circuit.

3.4. Regulator circuit

In this design, the regulator serves to lower the incoming voltage


from the battery to the Arduino into 5 volts. It is connected to the
digital pin 6 as shown in the following figure.

Fig. 6: Overall Circuit.

4. Result and discussion

4.1. Test result

The tests were performed using a completed turbidity measuring


device to determine the turbidity value by using multiple
experimental samples. This test is conducted to determine the
difference of turbidity level of water read by the sensors contained
in the tool. The sample used is the ink water with the ratio of the
number of droplets in 5 experiments to determine the amount of
turbidity value. Test results using ink water can be seen in the
following figure.

Fig. 5: Regulator Circuit.

3.5. Indicator light

The design of the tool is made in such a way as to facilitate the


user in its application. The authors have designed three pieces
indicator lights as a marker of the value of turbidity of water.
Description of the indicator light itself can be seen in the
following table.

Table 1: Indicator Description


NTU Value Status
0-5 Green light (Clear)
6-99 Yellow light (Turbid) Fig. 7: Test Result.
100-500 Red light (Dark)
The following table is the NTU value comparison result based on
3.6. Overall tool series the five tests of ink water.

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

In determining the value of turbidity of water based on the results


of previous sample testing, it is determined the value of NTU
2116 International Journal of Engineering & Technology

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

[31] A. P. U. Siahaan, “Penyelarasan Pada Masalah Dining Philosophers


Menggunakan Algoritma Lock & Release,” Techsi, vol. 6, no. 1,
2014.
[32] A. P. U. Siahaan, “High Complexity Bit-Plane Security
Enchancement in BPCS Steganography,” Int. J. Comput. Appl., vol.
148, no. 3, pp. 17–22, 2016.
[33] Z. Sitorus and A. P. U. Siahaan, “Heuristic Programming in
Scheduling Problem Using A* Algorithm,” IOSR J. Comput. Eng.,
vol. 18, no. 5, pp. 71–79, 2016.
[34] A. P. U. Siahaan, “Blum Blum Shub in Generating Key in RC4,”
Int. J. Sci. Technoledge, vol. 4, no. 10, pp. 1–5, 2016.
[35] T. P. Lambrou, C. C. Anastasiou, and C. G. Panayiotou, “A
Nephelometric Turbidity System for Monitoring Residential
Drinking Water Quality,” 2010, pp. 43–55.
[36] M. Asrafuzzaman, A. N. M. Fakhruddin, and M. A. Hossain,
“Reduction of Turbidity of Water Using Locally Available Natural
Coagulants,” ISRN Microbiol., vol. 2011, pp. 1–6, 2011.
https://doi.org/10.5402/2011/632189.
[37] M. T. Mohd Khairi, S. Ibrahim, M. A. Md Yunus, and M.
Faramarzi, “A review on the design and development of
turbidimeter,” Sens. Rev., vol. 35, no. 1, pp. 98–105, Jan. 2015.
https://doi.org/10.1108/SR-01-2014-604.
[38] Y. A. Badamasi, “The working principle of an Arduino,” in 2014
11th International Conference on Electronics, Computer and
Computation (ICECCO), 2014, pp. 1–4.
https://doi.org/10.1109/ICECCO.2014.6997578.
[39] Febrianto, “Apa itu Arduino Uno?,” Referensi Teknologi dan
Elektronika Indonesia, 2018. [Online]. Available:
http://ndoware.com/apa-itu-arduino-uno.html. [Accessed: 01-Jun-
2018].
[40] M. A. B. Sidik et al., “Arduino-Uno Based Mobile Data Logger
with GPS Feature,” TELKOMNIKA (Telecommunication Comput.
Electron. Control., vol. 13, no. 1, p. 250, Mar. 2015.

You might also like