Pages: 1 [2]   Go Down
Author Topic: Time comparision  (Read 1220 times)
0 Members and 1 Guest are viewing this topic.
Grand Blanc, MI, USA
Offline Offline
Faraday Member
Karma: 95
Posts: 4089
CODE is a mass noun and should not be used in the plural or with an indefinite article.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Anyone have advice for a working clock?  I have an RTC module, but I don't know how to program it to remember time.
What sort of RTC might that be?

MCP79411/12 RTC ... "One Million Ohms" ATtiny kit ... available at

Offline Offline
Karma: 0
Posts: 19
Arduino on the rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

At is an example of a timer clock based on the DS1307 switching a relay on time and light conditions. For each time comparison I convert the time from the RTC to seconds (on this day).

The code structure could be better, but I ran into RAM limitations, so I left it as is. It is good enough for me ;-)

Pages: 1 [2]   Go Up
Jump to: