i am suffering under a project . when i want to push the button , the potentiometer will read the 0V to 5V which is from 0 to 1023 , then the output which is motor will move clockwise and then stopped at certain position . may some 1 guide me ?
Have you looked at the Thread planning and implementing a program that is at the top of this Forum section ? The code in it will have much of what you need.
By the way it is not a simple matter to make a DC motor stop at a particular position (not really suitable for a beginner's first project). Maybe you should use a servo?
...R