by Tony » Mon Nov 12, 2007 11:48 pm
Controlling the current flow through the retarder up and down rapidly enough and accurately enough is probably the biggest problem most of us are going to face. Even some expensive commercial dynos are reputed to sometimes have rather wobbly speed control, so all this is not as simple or easy as it might at first appear.
But if you have succeeded in building a dc power system that responds very rapidly in both directions, the only other thing required to finish the job is the closed loop control amplifier tuning.
It basically comes down to how much and how quickly you can apply corrections without the whole closed loop system becoming unstable. This is basically what is known as a "PID controller". Proportional, Integral, Derivative, but most controllers are usually just "PI" with no derivative action.
This "PI" controller could be written in software, built with ordinary electronic component parts, or purchased as yet another ready built commercial module.
After years of playing around with these PID controllers, I will let you into a few hard won secrets. People get into horrible trouble trying to successfully tune these controllers, when the problem is really not with the controller tuning, but with the system being controlled.
The "how much" and "how quickly" control corrections can be applied, is the whole key to getting nice tight accurate dyno speed control, without speed wobbles or instability. But the controller itself is only one part of the whole closed loop.
If the rest of the system has characteristics that vastly change from one operating point to another, then no state of tuning can be ideal everywhere. That is a fundamental truth.
First take the "how much" correction part. Suppose you have a system that was grossly non linear. At one end of the control range the system is extremely sensitive to change, at the other end of the control range, massive controller input is required to get any response in output at all.
So you start playing around with the "P" or proportional gain part of your PID controller. As you increase the gain setting, the system becomes unstable at one end, because of the extreme sensitivity. But at the other end, there is simply not enough gain to control properly. So you get awful results no matter where the gain is set.
The solution to a problem like that is to make damned sure the system is linear, or reasonably linear. If it ain't, fix it so it is.
Ideally there should be an almost direct relationship between the control voltage going into the power stage, and the resulting current flowing in the retarder coils. If that is right, the "P" gain term in the controller can be set to an optimum value, and the system will behave very well everywhere.
The "how quickly" part is the "I" or integral term. This has to do with delays in the system. The controller makes a change, and it has to wait briefly to let that change take effect before making a further change. This is actually a continuous process, but it could probably be thought of as "waiting".
If the controller responds too slowly to change, it is obviously going to make the whole system sluggish to respond. But if it responds too quickly it can apply too much correction and result in some overshoot in the opposite direction. It then over corrects , and the system can go into wild and ever increasing alternate swings. Setting the "I" term is a case of compromise to get fastest response without instability.
Now suppose your retarder responds very quickly in some circumstances, and very slowly in other circumstances. The response speed may be very different going up with increasing current, and coming down with decreasing current, and it will almost certainly respond differently to change at different current values.
When tuning the "I" term of your PID controller, it will need to be tuned to the most sluggish condition of the retarder. If you can build a retarder power unit that is sufficiently fast everywhere under all conditions, you can really get some performance out of your PID controller. Otherwise you will need to detune the PID to cater for the slowest condition if instability is to be avoided.
There is a lot to be gained by really putting some effort into the design of the power stage to make it both linear and fast in both directions. If that is done, the PID can be adjusted for really good performance. If the power stage is really crappy, nothing you can do to the PID tuning is going to fix it.
That is why I am being really pedantic and anal about the power controller, it is extremely important to get the best results.
Also known as the infamous "Warpspeed" on some other Forums.