This study aims to design and implement a prototype of an adaptive automatic flood gate system based on Mamdani fuzzy logic using multi-sensor input, developed as part of a Capstone Design course. The system employs an ultrasonic sensor to measure water level, a rain sensor, and a temperature sensor as inputs, while a servo motor acts as the gate actuator. Mamdani fuzzy logic is applied to determine gate conditions classified into safe, alert, and danger levels. Experimental results show that the ultrasonic sensor achieves an average measurement error of ±1.2 cm compared to manual measurements. The system responds to water level changes with an average response time of 1.8 seconds. The flood gate operates correctly according to fuzzy rules with a 100% success rate across 15 test scenarios. Furthermore, the system demonstrates a decision accuracy of 93.3% in classifying flood conditions. The system can also be monitored in real time using the Blynk application.These results indicate that the proposed prototype performs effectively as a laboratory-scale flood gate control system and has potential for further development toward real-world implementation.
Copyrights © 2026