Pages: [1]   Go Down
Author Topic: Setting Arduino Time & Date  (Read 274 times)
0 Members and 1 Guest are viewing this topic.
DELHI
Offline Offline
God Member
*****
Karma: 7
Posts: 738
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Dear all,

Suppose assume that i am not using RTC. And using Arduino time and date lib for programming.COde will work fine with untill and unless Ardunio On. Once it get shutdown.Arduino will start from time we set for. How record the last arduino time and whenever it start it should take actual time. example like in RTC itself. Is it possible to do without RTC.

or any other way of writing time in to Arduino time library.


Moderator edit: Shouty title toned-down.  AWOL
« Last Edit: March 26, 2013, 08:06:44 am by AWOL » Logged

AMPS

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 601
Posts: 48543
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Any data that is to be persisted across power outages needs to be stored in EEPROM. However, caution needs to be exercised, since EEPROM has a limited number of write cycles (large, but limited).

Time that passes while the Arduino is powered down can NOT be accounted for.

Get an RTC. They are cheap.
Logged

Pages: [1]   Go Up
Jump to: