Mamdani Fuzzy Control for Betta Fish Aquarium Water Circulation Based on Turbidity and Water Level

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.

Authors

Institutions

Publication Details

Journal
Journal of Applied Science Technology & Humanities
Published
2026-11-29
DOI
https://doi.org/10.62535/eh7fy085
Primary Topic
Fuzzy Logic and Control Systems
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

Mamdani Fuzzy Control for Betta Fish Aquarium Water Circulation Based on Turbidity and Water Level

Annisa Raihanah Maimun, Muhammad Rizky Caesar, Sebastian Boanerges, Asti Indriyanti et al.
Journal of Applied Science Technology & Humanities
Fuzzy Logic and Control Systems
article

Mamdani Fuzzy Control for Betta Fish Aquarium Water Circulation Based on Turbidity and Water Level

Annisa Raihanah Maimun, Muhammad Rizky Caesar, Sebastian Boanerges, Asti Indriyanti, Muhamad Ganabitz Dzikri, Athaya Rifqi Andriansyah
article en

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.

Journal of Applied Science Technology & HumanitiesVol. 3(5)
IPB University (ID)
Fuzzy Logic and Control Systems
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon