Basic Stamp Timekeeping
ajward
Posts: 1,130
Hey All!
Just wondering... what sort of timekeeping accuracy, over about 12 hours, can the Stamp manage without the assistance of an RTC? I have a DS3231, but that ==way== overkill for something that will be used once and torn down again.
The thought came about one day as Kari and I were discussing nerdy ways to be lazy. Using a servo or stepper with a timer, to push the power button on the Keurig so we wouldn't have to wait the 30 seconds or so for the water to get hot when we get up. Just to see it work once would be fun. An accuracy of 5 or 10 minutes would be just fine... unreasonable?
And yes, this a project right out of the laboratories of "The Society for Aimless Tinkering and World Conquest"
Amanda - (Wondering about a Federal grant!!!!)
Just wondering... what sort of timekeeping accuracy, over about 12 hours, can the Stamp manage without the assistance of an RTC? I have a DS3231, but that ==way== overkill for something that will be used once and torn down again.
The thought came about one day as Kari and I were discussing nerdy ways to be lazy. Using a servo or stepper with a timer, to push the power button on the Keurig so we wouldn't have to wait the 30 seconds or so for the water to get hot when we get up. Just to see it work once would be fun. An accuracy of 5 or 10 minutes would be just fine... unreasonable?
And yes, this a project right out of the laboratories of "The Society for Aimless Tinkering and World Conquest"
Amanda - (Wondering about a Federal grant!!!!)
Comments
Of course, with a little calibration, you can easily hit your 5-10 minute goal over a 12 hour period. With more careful calibration, I bet you could consistently get under a minute. There is some variance between Stamps, but any given Stamp will operate consistently under constant conditions. Hopefully your indoor temperature doesn't fluctuate much. Even if it does, you can calibrate around consistent temp fluctuations, like a setback thermostats on a timer.
I've made a BS2 clock debugging time to the screen. Lots of nested loops. You can get any accuracy you want if you put the time in to experimentally calibrate it. RTCs are for suckers! But they are also getting cheap, I posted about an I2C RTC from Ebay China for under $2.
So if you go and activate it at 2200 hours for
SLEEP (9*3600 - 600)
GOSUB hotCoffee
that should get it started at about 10 minutes to 7am. Could be tweaked for better results.
Anything that presses the Start button should be worth a federal grant!
This is the Murata resonator I use on OWL2pe data loggers: