Vermes
Advanced Member level 4
It is a construction inspired by the subject of microcontrollers. TIMER1 increases the “seconds” every 1s.
Initially, it was intended to use Attiny2313, but DS18B20 support would took 95% of FLASH memory, so it was impossible to fit the clock there.
Accuracy is 4 seconds per day, which gives 28s per week. Of course, it could be further improved, but does not need to be as accurate as the atom clock.
Schema:
As it is shown – the device is not very complicated. The classic application of the sensor Dallas DS18B20, two buttons to set the hour, stabilizer 78M05 – M version, because it needs only 100mA.
Fragment of the program, setting the initial value of the timer:
Code:
Config Timer1 = Timer , Prescale = 64
Enable Timer1
Enable Interrupts
Timer1 = 3036
On Timer1 Co1s
Link to original thread (useful attachment) – Zegarek z termometrem mega8