PB - Fuzzy Logic Controller For Water Level Detector
PB - Fuzzy Logic Controller For Water Level Detector
Abstract
This paper presents a novel Fuzzy Logic Controller (FLC) designed for a water level detector with
a hydrostatic pressure sensor that takes into account two critical parameters: the pressure of
water in the tank and the density of air in the tank. As water management becomes more critical,
precise control mechanisms are required to maximize resource utilization. The incorporation of
hydrostatic pressure sensing, which can capture real-time water level data, provides a solid
foundation for the proposed FLC. Unlike traditional controllers, our FLC takes a more nuanced
approach by including water pressure and air density as input parameters. The controller mimics
human-like reasoning by utilizing fuzzy sets and rule-based decision-making to adapt to the
dynamic and uncertain nature of water systems. The FLC improves its ability to respond
accurately to fluctuating water levels by conducting a thorough analysis of fuzzy sets and
membership functions for both parameters. Simulations and experimental validations demonstrate
the FLC's ability to keep precise water levels within predefined thresholds. The addition of air
density as a contributing factor improves the controller's ability to adapt to a variety of
environmental conditions. The proposed system is a significant step forward in intelligent water
management, providing a comprehensive solution for accurate water level detection and control.
By presenting a versatile FLC that accounts for multiple influencing factors in real-world
applications, this study contributes to the evolving landscape of water resource management.
Keywords- Fuzzy logic, Hydrostatic pressure sensor, MATLAB R2023b, Sensor reading, Water
resource
INTRODUCTION Background
Water, as a limited and vital resource, Because of their dependability and real-
necessitates precise and efficient management to time data acquisition capabilities, the integration
meet the growing global demand for sustainable of hydrostatic pressure sensors in water level
living. Water level control and monitoring in detection systems has become standard practice.
tanks and reservoirs are critical aspects of water These sensors can provide accurate information
resource management. Traditional control about the water level in a tank or reservoir by
systems frequently fail to adapt to the dynamic measuring the hydrostatic pressure at a given
and uncertain nature of water systems, depth. The challenge, however, is in developing
necessitating the investigation of advanced a control system capable of intelligently
methodologies. This paper describes a cutting- interpreting these data and making precise
edge approach to water level detection that decisions, particularly in the presence of
integrates a Fuzzy Logic Controller (FLC) with a uncertainties.
hydrostatic pressure sensor. Our proposed FLC
goes beyond traditional methods by Motivation
incorporating two critical parameters: the
pressure of water in the tank and the density of The need for a more adaptable and
air within the tank [1]. responsive water level control system drove the
motivation for this research. Conventional level dynamics. While hydrostatic pressure
controllers frequently overlook the effect of air measures water depth directly, air density within
density within the tank, which can have a the tank can fluctuate due to environmental
significant impact on water level dynamics. Our factors, affecting buoyancy and pressure
goal is to create a Fuzzy Logic Controller that dynamics. The combination of these two
uses not only hydrostatic pressure data but also parameters aims to capture a more
the density of air in the tank as critical input comprehensive understanding of the system,
parameters. This approach aims to improve the ensuring the FLC's adaptability and precision
control system's adaptability and accuracy in across a wide range of scenarios [4].
varying environmental conditions.
Methodology
Objectives
The proposed methodology entails
The primary objectives of this research creating a Fuzzy Logic Controller in MATLAB
are twofold: firstly, to design and implement a R2023b using the most recent advancements and
Fuzzy Logic Controller for water level detection features of the software. Water pressure and air
using MATLAB R2023b, leveraging the density fuzzy sets and membership functions
capabilities of the latest version of the software; will be meticulously defined to reflect the
and secondly, to extend the conventional linguistic variables associated with these
hydrostatic pressure sensor-based system by parameters. To emulate human-like reasoning,
including the density of air within the tank as an rule-based decision-making will be used,
additional input parameter. Through these allowing the controller to make intelligent
objectives, we aim to develop a comprehensive decisions in response to real-time data. To
and robust water level control system that excels validate the FLC's effectiveness, simulations will
in accuracy, adaptability, and responsiveness [2]. be run under a variety of conditions, including
scenarios with changing water levels and air
Scope of the Study density. Furthermore, experimental setups will
be used to evaluate the controller's performance
The scope of this study includes the in a real-world context, with input data acquired
theoretical development, implementation, and using a hydrostatic pressure sensor and an air
validation of a Fuzzy Logic Controller for water density sensor [5].
level detection using MATLAB R2023b. The
addition of both water pressure and air density as Expected Contributions
input parameters adds a new dimension to
traditional hydrostatic pressure sensor-based This research is expected to contribute
control systems. The research will include to the development of an advanced Fuzzy Logic
simulations and experimental validations to Controller for water level detection that takes
evaluate the proposed controller's performance into account both hydrostatic pressure and air
under various scenarios and environmental density as critical input parameters. The use of
conditions [3]. MATLAB R2023b ensures compatibility with
the most recent software features, improving the
Significance of Two-Parameter Integration controller's performance and usability. The
study's findings are expected to lay the
The decision to include both water groundwork for the evolution of intelligent water
pressure and air density as input parameters in management systems, with an emphasis on
the FLC stems from their importance in water adaptability and precision (Fig. 1) [6].
The rule base is developed through a The final stage entails analyzing the
systematic process of defining rules that outcomes of simulations and experiments. The
correlate specific combinations of linguistic effectiveness of the FLC is measured using
variables with corresponding control actions. performance metrics such as rise time, settling
These rules encapsulate expert knowledge or time, and overshoot. Comparative analyses with
empirical insights into the behaviour of the water conventional controllers or systems that do not
system. The flexibility of fuzzy logic allows for take air density into account reveal the added
the creation of a rule base that can adapt to value of incorporating this parameter. The
various scenarios and environmental conditions, findings help to validate the proposed FLC
ensuring robust performance. design and its potential for advancing water level
detection systems.
Simulation and Testing
RESULTS
The designed FLC is subjected to
rigorous simulation and testing to evaluate its This simulation below is done in
performance under various scenarios. Dynamic MATLAB. It includes various steps to get the
simulations are possible with MATLAB final output which came from different rules and
R2023b, allowing researchers to observe the conditions.
FLC's response to changing water levels, air
densities, and external factors. During this phase,
the controller's ability to maintain water levels
As shown in Fig. 4 there is an input which has membership functions are 0-4, 2.2-7.8
function block whose name is Pressure in Pascal and 5.8-1 plots.
As shown in Fig. 5 there are input which has membership functions are 0-4,2.2-7.8
function block whose name is density in kg/m^3 and 5.8-1 plots.
As shown in Fig. 6 there are input which has membership functions are 0-4, 2.2-7.8
function block whose name is water level in m and 5.8-1 plots.
Block of water level detector which has resulting in a robust mechanism for keeping
low, medium and high membership function water levels within predefined thresholds.
plots there is the output block surface view of The addition of air density as a
the water level detector using fuzzy logic, which significant input parameter proved to be a
has parameters are pressure in Pascal, density in significant improvement, capturing the nuances
kg/m^3 and water level in m (Fig. 9). of buoyancy and pressure dynamics in the water
system. The FLC’s efficacy was demonstrated
CONCLUSION through simulations and experimental
validations under various conditions,
Finally, the combination of a Fuzzy highlighting its potential for real-world
Logic Controller (FLC) and a hydrostatic applications in intelligent water management
pressure sensor, which incorporates two critical systems.
parameters – water pressure and air density– This study not only adds to the
represents a ground-breaking approach to water theoretical understanding of fuzzy logic-based
level detection and control. The purpose of this water level control, but it also offers a practical
study was to address the limitations of and efficient solution for dealing with the
conventional systems by taking into account the complexities of water dynamics. The proposed
influence of air density within the tank, a factor FLC takes a comprehensive approach to water
that is frequently overlooked in traditional water level detection, emphasizing adaptability and
management methodologies. precision, both of which are critical for long-
The FLC, which was designed and term water resource utilization in a variety of
implemented with MATLAB, demonstrated environmental conditions. As we continue to
adaptability and precision in responding to learn more about water systems, this innovative
dynamic water level scenarios. The controller FLC design demonstrates the potential for
was able to emulate human-like reasoning by intelligent and comprehensive water
using linguistic variables, membership functions, management solutions.
and a rule-based decision-making process,
Prasad Pradip Babar (2024). Fuzzy Logic Controller for Water Level Detector, Journal of
Microprocessor and Microcontroller Research, 1(1), 1-10.