RTC or another alternative to wakeup from sleep

Task: I want to wake my D1 mini from a sleep (whatever mode) at a certain time of day.

Example: Every day at 6pm I want to wake the D1 and then start a sketch at 6:15pm.

I am new to Arduino but I thought (wrongly) that these things had a 'wake on LAN" or some sort of feature that would wake it up with out a physical interrupt. I have been reading about timers but that seems like it would lack the accuracy I need.

Example: once the battery runs down and I restart the D1 it's counter starts and it would be a random TOD when it was awake (not certain I worded that well).

Is the RTC, like a PCF8563 the best way to go? Is there another board I should be considering?

In the end I hope to conserve battery and not have the D1 awake all day.

For an offline, battery operated setup, a battery backed RTC is a fine choice.

The DS3231 keeps time, accurate to about +/- 2 minutes/year, and has an alarm interrupt.

The ESP can update the RTC with NTP/daylight savings after every wakeup.
See this example.
Leo..

1 Like

...

OP is making a WiFi enabled battery powered candle.
Leo..

1 Like

Thanks very much for that fascinating tidbit, but my comment was directed to anyone interested in offline, battery operated projects.

@noobcollector Do not cross post.

Cross post? I thought it made more sense to divide the my post based on the problem. As you mention, candle, landscape light, rain machine, laser lights, hoping to use battery and radio but each is unique (for me) but a common thread in this is wakening at a specific time. Please advise.

This is a cross post, and it wastes everyone's time. The relevant background to your project is in another post.

Do not cross post.

Actually it isn’t but I’ll only post questions regarding my landscape project, going forward, in my original post. happy to comply as I appreciate the help.

I'm struggling to see that. But, I'm certainly willing to shuffle / merge / lock as requested.

Up to you. But see the confusion above, where @Wawa claims that this is a WiFi connected candle project. I won't bother to participate further.

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