The crystals you’ll find attached to microcontrollers or RTCs are usually accurate to 100 parts per million at most, but that still means if you’re using one of these crystals as a clock’s time base, you could lose or gain a second per day. For more accuracy without an atomic clock, a good solution is an oven controlled crystal oscillator – basically, a temperature controlled crystal. It’s not hard to build one, and as [Roman] demonstrates, can be built with a transistor and a few resistors.
The heating element for this OCXO are just a few resistors placed right on the can of a crystal. A thermistor senses the heat, and with more negative feedback than the Hackaday comments section, takes care of regulating the crystal’s temperature. A trimpot is used for calibrating the temperature, but once everything is working that can be replaced with a fixed resistor.
This deadbugged circuitry is then potted in five minute epoxy. That’s a bit unconventional as far as thermal management goes, but the results speak for themselves: [Roman] can get a clock with this circuit accurate to a few seconds per year.