jaredokie said:
By process I mean the sequence of steps a computer software system takes to adjust the output of the system whether the process be cruise control, temperature, pressure etc.
Do you understand analog PID controllers?
They're just a summer.
They measure the process being controlled, be it speed or temperature or whatever, and compare it to desired value. The difference is called "error".
That "error" is what it performs its PID actions on.
So the controller multiplies present value of "error" by some gain, result is
Proportional term.
It also performs a time integral of "error", result is
Integral term.
It also differentiates "error", result is
Derivative term.
It sums those three terms and result is output of controller.
It is the job of the user to connect controller's output to something that can physically affect the process, like a vacuum diaphragm that can alter throttle position for a cruise control , or the valve that admits water into your toilet storage tank.
It is user's job also to connect it in such a direction as to drive error toward zero,
and to figure out what gains to apply to P, I and D terms to get suitable system response when the loop is closed.. So yes, all that is needed is software, mental sweat and real world interface equipment.
Micromint site has sample controller programs for their PIC microcontrollers .
PID controllers date way back . The basic math was worked out by Descartes but of course he didn't have machinery to control..
In 1960's we used analog pneumatic ones that operated on compressed air - an orifice was the analog to a resistor, and volume chamber to a capacitor. They were nice because they were impervious to radio interference, power line glitches and lightning. By 1970's analog electronics were replacing them, and by 1990's embedded microcontrollers were sweeping the market.
So all your PC needs to do is mimic the steps above.
Since it includes an integrator you'll need to provide "Tie-Back" to define initial value of the integral term. Our pneumatic controllers had a pressure gage and knob for that purpose.
A limit on integral term is necessary in a computer because it can integrate to whatever is the limit of its math package(10^35 or so?). Our pneumatic integrators were limited by their supply pressure of 18 psi.
The derivative term is an approximate derivative, of form \taus/ (\taus+1) so as to keep it practical in presence of process noise..
I hope this helps.
old jim