Buletin Ilmiah Sarjana Teknik Elektro ISSN: 2685-9572
Hybrid System Prototype for Dam Water Level Control System to Irrigating Rice Fields
Agung Wahyu Hidayat, Indah Sulistiyowati, Arief Wicaksono, Syamsudduha Syahrorini
Department of Electrical Engineering, Universitas Muhammadiyah Sidoarjo, East Java, Indonesia
ARTICLE INFORMATION | ABSTRACT | |
Article History: Submitted 02 January 2024 Revised 12 February 2024 Accepted 19 February 2024 | Naturally, one of the causes of crop failure in agriculture is flooding brought on by unchecked water overflow, particularly during the rainy season. Crop failure is a common source of complaints from farmers because, in addition to making it harder for them to sell their harvests, it decreases the price at which rice is sold to customers, which reduces the amount of people who purchase rice. This project aims to develop a hybrid dam water level control system prototype for paddy field irrigation. In this instance, the innovative flood monitoring and control system integrates Blynk as a user interface that can be accessible via software, along with an ESP 32 monitoring unit and a NodeMCU 8266 controller. like smartphone devices. The ESP 32 controls servo motor 1 to open the dam door in the event of flooding. In addition, the ESP 32 monitors the dam's water level using the I2C LCD and alerts the user with a bell. The NodeMCU 8266 functions as a link to the ultrasonic sensor to relay the water level data to the ESP 32. Through the Blynk application, the user can manually control Servo motor 2 to open and close the dam door with configurable water level limitations. The results of the studies indicate that this system functions flawlessly, from setting up a warning system to connecting tools. The system may be manually operated by making use of microcontroller technology. | |
Keywords: Automatic Dam; Blynk, ESP 32; Dam Warning System; NodeMCU 8266 | ||
Corresponding Author: Indah Sulistiyowati, Department of Electrical Engineering, Universitas Muhammadiyah Sidoarjo, East Java, Indonesia. Email: | ||
This work is licensed under a Creative Commons Attribution-Share Alike 4.0 | ||
Document Citation: A.W. Hidayat, I. Sulistiyowati, A.Wicaksono, and S. Syahrorini “Hybrid System Prototype for Dam Water Level Control System to Irigatting Rice Fields,” Buletin Ilmiah Sarjana Teknik Elektro, vol. 6, no. 1, pp. 25-33, 2024, DOI: 10.12928/biste.v6i1.10016. |
Water is a necessary element for all living things. Non-living resources that can be replenished are water resources. These days, water is an important resource required for human life and all of its activities [1]. Thin management of natural resources is the only way to stop the destruction of ecosystems. As natural resources gain in value, this is done to protect the environment. Earth's current inhabitants have shown that the planet can maintain life. The reason for this is that for basic needs, humans depend on specific natural resources. A vital component of human survival, water resources also play a significant role in elevating the standard of human life on Earth. In addition to humans, all other living species on Earth need on water to thrive. In addition, that is the nature of humanity in the past and now [2].
This time, the issues raised by water spilling over rice fields close to dams will be discussed [3]. Flooding is one of the effects; vast sums of money are needed to repair the damage it causes, and it frequently disrupts residents' lives economically. For instance, flooding could cause farmers' crops to fail [4]. Indonesia is particularly susceptible to flooding due to its high rainfall levels. Although flooding is an inevitable occurrence, it can be lessened by adding sluice gates to reservoirs or dams. A dam is a construction placed across a river with the purpose of raising the water level of the river. Moreover, floodgates on dams can be opened and closed continuously or gradually for a variety of reasons [5].
This research appears to be proceeding nicely, based on earlier work "Application of PID Controller to Water Level Control System Using MATLAB" by Salma Rahmani, Suci Aulia Rosana, and Ghina Hanin Tian in 2022 [6]. Not only does the Thingspeak website offer features for monitoring up to eight locations at once on a single server, but previous research "Design of Prototype Monitoring of Dam Water Level Based on Internet of Things" by A. Samrul Ilmun Nafik also describes a monitoring system that can successfully monitor three locations on one server [7]. However, there are still issues that arise when there are no symptoms of flooding but the water level is above the capacity. Furthermore, there is no automated control system on the dam door, no remote monitoring of the sensor's accuracy, and no use of the Blynk application to deliver notifications via the Internet of Things [8].
A prototype system of a dam water level control system for arresting with a hybrid system is built in this thesis research in response to these issues. It is envisaged that this technique will make it easier to adjust water level both manually and automatically. Countermeasures, or preparations, to deal with the actual flood are crucial since a dam breach could result in a massive flood if there is an excess of water in the dam and it is not immediately emptied [9]. Signals to the ESP 32 and NodeMCU 8266 can be sent via Blynk communication, which can also be utilized to regulate the amount of water entering the rice fields [10],[11]. The Ultrasonic Sensor measures the height of the water discharge; if the water exceeds the set point that we have set, the buzzer will sound as a sign of flooding in the rice field area. Next, the servo motor opens and closes the entrance to the water course to the rice fields. The LCD reads active and inactive components [12]. With the use of this tool, farmers who had trouble harvesting their rice are no longer faced with crop failures and may find a solution to their issues. In order to minimize the amount of loss, this tool's influence helps the community and government respond to disaster occurrences more swiftly and precisely [13]. Additionally, to assist agricultural households in reducing the chance that flooding could cause crop failure in rice fields [14].
The Research and Development (R&D) research method was employed in this study to expand upon and modernize earlier research [15]. Research and development (R&D) is a technique used to create specific goods or equipment that can assist farmers in reducing their risk of flooding [16],[17]. Three procedures will be covered in this chapter: creating block diagrams to illustrate how the tool operates; creating flowcharts to give a program overview; and designing wiring diagrams to determine the flow of installed electrical circuits [18]. Each process has a different purpose, but in the end, these three processes will be continuous with the ultimate goal of creating a prototype that can work effectively so that it is useful for the community [19].
The design of this tool consists of three parts. The first part is drawing a block diagram that shows the input, processing, and output components of the system along with their connections. The subsequent action
The first stage of the system design process is the wiring design phase, which entails laying out the components of the system and their connections. Drawing a flow chart that illustrates the system's workflow and the relationships between its many components is the third phase. Together, these three sections provide a thorough overview of the architecture and operation of the system [20].
To facilitate tool design and fabrication in the current device, a block diagram of the entire system as a whole is made. Below is a block diagram of the Prototype Dam Water Level Control System for Irrigating Rice Fields with a Hybrid System. as shown in Figure 1.
Figure 1. Block diagram system
The wiring diagram in Figure 2 is a wiring circuit used in this study, in the picture it appears that all components used as input and output are connected to the microcontroller, the microcontroller used is ESP 32 and NodeMCU 8266. components used as input and output are connected by a microcontroller, the microcontroller used is ESP 32 and NodeMCU 8266. All components used must be well connected so that the tools used can run optimally.
In Figure 2 there are several components used with the following uses:
The Table 1 demonstrates how Vin and ground from the inbound nodemcu are connected to the project board, which has numerous inputs and outputs. Nodemcu pins D7 and D8 are connected to Trig and Echo in the ultrasonic sensor, and D5 is connected to the servo motor. Output a from the servo motor leads to the NodeMCU 8266, which is 3V and Ground. Output a from nodemcu goes to input a Vin and Ground ultrasonic. After that, RX and TX nodemcu are connected to ESP 32.
Figure 2. Wiring design
Table 1. NodeMCU Port Usage
No | NodeMCU Port | Usage |
1. | Vin | Project Board |
2. | GND | Project Board |
3. | 3V | Motor servo |
4. | GND | Motor servo |
5. | 3V | Vin Ultrasonic |
6. | GND | Ground Ultrasonic |
7. | RX | RX ESP 32 |
8. | TX | TX ESP 32 |
9. | D7 | Trig Ultrasonic |
10. | D8 | Echo Ultrasonic |
11. | D5 | Motor Servo |
The flowchart, which is intended to make the research process easier, is a research flowchart from the start to the finish. Two flowcharts, one for the monitoring system and one for the control system, are included in this study. Using NodeMCU as the controller, Figure 3 depicts a control system flowchart. It starts by turning on the Android internet connection and connecting it to Blynk. If it is connected, the ultrasonic sensor will then read and send the reading to both Blynk and ESP 32. When everything is connected, the next thing to do is switch on RB Blynk. If it is, the servo motor will cause the dam sluice gate to open.
There are two flowcharts in this research one for the monitoring system and one for the control system. The second flowchart, shown in Figure 4, is a monitoring system flowchart using an ESP 32 microcontroller. The ESP 32 will then read the data from the NodeMCU and send it to the LCD to display the distance data. Once it does, we will measure it by adding water to the dam prototype. At ten centimeters' distance, We'll be aware of the servo motor's response when it opens the dam sluice gate. It is now the Buzzer's turn to work, sounding an alert that there will be a flood in the rice field region once the water has risen above the prior 12-cm barrier.
Figure 3. First flowchart program control system | Figure 4. Second flowchart program monitoring system |
The results of the research realization of the prototype of the dam water level system for irrigating rice fields with a hybrid system can be seen in Figure 5. All components used will be described by numbering as follows: 1. Ultrasonic Sensor, 2. ESP 32, 3. NodeMCU 8266, 4. LCD I2C, 5. Buzzer, 6.Servo Motor.
Figure 5. Result of tool realization
The two steps below can be used to operate the prototype microcontroller:
The first control phase (manual)
The second step for Monitoring (Automatic)
Testing the Wi-Fi connection to the ESP 32 is done between 4 and 5 seconds, and the results are displayed in Table 2. The research findings indicate that the ESP 32 is capable of creating a stable wireless network.
Table 2. Testing Wi-Fi connection to ESP 32
Testing to- | Wi-Fi ESP 32 | Accuracy (%) | |
Condition | Waiting Time (s) | ||
1st Test | Connected | 5 | Medium |
2nd Test | Connected | 6 | Medium |
3rd Test | Connected | 5 | Medium |
4th Test | Connected | 5 | Medium |
5th Test | Connected | 6 | Medium |
Testing the Blynk connection to the NodeMCU 8266 is done between 4 and 5 seconds, and the results are displayed in Table 3. The research findings indicate that the NodeMCU 8266 is capable of creating a stable wireless network.
Table 3. Testing Blynk connection to NodeMCU ESP8266
Testing to- | Blynk NodeMCU 8266 | Accuracy (%) | |
Condition | Waiting Time (s) | ||
1st Test | Connected | 4 | Medium |
2nd Test | Connected | 6 | Medium |
3rd Test | Connected | 4 | Medium |
4th Test | Connected | 3 | Medium |
5th Test | Connected | 7 | Medium |
The ultrasonic sensor has been tested five times as shown in Table 4 and each time the results are in order and the sensor feed value, This shows that the sensor is working as it should and has gone through testing and validation as shown in Table 4.
Table 4. Testing Ultrasonic Sensor
No. | Ultrasonic Sensor | Ruler Manual | Error (%) |
1. | 1 cm | 4.3 cm | 3.3 % |
2. | 2 cm | 5.1 cm | 3.1 % |
3. | 3 cm | 6.2 cm | 3.2 % |
4. | 4 cm | 7.3 cm | 3.3 % |
5. | 5 cm | 8.3 cm | 3.3 % |
It is evident from Table 5 that the Blynk application functions as intended when we simply press the button to activate the servo motor. The application has been tested five times. Each time the test results match the input value of the application.
Table 5. Connection Testing Of Blynk Module With Servo Motor
No. | Blynk (Application) | State of Servo Motor | ||
ON | OFF | ON | OFF | |
1. | ON | - | ON | - |
2. | - | OFF | - | OFF |
3. | ON | - | ON | - |
4. | - | OFF | - | OFF |
5. | ON | - | ON | - |
A buzzer will sound when the ultrasonic sensor's distance reading exceeds 10 cm, according to the findings of five tests conducted on the device. Table 6 displays continuous positive findings from device tests. Everything functions as intended because all servo test commands and realizations are accurate.
Table 6. Testing The Dam Warning System
No | Parameter | System Work | The system Does Not Work | Description |
1. | 7 cm | - | Not Working | OFF |
2. | 8 cm | - | Not Working | OFF |
3. | 9 cm | - | Not Working | OFF |
4. | 10 cm | Work | - | ON |
5. | 11 cm | Work | - | ON |
The servo will move to open when the ultrasonic sensor reading system, which has undergone five testing, detects a water level of 10 cm, as shown on the LCD. According to the device test findings displayed in Table 7, every command consistently yields positive results.
Table 7. Testing The Connection Of The Ultrasonic Sensor With The Servo Motor And LCD
No | Ultrasonic Sensor Readings (cm) | LCD I2C | Servo Motor State | ||
ON | OFF | ON | OFF | ||
1 | 8 | ON | - | - | OFF |
2 | 9 | ON | - | - | OFF |
3 | 10 | ON | - | ON | - |
4 | 11 | ON | - | ON | - |
5 | 12 | ON | - | ON | - |
Users can simply control and see the system's work process in this study by utilizing the Blynk application as an interface. In order to connect the NodeMCU 8266 microcontroller and ESP 32 so that it can blink, the user needs first activate wifi before launching the blynk application. The user merely needs to push the ON button to open or OFF button to close Blynk as a manual system in accordance with the desired command once the microcontroller and Blynk have been connected via wifi. and the user can also observe the system operating automatically by using the Android user's display screen. For example, in the picture below, the Blynk display indicates the number 12, which indicates that the height has exceeded the maximum limit. By using Blynk for monitoring, the user can more easily determine the distance to the dam's water level, and the microcontroller will then react and operate in accordance with the given command. Figure 6 shows the test findings.
Figure 6. Menu in Blynk
The test results show that the internet connection test functions as intended, and the device may be linked to allow Blynk commands to be delivered to NodeMCU and ESP 32. Previous research found that the testing procedure was not completed because the monitoring method was not carried out automatically. Current study has completed testing, but the prototype still experiences a little delay when water is added. The ultrasonic sensor's testing results show that, despite errors caused by water shocks that interfere with sensor readings and servo motor functioning, the sensor is still able to measure the distance of the pre-filled water. This study has a significant impact on farmers' ability to avoid crop failure. and might eventually support the economy. Research suggestions aimed at generating further ideas or tactics to improve this instrument and lessen the constraints that have been found. To prevent shocks during water filling, for instance, which could affect sensor readings, consider using a different sensor or filtration method.
REFERENCES
AUTHOR BIOGRAPHY
Hybrid System Prototype for Dam Water Level Control System to Irrigating Rice Fields
(Agung Wahyu Hidayat)