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

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
- Steady-state error consistently below 2.5 mm across 50 test runs
- Overshoot limited to under 2% of full-scale range
- Settling time under 8 seconds from a step input of 10 cm