P, PI, PD controller theory

The tutorial controls a car to run 100 meters and then stop in a PID control mode.

Proportional (P) controller

Proportional control is the simplest control mode: the output of the controller is proportional to the input error signal.

Example effect: Let the car run 100 meters at a fixed speed (such as 3 meters/second), then the car can only stop at 99 meters or 102 meters.

Proportional-integral (PI) controller

P: Rapidly reduce the error, there is a steady-state error.

I: Eliminate the steady-state error.

Proportional-integral (PI) controller can make the system have no steady-state error after entering the steady state.

Example effect: Run to 102 meters at a certain speed, then turn around and continue running, run to 98 meters (the control time is uncertain), and then turn around and run to the 100-meter finish line. After shaking back and forth several times, you will definitely reach the 100-meter finish line.

Proportional-derivative (PD) controller

P: Rapidly reduce the error, there is a steady-state error.

D: Predict the trend of error changes.

Proportional-derivative (PD) controller can improve the dynamic characteristics of the system during the adjustment process.

Example effect: After running 103 meters at a certain speed, run back to the end position, and reach the position of 100 meters, when there is no static error, the control amount is also zero; if the parking place is 1-2 meters away from 100 meters and there is still a static error, the control amount is not zero. The car will continue to move back and forth.