Loading...
Pages: 1 [2]   Go Down
Author Topic: Time comparision  (Read 542 times)
0 Members and 1 Guest are viewing this topic.
Grand Blanc, MI, USA
Offline Offline
Edison Member
*
Karma: 43
Posts: 2475
"We're a proud service of the Lost Electricity Reclamation Agency"
View Profile
WWW
 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?
Logged

Get the infamous "One Million Ohms" board at tINDIE.com: http://tinyurl.com/BuyMohms

0
Offline Offline
Newbie
*
Karma: 0
Posts: 16
Arduino on the rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

At http://fjkraan.home.xs4all.nl/digaud/arduino/index.html 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 ;-)
Logged

Pages: 1 [2]   Go Up
Print
 
Jump to: