LEVEL CONTROL SYSTEM USING PI CONTROLLER AND NODE-RED PLATFORM
Abstract
This paper presents the development and implementation of an automatic water level control system for a reservoir using a Proportional-Integral (PI) controller embedded in an Arduino microcontroller. The system comprises an HC-SR04 ultrasonic sensor for level measurement, a hydraulic pump driven by Pulse Width Modulation (PWM), and an L298N H-bridge for the power interface. The control algorithm was implemented in discrete time with a sampling period of 200 ms, incorporating an average of multiple readings for sensor noise reduction, a dead zone to mitigate oscillations near the setpoint, and integral term limiting to prevent saturation (anti-windup). The system allows the selection of different reference values (10 cm, 15 cm, and 20 cm), as well as activation, deactivation, and reset commands via serial communication. For real-time supervision and data analysis, integration with the Node-RED platform was utilized, enabling the visualization of process variables such as measured level, error, integral term, and the applied PWM signal. Experimental results demonstrate that the PI controller provided stability, low oscillation, and elimination of steady-state error, highlighting the viability of the solution for educational applications and low-cost automation systems.
Downloads
Published
Issue
Section
License

Este obra está licenciado com uma Licença Creative Commons Atribuição 4.0 Internacional.