Day of week in ic realtime ds1307

hello everyone!

Is it important to set day of week in ds1307 to exact value? without exact value of day of week, does ds1307 run well?

Thanks

It is only important if you want the day of week to be correct.

1 Like

Your computer hardware has the date/time so you can set your DS1307 to your system time with this:

RTC.begin(DateTime(__DATE__, __TIME__)); // comment-out this line after one use to not reset the time.

After the first use (setting the RTC to your system time), comment-out this line.

2 Likes

If you are only interested in the time you can just set that. In fact, if you are not interested in AM/PM (just what 'time') you can also ignore the am/pm indicator. The date/day/day of week will just default to a starting value on power up and increment from that point.

The answer to your question is that the clock will work correctly without the exact value for DoW.

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.