Claim Missing Document
Check
Articles

Found 1 Documents
Search

Mamdani Fuzzy Control for Betta Fish Aquarium Water Circulation Based on Turbidity and Water Level Asti Indriyanti; Muhamad Ganabitz Dzikri; Athaya Rifqi Andriansyah; Sebastian Boanerges; Annisa Raihanah Maimun; Muhammad Rizky Caesar
Journal of Applied Science, Technology & Humanities Vol. 3 No. 5 (2026): November 2026
Publisher : Batrisya Education

Show Abstract | Download Original | Original Source | Check in Google Scholar | DOI: 10.62535/eh7fy085

Abstract

Betta fish require clean water for optimal health, yet they are highly sensitive to strong currents. Continuous mechanical filtration creates excessive water movement, while manual water replacement causes physiological stress. This study aims to design a Mamdani fuzzy logic control system for water circulation based on Turbidity and Water Level, ensuring water quality maintenance without producing excessive currents. The system utilizes an analog Turbidity sensor and an HC-SR04 ultrasonic sensor, which are processed by an ESP32 microcontroller using Mamdani fuzzy inference. The output is a PWM Duty Cycle that controls a DC circulation pump. The algorithm employs nine rules with minimum implication, maximum aggregation, and centroid Defuzzification. System evaluation under various scenarios demonstrates precise control. For instance, at 20 NTU Turbidity and 13 cm Water Level, the continuous analytic centroid produces 36.06%, while the MATLAB discrete simulation (1001 points) produces 36.03%, indicating an absolute error of 0.03%. A Fail-safe mechanism turns off the pump below the 10% Duty Cycle threshold to prevent Dry-running. Limitations of this study include the use of simulated Turbidity values without physical calibration and the theoretical dynamic evaluation of the pump without physical flow rate validation.