Skip to main content

Water Level PID Control

Industrial water tanks required precise level control with minimal overshoot and fast settling time using low-cost hardware.

Water Level PID Control project image
Arduino UnoVL6180X LIDAR SensorWater PumpRelay ModuleC/C++ (Arduino)MATLAB (system identification)Simulink (simulation)

Overview

Precise liquid level control is a fundamental requirement in process industries. This project implemented a PID controller on an Arduino Uno to maintain water level within ±2.5 mm of setpoint using a VL6180X Time-of-Flight LIDAR sensor.

Technical Approach

The plant model was identified using MATLAB step-response analysis before any controller tuning. The discrete PID algorithm runs at 50 ms sampling intervals with anti-windup clamping to prevent integrator saturation during large disturbances.

Results