The linear combination of proportion, integration and differentiation constitutes the control quantity u(t), which is called proportional, integral and differential control, or PID control for short.
Controller Formula
In practical applications, different control combinations can be flexibly adopted according to the characteristics of the controlled object and the performance requirements of the control.
Proportional (P) controller
Proportional + Integral (PI) Controller
Proportional + Integral + Derivative (PID) Controller
In the formula
or
In the formula
Application in control systems
In a single-loop control system, the disturbance causes the controlled parameter to deviate from the given value, thus generating a deviation. The regulating unit of the automatic control system performs proportional, integral, and differential (PID) operations on the deviation generated by comparing the measured value from the transmitter with the given value, and outputs a unified standard signal to control the action of the actuator to achieve automatic control of temperature, pressure, flow, and other process parameters.
The proportional action P is only proportional to the deviation; the integral action I is the accumulation of the deviation over time; the differential action D is the rate of change of the deviation;
Proportional control can quickly respond to errors, thereby reducing steady-state errors. Proportional control can give steady-state errors except for the two cases where the system control input is 0 and the system process value is equal to the expected value. When there is a change in the expected value, the system process value will produce a steady-state error. However, proportional control cannot eliminate steady-state errors. The increase in the proportional gain factor will cause system instability.
Figure 2 Proportional (P) control step response
Integral (I) control
In integral control, the output of the controller is proportional to the integral of the input error signal.
In order to reduce the steady-state error, an integral term is added to the controller. The integral term depends on the integral of the error over time. As time increases, the integral term will increase. In this way, even if the error is very small, the integral term will increase with time, which drives the controller's output to increase and further reduce the steady-state error until it is equal to zero.
Integral (I) and proportional (P) are usually used together, called proportional + integral (PI) controller, which can make the system have no steady-state error after entering the steady state. If the integral (I) is used alone, the integral output will gradually increase with time accumulation, so the adjustment action is slow, which will cause untimely adjustment and reduce the system stability margin.
Figure 3 Integral (I) control and proportional integral (PI) control step response
Derivative (D) control
In differential control, the output of the controller is proportional to the differential of the input error signal (i.e., the rate of change of the error).
Since the automatic control system has a large inertial component (link) or a lag (delay) component, overshoot or even oscillation may occur during the adjustment process. The solution is to introduce differential (D) control, that is, when the error is large, the effect of suppressing the error is also large; when the error is close to zero, the effect of suppressing the error should also be zero.
Figure 4 Derivative
Summarize:
PI has less steady-state error than P, and PID has a faster response speed than PI and no overshoot. PID has a faster response speed than PI and no overshoot. [page]
Figure 5
Gain constant (coefficient) |
Rise Time |
Overshoot |
Build Time |
Steady-state error |
Kp |
reduce |
Increase |
Very small changes |
Reduce |
KI |
reduce |
Increase |
Increase |
eliminate |
KD |
Very small changes |
Reduce |
reduce |
Very small changes |
Table 1
Note that here
Figure 6
Parameter adjustment
When applying PID control, the proportional gain factor KP, integral time TI and differential time TD must be properly adjusted to ensure good performance of the entire control system.
The best way to find PID parameters is to start from the mathematical model of the system and calculate the parameters based on the desired response. Many times a detailed mathematical description does not exist, and this is when it is necessary to actually adjust the PID parameters.
Ziegler-Nichols method
The Ziegler-Nichols method is a PID tuning method based on system stability analysis. No characteristic requirements need to be considered during the design process. The tuning method is very simple, but the control effect is relatively ideal.
The specific steps of the adjustment method are as follows:
1.
2.
Ziegler-Nichols Setting Table
Table 2
Tyreus-Luyben
Automatic testing method:
To determine the critical period Pc and critical gain Kc of the process, the controller temporarily
disables its PID algorithm and instead turns an ON/OFF relay on to make the process oscillate. These
two parameters quantify the process behavior well to determine how the PID controller should be tuned to
obtain the desired closed-loop performance.
Figure 6
Previous article:51 MCU PID algorithm program (III) Incremental PID control algorithm
Next article:51 MCU PID algorithm program (II) Position PID control algorithm
- Popular Resources
- Popular amplifiers
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- New breakthrough! Ultra-fast memory accelerates Intel Xeon 6-core processors
- New breakthrough! Ultra-fast memory accelerates Intel Xeon 6-core processors
- Consolidating vRAN sites onto a single server helps operators reduce total cost of ownership
- Consolidating vRAN sites onto a single server helps operators reduce total cost of ownership
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- ST NUCLEO-H743ZI Review Summary
- Use the RVB2601 to make a high-precision network timing clock
- What issues should be paid attention to when using a wireless bridge for one-to-many connection?
- 【Featured Q&A】About battery protection and fuel gauge design
- Security engineering contractors are still using the traditional old method to quote. Come in and see if this works!
- Wireless control system for street lights based on PLC, GPRS and ZigBee
- [New ways to play with SAMR21] 14. LSM6DSO gyroscope sensor
- Excuse me, are the units of magnetic field strength, Henry, and inductance, the same units? The former is A/m and the latter is ohm*second
- I want to use FPGA to make an SPI Slave. I have a few questions about the clock.
- [NXP Rapid IoT Review] + First Look at IOT Kit