Quote Originally Posted by mister_e View Post
In your example you used ADCIN 1,pote to read GP1. Change it to ADCIN 5,pote. Sure you'll need to change your hardware and some regisers settings as well.

Next step will be to use a TIMER interrupt instead.
I will do two things, 1st etch a pcb for the circuit and test it again, second try with a 16F628A

I let you know. thanks!