PID Examples
PID Examples
PID Controller
PID Controller
Definitions
• In the time domain:
t de(t )
u (t ) = K p e(t ) + K i ∫ e(t ) dt + K d
0 dt
1 t de(t )
= K p e(t ) + ∫ e(t )dt + Td
Ti 0 dt
integral time constant derivative time constant
Kp Kd
where Ti = , Td =
Ki Ki derivative gain
Ex (cont’d): No controller
• This corresponds to a
steady-state error of 95%,
quite large!
• Let K p = 300
Ex (cont’d): PD Controller
Ex (cont’d): PD control
• Let K p = 300, K d = 10
Ex (cont’d): PI Controller
Ex (cont’d): PI Controller
• Let K p = 30, K i = 70