Proportional integral derivative (PID) is a control loop feedback mechanism. The main point of using a PID-based control is for efficiently controlling motors or actuators. The main task of the PID is to minimize the error of whatever we are controlling.
It takes an input and then calculates the deviation or error from the intended behavior and ultimately adjusts the output.
Line following may be accurate at lower speeds, but at higher speeds, things may get out of hand or out of control. That's when the PID comes into the picture. Let's have a look at some of the terminology:
- Error: The error is something that the device isn't doing the right way. If the RPM of a motor is 380 and the desired RPM is 372 then the error is 380-372=8.
- Proportional (P): It is directly proportional to the error.
- Integral (I): It depends on the cumulative error over a period...