A free 74HC00 will be waiting for you. Rob's SR flip flop should ring a bell. Is it really the case your valve has no limit switches? So if one or the other motor is left on it just runs the valve to its stop and stalls? -Pete