This app note describes how a PIC16F684 can be used to implement a positional proportional-integral-derivative (PID) feedback control in an inherently unstable system.