PID control

Yes correct, that is exactly what I want to do. The only problem is my servo is not responding and I cant work out wether it is my code or if there is not enough power going into the boards.

I have 5v going in through usb and 9v battery connected to motor shield vin, surely thats enough power?

The twisting of the knob at different speeds is to prove that the precision and tuning is perfect.. I have created a spreadsheet on excel which will work out how long it will take for my PID to react without overshooting and being a controlled system. I just want to prove my workings out are correct.

I believe my only set back right now is the code itself and the servo not having enough power (I have tried the knob library code and the servo did not respond, after connecting a serial comms to it the 'twisting pot' responds but the servo does not)