See Controlling a Solenoid Valve from an Arduino. Updated. Using the Arduino to control the solenoid valve is simply a case of setting a pin high for the appropriate amount of time. There is, however, a caveat, the solenoid works at a different voltage to the Arduino and you cannot ...
For the following examples I am using a Shako PU220AR Solenoid valve with 24v coils. These draw around 0.275 Amps. The valve is a normally closed and uses an electromagnetic coil to open. Apply a current the coil charges creates a magnet that moves a plunger which opens the valve. Stop ...