Timing with Arduino

So we've made a small change to our strategy, we're trying to work the solenoid valve at 1 or 2 hz. Would this be easier to pull off?