Long-Term Prop clock
QUARKSPIN
Posts: 36
I have a cousin, who got married about a year ago. His anniversary is coming up and I'd like to get him something propeller-related, as he is a geek himself. However he doesn't have enough time to play with a development board, do I decided to to make a micro-controlled picture frame. My idea is to have a LED display at the bottom, displaying how many seconds he has been married.
So my question is: Is it even remotely practical to have an accurate propeller-based clock that will run for the rest of his life and not reset during power outages? And more importantly, would a electronics noob like me be able to make it?
So my question is: Is it even remotely practical to have an accurate propeller-based clock that will run for the rest of his life and not reset during power outages? And more importantly, would a electronics noob like me be able to make it?
Comments
Once you have the accurate time it is just a calculation
to get the number of seconds from a specific date and time.
There are almost certainly algorithms somewhere on the web
for doing this. So I'd google.
There are things to remember like leap seconds that are
occasionally added to the time so You would need to allow
for them to get an absolutely accurate count.
Expecting this to run for many decades is a bit of a stretch
though. The gps system might change protocols on you.
WWV has a low frequency time signal that you can buy
cheap receiver modules for...that might be more stable
long term.
My parents have an anniversary clock that they wind just once
a year on their anniversary.. It runs a year on a winding. One of
those would be a cool gift.
Humanoido
Depending on the accuracy you require.. Beau Schwabe has created a fantastic Object found on the OBEX. See the Propeller RTC Emulator at
http://obex.parallax.com/objects/425/
This object emulates an RTC (Real Time Clock) using the timebase of the Propeller. Accuracy is only as good as the crystal. In my testing, there was about 2 seconds lost over the course of 1 day ( ~ 12 minutes a year)
Humanoido
Humanoido
Here's another real-time clock from SparkFun in a ready-to-go module complete with a backup battery good for 10-15 years (without power). You can even wire this in parallel with the Propeller's EEPROM since it also uses the I2C protocol. That way you don't need to use other I/O pins.
In both cases, you can replace the backup battery every 10 years without losing the time by making sure the rest of the circuit is powered since the clock will run from either the power supply or the backup battery if the power supply is off.
Then use a 9V battery for the propeller and the LEDs display.
When you brother will change the 9V batterie, the clock will still be running. He will not lost a second.
Also, you can add a EEPROM, and stop the date every day. That way, even if the 2 batteries died, you can still restart from a close date? That will mean 365 write operation a day. The EEPROM can take it.
JM
I think I'm going to go for the SparkFun RTC module, if I just load it with lithium cells then I could skip the external power.
EDIT: It just hit me, If i have the output in binary, I can double the geekyness and skip an external LED controller! (27 bits gets me ~102 years)
You wouldn't need an external LED controller. A Propeller is perfectly capable of handling a couple of 7-segment LEDs. You do need to keep maximum current load low, so you may need to multiplex them (turn on one digit at a time). It depends on the size and brightness of the LEDs.
Consider using a small LCD display instead of an LED display since the LCD displays use much lower current.
The LCD is a good idea, I'll look in to that. (I wonder if I could add some sort of happy-birthday routine?)
On my demo board, I drived the 6 times 17 segments LED display with only 23 pins...
So you can do more than two 7 segments digits.
JM
Maybe clock it with one of those 32Khz time xtals?
Have it display a "feed me" warning, when things get risky. Somebody can set it outside, or leave a room light on, or something like that.
The appeal to that is the clock is kind of a living clock. As long as they take care of it, the thing keeps track of the together time.