Anyone know how I can control the speed of a motor with a potentiometer for the input, a high-speed counter for the feedback and the output to be between 0V and 10V. How does the resistance of the pot affect the parameters in my program?