Try some of the Timer libraries in the playground for example http://playground.arduino.cc/Code/SimpleTimer