Clock with thermometer mega8

Status
Not open for further replies.

Vermes

Advanced Member level 4
Joined
Aug 2, 2011
Messages
1,163
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,316
Activity points
22,318


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
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…