PID motor control with an Arduino from Josh Kopel
A good example of transforming DC motors into servo and implementing PID control. It uses an Arduino and a Motor Shield to control the DC motor. This link has provided most of the code requirements and working description. [Read complete article]