How to control actuator speed and direction using potentiometer

h bridge