You are not logged in. Your edit will be placed in a queue until it is peer reviewed.
We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.
Required fields*
-
1No. You will see that you will need to readjust the time regularly. The DS1307 isn't that precise.dda– dda2015年12月01日 17:20:58 +00:00Commented Dec 1, 2015 at 17:20
-
1But since you have a network connection, it would be good to look into running NTP. NTP (network time protocol) will hold your time to within a fraction of a second.dlu– dlu2015年12月01日 17:59:56 +00:00Commented Dec 1, 2015 at 17:59
-
2No matter how good the RTC is there are reasons why you might want to set the time – battery failure, summer time, moving to a different time zone, initial setting error, ...).dlu– dlu2015年12月01日 18:02:10 +00:00Commented Dec 1, 2015 at 18:02
-
1NTP expects the network to go down from time to time. It will recover as soon as it can communicate with its peers again. In the mean time the RTC will help you stay close and will give you a good estimate of the time if you need to reboot. You could use NTP to update the RTC from time to time as well.dlu– dlu2015年12月01日 18:58:23 +00:00Commented Dec 1, 2015 at 18:58
-
1I would just let it run. You could cut it down to every few minutes or even every day depending on how good a job the Arduino is doing of keeping time. But I don't think you'll have issues of CPU utilization.dlu– dlu2015年12月01日 20:50:02 +00:00Commented Dec 1, 2015 at 20:50
lang-cpp