I was just reading about changing the polarity to change motor direction in the book, Arduino Robotics. It suggests using an H-Bridge. There are many configurations of this component to suit many purposes. Is the ball valve driven by a motor or a servo?