If you want an open source PID servo controller, which is also available as a very low cost kit, this one is released, tested, and works:
BOBPID1: PID Servo Controller massmind