Have you taken a look at crtuschows schematic? Also, are you sure you want to use a pot for this? Wouldn't an encoder be better suited for this task?waste time and resources??! Nobody asked you to come here and waste your time.., you can freely go, we don't need you. keep your time and your resources for yourself.
***
To everyone else;
I wrote "Please reply with a schematic so i can test it" I didn't meant anything bad, i just asked if possible to reply with a schematic so i can test it. I don't understand what was wrong with it but I do understand that there are many bad people who trying to act as a smart and funny but instead they acting stupid and they doesn't even noticing it...
I can talk, write and read in 9 different languages, Croatian, German, France, English, Bosnian, Serbian, Roma, Turkish, Albanian). Those above making jokes about my comment, should think again what is difference between me and them, i am sure they are so stupid so they can just talk their mother tongue as they needed all their life to learn it so that is how smart they are.
Here's an encoder for your consideration: https://www.newark.com/bi-technologies-tt-electronics/en11-hsm1af15/incremental-encoder/dp/63M1217