Time keeping solution?
Hi,
I'm looking for something that can work as a timekeeping device. It will be propeller based, so initially I looked at a more accurate crystal. Unfortunately, mouser didn't seem to have anything that was any better. So I looked at timekeeping chips, and I found this one that seemed like it would work, and I found a matching crystal here that matched on the frequency. My question is three fold:
1. Is is possible to tune the propeller crystal using a variable capacitor? The data sheet for the timekeeping chip mentioned that's what it does.
2. If not, what range of capacitance is needed for the variable capacitor to tune the crystal with the timekeeping chip?
3. Is there a better way to keep time?
This is for a clock project, so a drift of up to two seconds per day would be okay, although a more accurate solution would be great.
Thanks for all help..
Post Edited (SRLM) : 1/14/2009 5:51:36 AM GMT
I'm looking for something that can work as a timekeeping device. It will be propeller based, so initially I looked at a more accurate crystal. Unfortunately, mouser didn't seem to have anything that was any better. So I looked at timekeeping chips, and I found this one that seemed like it would work, and I found a matching crystal here that matched on the frequency. My question is three fold:
1. Is is possible to tune the propeller crystal using a variable capacitor? The data sheet for the timekeeping chip mentioned that's what it does.
2. If not, what range of capacitance is needed for the variable capacitor to tune the crystal with the timekeeping chip?
3. Is there a better way to keep time?
This is for a clock project, so a drift of up to two seconds per day would be okay, although a more accurate solution would be great.
Thanks for all help..
Post Edited (SRLM) : 1/14/2009 5:51:36 AM GMT
Comments
I'd use an OCXO 5 MHz oscillator module instead of a crystal. Most crystal manufacturers make them:
www.golledge.com/pdf/products/ocxos/mcocxo.pdf
One of those should be accurate enough for you.
Leon
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Amateur radio callsign: G1HSM
Suzuki SV1000S motorcycle
Post Edited (Leon) : 1/14/2009 6:32:24 AM GMT
If you are powering your project off the power lines you can count AC cycles. The average frequency is very precise. Since power outages are usually brief the standard crystal should be ok for the short periods on battery backup. Good long term accuracy, not so good for short term.
A high accuracy crystal or oscillator, kept at a near constant temperature to be as stable as possible. This would mean having the crystal/oscillator or the entire board mounted in a temperature controlled enclosure. Good long and short term accuracy. Not too practical for battery operation.
Drift can be corrected for in software by measuring the ambient temperature and making corrections based on that. First you would need to create a drift table or curve by comparing your clock with a very accurate calibrated time signal over the temperature range you expect in use. Fairly good accuracy for both long and short term. Producing the calibration data is time consuming and requires additional equipment.
Leon
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Amateur radio callsign: G1HSM
Suzuki SV1000S motorcycle
I like the crystal that you mentioned Leon (it's easy on my part), but so expensive! For $100 I could buy a GPS to do the same thing. It's a very good device, but much too expensive for a hobby project. Do you happen to know a source that can provide something for cheaper?
@kwinn
I'll probably power my circuit from a standard wall wart, so I won't be able to have access to the AC source. As for having a mounted heater and a control loop it seems beyond my skills. However, I do like the idea of setting standards (#3). I could probably put the module in the refridgerator for an hour or so, measure how many pulses are in a minute, then do it at room temperature for an hour, measure, and an oven at low temperature. Assuming that the crystal deviation is more or less linear, this should work well with a temperature probe. However, if at all possible I would like to avoid extensive preparation.
Any other possible solutions? Or a value for the trimming capacitor?
Thanks for all the help.
Leon
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Amateur radio callsign: G1HSM
Suzuki SV1000S motorcycle
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
When the going gets weird, the weird turn pro. -- HST
1uffakind.com/robots/povBitMapBuilder.php
1uffakind.com/robots/resistorLadder.php
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
How important is the load capacitance? The reason I ask is that there are lots of highly accurate modules available ( Here for example) that could keep time for years, except the stated capacitance is 12.5 pF while the time keeping chip wants 6 pF. Same thing with crystals that I can hook up directly to the propeller. So, would the crystal I mentioned work even though there is a difference in the capacitance, or could I use an additional component to get it within spec?
Ideally, I would like to use a more accurate crystal on the Propeller itself, and not have to use a dedicated timekeeper. Speed isn't really an issue, since all the propeller will do is drive the clock.
That means:
The time could be off as much as 631 seconds ( 31,536,000sec. x 0.000020 ) in a year due to the calibration tolerance. Worst case error slightly better than the 2 seconds per day you specified.
If the crystal is kept close to room temperature (20-25 degrees C) the temperature variation could add another 0.631 seconds (31,536,000*5*0.000000004 ) to the error.
So if you could correct for the calibration tolerance it would keep time to within a few seconds a year. There is a simple way to do that, and that is to set the clock using one of the time reference signals initially, wait for a period of time (months) and then compare the time to the reference again. The difference can be used to correct for the calibration error. If you are using a high frequency crystal you could even correct the number of cycles to count for a second.
If temperature stability is a problem it is not hard to build an oven for the crystal. Epoxy a temperature sensor on one side of the crystal and a 1/4 watt resistor to the other side, put a blob of insulating foam over the assembly, use a transistor and a prop pin to turn power on and off the resistor based on the temperature you read from the the sensor. Works well and lasts a long time.
But, you mentioned that we can correct for the drift of the crystal? My impression is that one day the crystal would be +20 ppm, the next it would be -10 ppm, maybe a week later +5 ppm, and so on. So, is the rating for the +- 20 ppm a constant error in manufacturing, or is it the natural changes that the crystal experiences from one moment to the next (or something else entirely)?
Joshua