Hello!
I'll go right out and say I have very very little experience with coding. A friend of mine did a good majority of the work in the program I'll link below, and I basically added a few things here and there and learned a bit about how it works.
IntervalTimer myTimer; // Intervaltimer...