Escolar Documentos
Profissional Documentos
Cultura Documentos
how to make the robot start and stop where you want it to
PID is an acronym for
P - proportional
I - Integral
D- Differential
Some gures from PID without a PHD , Tim Wescott
http://www.embedded.com/2000/0010/0010feat3.htm
actuator
Response Characteristic
Controller
Physical System
Inertia/latency
sensor
Noise/latency
System Variables
Set Point : the desired sensor value
Error: The difference between the sensor output and the set point
ERROR = (sensed_value - set_point) * gain
Gain term is optional and can be used to increase/decrease t
the sensitivity of the system
Control Value: The actuation (stimulus) value applied to the physical system
Control_Value = PID_CONTROL_FUNCTION(ERROR, Kp, Ki, Kd)
ERROR from above
Kp,Ki,Kd - tuning constants that balance the contribitions from three cooperating
control algorithms -- proportional, differential, integral
Effect of Kp
Kp == pGain
Small pGain - response too slow
Large pGain - too fast, overshoot, oscillation
Effect of Ki
Control system using only a Ki term.. Again Ki == iGain in the gure, even for very small Ki, the system is difcult to stabilize (why?)
Kp and Ki combined
The combined Ki and Kp terms tend to improve the slower Kp responses from before but does less to improve the stability of the faster Kp responses