Skip to content

sonofusion82/ds32khz_clock

Repository files navigation

Simple PICmicro-based digital clock with DS32KHZ TCXO

When most normal people wants a table clock, they just buy one. A simple clock from a "pasar malam" stall will cost about RM10.

But for some crazy people, they would rather spend RM50 and many hours over several weekends to build one!

As you may know, most digital clocks seems to drift up to 20 minutes per year. Therefore, instead of using standard 32KHz "watch crystal", I've decided put a DS32KHZ TCXO (temperature compensated crystal oscillator).

I've tried measuring the accuracy with an NTP synchronized Raspberry PI measuring a PPS signal from the PIC. It seems to be accurate to less than 1 second per week. So, if the datasheet is correct, the it should be accurate with within 1 minute per year!

Here's the source code and the schematics open-sourced with MIT license.

It was created with MPLABX IDE and it can be compiled with both XC8 and SDCC compilers. It has been tested with both PIC16F72 and PIC16F628A, other 28-pin PIC micros might work with some tweaking.

Some pictures: Final

Before Assembling

and schematic:

Schematics

About

Simple PIC16F72-based digital clock with DS32KHZ TCXO

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published