I have been getting lost of questions from readers about control loops, loop stability, specially relative to switching power supplies. And now one of him asked outright that I write a web page about this matter. Of course, control loops are amply and widely treated in electronic engineering books, but most of these books rely heavily on math, while most practical, hands-on electronicians seem to abhor math more strongly than nature abhors vacuum!
So I will try to explain these matters in physical terms most people can visualize and understand. I will have to use some math, unfortunately, but far less than most textbooks do.
It's all about having some device with an input and an output, which has a certain behaviour: Give it some input, and it will produce a specific output that depends on this input in some way. And then, take a sample of that output, compare it to what you want that device to do, and calculate just the exact right input needed to force that device to produce the output you want. As simple as that.
Not simple enough? Well, look around you! The world is full of control loops! For example, look at a car moving down the highway. The car and its dynamic behavior is such a device. The input is the position of the steering wheel, while the output is the direction the car actually goes. The transfer function from the input to output is a complicate one, not linear at all! It may be close to linear while the car is moving slowly, without any wind. It will turn to whatever side the steering wheel is turned. But when there is some side wind, the car will tend to move sideways with the wind, and the steering wheel needs to be turned slightly just to keep the car going straight! The same happens when the road isn't perfectly level. When you drive over gravel roads, the tires tend to slip significantly, and you need more rotation of the steering wheel to produce a certain change of travel direction. And as the car goes faster, things get really weird! In a turn at high speed, the car might follow the steering wheel input up to a certain amount of rotation, and then suddenly the tires start sliding, the car simply stops following steering wheel input! At that point, a totally different strategy is needed to recover control, like moving the steering wheel in the opposite direction, until control is re-gained , and then moving it more moderately.
With the above, it's clear that to make a car go straight, it isn't sufficient to tie the steering wheel in a fixed position. Instead, some feedback is needed, that closes the loop. This feedback usually these days is still a human being, sitting behind that steering wheel. It senses what the car is doing, mainly through its eyes, but a good driver also feels what the car does, through, well, the part of his body he is sitting on. He processes all the information, and constantly makes little corrections to the steering wheel position. If this human feedback system is working properly, the car stays well centered on the road, and follows all turns. If the human feedback system is still in the learning phase, and thus is too slow in processing the sensed information, the car will likely go in slalom lines, but still stay on the road, hopefully. And if the human feedback system is processing the information far slower than normal, for example because of having drunk several whiskeys, the usual outcome is that the car ends up off the road, against a tree, lightpole, or stuck in a building.
This teaches you that control loops need to be fast enough for the process they are controlling. Remember this. As a circuit designer, your task is designing control loops that don't behave like they have drunk whiskey. Or at least not too much!
Back to homo ludens electronicus.