# set up arduino connection
port = "COM" + raw_input("Please enter your arduino com port #: ")

try:
    ser = SerialPort(port)
    ser.BaudRate = 9600
    ser.ReadTimeout = 5
    ser.Open()
    ard = Arduino(ser)
except:
    print "Arduino cannot be connected"


# tell arduino this is stage zero
ard.valveOperation(0)
time.sleep(5) # temprorary wait until operation is done

# tell driver this is stage zero


# tell arduino this is stage one
ard.valveOperation(1)
time.sleep(5) # temprorary wait until operation is done

# tell driver this is stage one


# tell arduino this is stage two
ard.valveOperation(2)
time.sleep(5) # temprorary wait until operation is done