Solar Powered RTC

An unexpected request arose for needing to send two texts at 1000H and 1600H everyday 24/7 from my current Arduino project. I have done my research and believe that my best bet is to use an external RTC powered by a coin cell battery. This will avoid the 'clock reset' problem when power is lost.

While that will obviously work, I think that replacing the coin cell battery with a rechargeable 3.7V Lithium polymer battery recharged with a solar panel would be a better solution in many repects. Replacing the coin cell battery (in an enclosure) is a concern because I may not be around to replace this battery and no one else will know how or be willing to do this. Non-technical types tend to break things when they go where they should not.

The problem I face is learning how to code the recharging of the LiPo battery from the solar panel. The board I use (Adafruit Feather MO WIFI) has a built-in charging circuit that keeps its LiPo battery charged when not in use. That said, I wonder if this charging circuit can charge TWO LiPo batteries??

All thoughts and comments are most welcome.

Thank you!

The DS3231 RTC (among others) will run on a coin cell for several years. You probably can't expect more reliable operation from anything you build yourself.

Presently there are no proven, reliable methods for hobbyists to recharge LiPo cells connected to other active circuits (as you expect from your phone).

Thank you for your feedback.

Since I could find zero useful info on this subject I assumed what you just noted. I will save myself a lot of stress and just go with the coin cell RTC setup.

I do have to wonder why it would not be possible to 'GET' real time from the internet and use that time to trigger texts with. I am looking into that possibility and avoid the external RTC altogether.

I appreciate your help.

It is possible (use an NTP server), but you must have an internet connection.

Definitely possible...
https://www.google.com/search?q=arduino+ntp+clock

It could also be done with a normal HTTP request. There are lots of APIs you can use which will give you the time. Worldtimeapi.org as an example.

Its called a SUNDIAL! The Original Solar Power RTC!
sundial
(Sorry, couldn't resist!)

Thanks for your comment. I do have a wifi connection.

Thank you for the link. I will take a good look at all of that.

Actually, any good Boy Scout would know that this is the original real time clock.

boy-scout-real-time-clock

Nice try.

You can get a rechargeable version of the coin battery in a DS3231 and the board will keep it topped up .

Example

I jumped out of my chair when I read your post, but ...

I will continue looking for this RTC.

Thanks for your comments.

I THINK most have the charger bit , if not using a rechargeable battery , you are supposed to disconnect it ! ( it’s the diode in your picture )

But do check before buying !!

Read this

The battery you need is a rechargeable version of the CR2032

I think all those ZS-042 modules have the recharge circuit built in. So you would need the rechargeable version of the battery, which I think is the LIR2032. If you use a regular cell, you're supposed to disable the charging circuit by removing the diode or resistor, or cutting a trace.

But I think you would find that a regular CR2032 would last a long time, and the LIR2032 will be expensive. The DS3231 draws about 1.2uA when on battery power. You're probably looking at years of battery life.

Plus the typical LIR2032 battery is much lower capacity (20%-30%) and won't provide nearly the run time of a CR2032 without regular recharging.

Thank you very much for your post. Seems to be many rabbit holes to fall into if one is not careful.

I have since learned that there exists an coin cell breakout.

I had never heard of such a thing but that may solve my coin-cell-replacing by not-technical types worry. If I can make this breakout board accessible EXTERNAL to my project enclosure, then I'm good to go.

I could mount a small external enclosure on the right side of the main enclosure as shown above to house the coin cell breakout board. This is not fool proof, but is a better alternative to having someone poking about in my main enclosure.

This will also eliminate having to tie into a timeAPI to keep the time current.

Thanks again for your help.

Thank you so much for your informative comments.

I think you are correct in the longevity of the CR2032 batteries. I think this is the best solution and saves me the time of having to code up a link to a timeAPI.

Thanks again.

Thank you for your post.

I was not aware of the less-than-optimal capacity of the LIR2032 batteries. I have opted to use the non-rechargeable variety and avoid all the drama.

Thanks again.

I would just add that if you use an RTC you'll have to deal with daylight saving time if you want to report data at the same times every day. However, it looks like they're about to eliminate leap seconds, so you won't have to worry about that. :slight_smile:

The RTC's all drift to one extent or the other. Youll have to re-sync occassionally. Manual or automatic is up to you, but it will become necessary eventually. Plan for it.