|
Re: PID controllers?
PID stands for "Proportional, Integral, Derivative". A car's cruise control is a good example of a system controlled by PID. You set it for a particular speed, and it controls the throttle to maintain that speed, uphill, downhill, whatever.
The first part of the algorithm is proportional to the "error", the difference between your actual (whatever - speed for example) and the set point. If you set cruise control for 40 MPH, you only want a little throttle if you drop to 39 MPH, but you want more if you drop to 30 MPH. The error of 1 MPH is less than the error of 10 MPH, and the throttle application is proportional.
But let's say the engine is powerful, and a little throttle at 39 MPH brings the car up to 41 MPH. You back off the throttle, but the whole process repeats, and you get sick from the speed changing so often... So you put in little less Proportional, but then a small speed error doesn't have any effect - so what you do is integrate the error over time, literally adding up a whole bunch of small error every second, and eventually it gets larger and you can use that to correct the small error, so 39.5 MPH gets to 40 MPH.
In some systems, you can't control the throttle so finely, so then you also use Derivative, which limits how fast you can change the throttle setting - kind of like just slowing things down a little "you can't increase more than 1/2 inch per second". This keeps the control algorithm from overcontrolling.
Many systems can get by with only P. I can be added in some cases, and only a few systems also need D to work properly.
Learn those algorithms, they are simple math (addition, subtraction and multiplication) just repeating many, many times. Once you get them, the concepts are understood for life.
__________________
I am N2IRZ - What's your callsign?
|