
clock will give a count of 8 at 100 rpm and a count of 166 at 2000 rpm. The output of
this circuit can also be connected to a logic analyzer or DAC/DSO combination. Of
course, either circuit can be implemented with discrete logic or in a PLD.
Commercial Software
There are software packages that can aid in tuning PID loops. Examples are
Wintune from BestSoft (www.bestsoft.com) and a PID analysis package from
National Instruments (www.ni.com).
PID Software Examples
Following are some pseudocode examples for a simple PID controller, with
various options implemented.
Basic PID Loop
Read input (actual position, speed, temp, whatever) from sensor, save
as CurrentVa ...