Did u look on the internet ? I'm sure there are plenty of arduino programs on the web
I hope u'll find ur progrm.
cheers