I am a tinkerer with the Arduino platform…which has led me to an interesting project. A friend was contacted by a local church to attempt to get the 1920’s era steeple clock going again. Since he new I fiddled with Arduino’s, I was drug into the project.
Scope: the old clock motor was a DC motor and is long gone… so we have no idea exactly how fast it turned…we believe it to be 1 RPM at the main clock input. I have a stepper motor being driven with a Sparkfun Easy driver and a toothed belt driving a larger gear which will attach to the clock input. While I can control the speed of the stepper by adjusting the delay’s…it is not quite accurate enough.
My thought was to attach a IR beam switch and run the gear slightly fast… and then compare elapsed time to the 60,000 millisecond interval and calculate a delay (interval-elapsed time=delay. this in theory would keep the clock adjusted roughly every minute. It is how the clock was modified with the old motor except it would stop every five minutes… and since it is not currently running … we have no idea how accurate this was. I have spent the better part of two days researching and attempting numerous code schemes without success.
Question: Am I thinking of the right process…and just need help with code…or is there a much better idea?
Any input or assistance would be greatly appreciated as I think I am in over my head.