I need some input to solve an issue with my EV conversion

So I would start by connecting the pot to the analog input. Then write a program to read the sensor, then send the value to the PC so you can see what it is. It will change as the pot is moved. These values would be important when you start moving the motor / pot.

var pot_position word '<- sets up the variable for storing the pot value. loop: '<- label, you can "goto" here. adin 0, pot_position '<- the variable pot_position now holds the numeric value of the pots position. serout s_out,i9600,"Analog input reading:",dec pot_value,13] '<- this sends the value to the PC so you can see it. pause 100 '<- a small 0.1 second pause, no need to go full speed here. goto loop '<- this makes it do the routine in a never ending loop.

When the values are defined the next step would be to rotate the motor. Then close the loop to make it operate as a servo, then finally add the inputs. Any interest?