3

I am trying to understand how a PID controller moves the poles and zeros of an transfer function. I've been playing a bit with it, but aren't able to see some kind of connection.

I mean that P and I rises the Overshoot which would mean that the damping ratio gets smaller, thereby should away from the real axis.

and D should should do the opposite, but it doesn't seem to be true with the examples i've used.. am i doing something wrong??

Well i kind of just want a general knowlegde of how it affect second order systems.

Control
  • 345
  • 3
  • 10

1 Answers1

0

So imagine this scenario:

You are driving you car towards a red stop light. As a human, you would naturally adjust your speed so that you smoothly stop in front of the stop line.

Here is how a PID controller would do it:

P: The proportional part of the controller would measure the exact distance from the car to the stop light, and drive slower and slower as it approaches the light. The P-controller will drive super slow when getting close to the light, eventually stop without actually reaching it.

I: The integral part of the controller would go fast towards the light, pass it, realise it had gone too far, drive back, drive back too far, then go forwards again, drive pass the light again, and so on. The I-controller might, in fact, never stop on the line.

D: The derivative part of the controller would know exactly when to start breaking, so that it does not break to early - like the P-controller - nor does it drive to far - like the I-controller. Instead, it would start breaking exactly when it needs to, giving a firm but smooth stop in front of the stop light.

A properly tuned PID would combine these characteristics: The P would measure the exact distance to the light, and adjust the initial speed according to this distance. The I would be more aggressive, and enforce that no breaking is done until the the stop light is close, while the D would take over breaking when it realises the car is going way too fast towards the stop light, and break firmly.

Depending on the weighting of Kp, Ki and Kd, these characteristics will be more or less visible in the final system. Of course, the example contains some simplifications. For a general tuning guide, have a look at the Ziegler-Nichols method; the first paragraph in this wiki pretty much explains it all. Note that this tuning method is merely a guide, and that you will most likely have to manually fine tune the system afterwards.

Hope that helps!

Tormod Haugene
  • 278
  • 2
  • 9
  • thanks for you answer, it cleared some things, but i am still missing an answer on how it affect the root locus of an system. – Control May 19 '14 at 08:34
  • All right. I'm a bit rusty on this, so I might be wrong, but this is how I remember it: Poles in the right half plane gives an unstable system. The further out in the left half plane the poles are placed, the faster the system will stabilize. Finally, the rate of oscillation will increase as their distance from the real axis increases (and the angle between the poles and the imaginary axis decreases). Was that more of what you were aiming for? :) – Tormod Haugene May 19 '14 at 14:06
  • Well.. more how increasing Ki,Kp and Kd moves the poles and zeroes for an transfer function. – Control May 19 '14 at 14:25
  • Well, I believe there is no single answer to that. If you, for instance, by increaseing Kp, the poles can both move to the left or to the right, depending on the system. The same can be said for the Ki and Kd parameters. – Tormod Haugene May 19 '14 at 14:30
  • hmm.. well..what about the pole and the zero which I and D will be introduced to the system, the pole will be placed at 0, but zero should change location according to its value.. – Control May 19 '14 at 14:35
  • whar about speed an such things... – Control May 19 '14 at 15:26
  • I've read somewhere that the addition of the zero make the system more stable, since the root locus gets pulled more towards the zero, and the pole make the root locus more unstable since to pushed it to the right. – Control May 19 '14 at 15:42
  • If I remember correctly, what you say is correct in their respective settings: the I can absolutely make the system unstable, but if tuned correctly, it can also make the system a LOT faster! Another reason why the I is included in systems incorporating a P controller, is because a P controller alone will never reach its reference if under constant disturbance; when the controller gets close to its reference, it will give a very small gain. If "held back" by some disturbance, this small gain will manage to not drive the system to its reference. – Tormod Haugene May 19 '14 at 21:40
  • (...) If a slightly "unstable" part is included, however (the I!), the system will always have a slight oscillation, meaning it overshoot the reference, go back, overshoot etc. instead of settling at a output (the P alone). Then again, we often don't want the small oscillations created by the I part, and therefore the D part is introduces, which dampen this oscillation. In summary: without the I, the system will often never actually reach its reference with constant disturbances present. – Tormod Haugene May 19 '14 at 21:44
  • Moreover, a system using a P and D will often be super stable, but at the cost of lower speed, and inability to handle constant disturbances. – Tormod Haugene May 19 '14 at 21:45
  • but how come will a system become slower, when poles moving more to the left makes the system decay faster.. ?? i mean faster decay => faster system?? or? – Control May 20 '14 at 09:37
  • Poles further to the left <=> faster system <=> the system settles quicker at the desired reference <=> the Error decays faster. I realize those last comments were written a bit late at night. Sorry if they caused confusion! .. :-) – Tormod Haugene May 20 '14 at 10:11
  • so just be sure Proportional => moved the poles to the right => which increases settling time, since the system decays slower. Causes the system to be unstable since the poles moves to the right. but will an slow system cause overshoot?? – Control May 20 '14 at 10:46
  • (...) Integral: moves the poles to right, by adding a pole to the system. which increases settling time, since the system decays slower. Causes the system to be unstable since the poles moves to the right. but will an slow system cause overshoot?? – Control May 20 '14 at 10:48
  • Derivative: moves the root locus to the right by adding a zero the the system, thus making the system response faster. Faster system => decreasing settling time, but how come does it not become oscillatory..??

    Sorry asking so many question.

    – Control May 20 '14 at 10:49
  • 1
    Never mind.. I've realized it, it because of the increasing and decreasing damping ratio. – Control May 20 '14 at 12:52