Design of Automatic PH Level Prototype Using Microcontrol Nodemcu Esp8266 Based On IoT Technology
Design of Automatic PH Level Prototype Using Microcontrol Nodemcu Esp8266 Based On IoT Technology
ISSN No:-2456-2165
Abstract:- In the process of controlling the pH level of can maintain the pH level of the water according to the
water manually there is a risk of controlling pH levels standards set by the government.
directly in contact with hazardous chemicals such as
HCl and NaOH. The two chemicals are chemicals that This automatic water pH control system uses the
can be used to regulate the pH level of water, but both chemicals HCL and NaOH to maintain the water pH level
of these chemicals are included in corrosive materials to comply with government regulations. This system can
which can cause damage to the skin or eyes if there is also reduce the risk of pH control agents from hazardous
direct contact with the two materials. This study aims to chemicals such as HCl and NaOH, because both of these
design a system to control the pH of water in the form chemicals are included in corrosive materials which can
of a tool that can monitor and control the pH level of cause damage when in contact with living tissue. (Utomo S.
water automatically in order to reduce the risk of 2012)
exposure to hazardous chemicals and facilitate the work
of officers. This system uses a NodeMCU ESP8266 II. LITERATURE REVIEW
microcontroller controller which has an input in the
form of a pH sensor and a water level sensor. The In this study a system was designed to monitor and
system output is in the form of 3 water pumps and 2 control the pH level so that it remained in the pH range of
diaphragm pumps. NodeMCU will adjust the 6.5 to 8.5. Prototype or miniature controller of water pH
diaphragm pump speed by using the Sugeno Fuzzy logic using NodeMCU as a central controller that has a pH
method. By utilizing the Internet of Things (IoT) sensor input and level switch sensor and output in the form
technology, the condition of the pH value of water and of a motor driver IC to drive the diaphragm pump and
pumps can be monitored online via a smartphone immersion pump. Then the results of monitoring the pH
making it easier to monitor at any time. The application level will be displayed on a smartphone that has the Blynk
used is the Blynk application based on the Android application installed.
Operating System. The quality of the internet network
connection connected to NodeMCU is very influential Research that has been published in several journals
on sending data to CloudBlynk. Testing the diaphragm shows differences in both the objectives and the methods
pump speed value is regulated by Sugeno fuzzy logic used. There is a research that regulates the acidity level
based on the readable pH value. Based on testing the pH aimed at maintaining water quality so that the life of
of water, this system successfully controlled the pH of ornamental fish Chefs continues (Bayu, Sugito Slamet,
water with a capacity of 8 liters with a submersible 2017) Other studies design the control of pH in the acid-
pump speed of 1.31l / min, the highest pH value of the base titration process (Mukhlish KI, Hendra C. 2010) and
experiment 11.14 with a duration of 213 seconds, and there are also pH control studies that use the Self Tuning
the lowest pH value of 2.01 with a duration of 260 PID method with Adaptive Control (Achmad DC, Hendra
seconds C. 2012).
IJISRT20FEB132 www.ijisrt.com 98
Volume 5, Issue 2, February – 2020 International Journal of Innovative Science and Research Technology
ISSN No:-2456-2165
Hardware Designing this circuit the Water Level sensor output is connected to
In the hardware design section, the system uses pins D2, D6 and D7 on NodeMCU. The workings of this
NodeMCU V2 which has input in the form of two sensors sensor are as follows: when the floating sensor section is
namely a pH sensor and a level switch sensor, while the lifted by water or water in a full containers, the magnet in
output consists of an L298 IC driver, a 12 V diaphragm the float will deactivate or disconnect the reedswitch
pump and a 5 V dip pump. know the pH level of water in connection in the sensor rod.
the containers. The signal modifier functions as a voltage
signal modifier on the pH sensor probe from 414.12 mV to Prototype of the pH Water Control System will be
-414.12 mV to a voltage range that can be read by made using a glass containers measuring length, width and
NodeMCU analog inputs, from 0 V to 3.3 V. Level sensor height of 60 cm x 25 cm x 20 cm which is divided into
switches are used to determine the water level in the water three parts, namely the water reservoir containers,
reservoir containers. The end result of this process is to find controlling the pH level and the end result of the process
out whether the desired water level to start controlling the with a capacity of 8 liters each. Figure 3 shows the
pH level of the water has reached the minimum limit. In prototype design of a water pH control system.
IJISRT20FEB132 www.ijisrt.com 99
Volume 5, Issue 2, February – 2020 International Journal of Innovative Science and Research Technology
ISSN No:-2456-2165
the containers controlling the pH level has not been In this design the Arduino program was made to
reached. If this has been achieved, the water stirring pump process data from the PH sensor, Water Level sensor,
inside the containers that controls the pH level will be switch, and a program to control the speed of the
active. The pH level data from the sensor collected 30 Diaphragm Pump and the Submersible Pump.Implementasi
samples will be calculated the average value and converted Rancangan Pada Aplikasi Blynk
to a pH value. If the pH is 6.5 to 8.5, the water reservoir
pump is On. The diaphragm pump speed used to increase or The design of Blynk application uses 1 notification
decrease the pH level will be processed using the Sugeno facility, email and virtual LCD as much as 1 piece. The
Fuzzy Logic method based on the pH value. Information on design requires a SuperChart which is used to find out
the pH level and condition of all pump motors will be sent information on pH levels and the processes that are taking
to Cloud Blynk so that the results of pH control can be place from NodeMCU processing. Virtual pins V0 and V1
monitored via a Smartphone. Meanwhile, the final pump are used for LCD input. Virtual pins V2, V3, and V4 are
will be active if the water level in the containers is final. used for SuperChart input.
Fuzzy Logic Design sets, namely a maximum speed of 100% and a minimum of
Fuzzy Logic Design consists of 2 input variables 0% in NodeMCU ie "stop "With a value of 0%," slow "with
namely Water pH Level and Diaphragm Pump Speed. The a value of 50%," medium "with a value of 75%, and" fast
pH level variable consists of 5 fuzzy sets, namely Lower "with a value of 100%.
Limit 2, Lower Limit 1, Safe Limit, Upper Limit 1, Upper
Limit 2. The diaphragm pump speed variable has 4 fuzzy
1 4.36 0 100
2 5.4 0 80
3 5.96 0 75
4 6.54 0 69
5 6.70 0 45
6 7.56 0 0
7 7.90 0 0
8 8.02 3 0
9 8.46 69 0
10 8.92 75 0
11 9.8 90 0
12 10.36 100 0
Table 3:- Diaphragm Pump Speed Settings
Fig 6:- Photograph of Prototype Design Results Water Level PH 6.5 – Submersible
No
Sensor 2 8.5 Pump 2 (M4)
Water Level Reading Test 1 ON YA ON
This prototype uses 3 water level sensors installed in
2 ON TIDAK OFF
the water reservoir containers, the PH level control
containers and the final containers as shown in Figure 7. 3 OFF YA OFF
3 OFF TIDAK OFF
Table 6:- Experiment of Water Level Sensor 2 with
Submersible Pump 2.
Submersible Pump 4
No Water Level Sensor 3
(M6)
Fig 7:- Water Level testing
1 ON ON
The way this sensor works is to read the water level in 2 OFF OFF
each containers, if the water level has been reached (sensor
Table 7:- Testing of Water Level Sensor 3 and Submersible
floats lifted by the water) then the connection to the sensor
Pump 4
will be lost. Briefly the results of the water reading test are
shown in Table 4.
Water pH Reading Testing
The Water pH reading system uses a DF Robot pH
No Condition Connection sensor found in the pH control container as shown in Figure
8. Testing the pH Sensor
1 Reached Water Level Break
2 Water Level Not Achieved Connected
Table 4:- Test Results for Water Level Readings
Testing is done by comparing the results of the value HCL and NaOH. The results of reading the object as shown
of the DF Robot pH sensor with litmus paper, the object in the table shows that the pH sensor works in accordance
being tested is mineral water, buffer pH 4, 7, a mixture of with a range that can be tolerated.
3.9
1 Buffer pH 4
7.1
2 Buffer pH 7
5.6
3 Air
13.31
1500 ml of Water and
4
100 ml of 48% NaOH
2.21
1500 ml of Water and
5
100 ml of 32% HCL
1 2.01 260
2 3.34 184
3 4.42 111
4 5.12 41
5 5.53 27
6 6.04 13
7 9.17 23
8 9.68 76
9 10.01 121
9 10.34 169
10 11.14 213
Table 9:- Testing of pH Control of Water