A short post on the setup of using a solenoid valve with the Arduino http://opensource-torchris.blogspot.com/2009/03/simple-arduino-fluid-control.html