How to control actuator speed and direction using potentiometer