0

RTC DS3231 battery status
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

RTC DS3231 battery status

by JS123 on Wed Oct 10, 2018 7:50 pm

Hello,

Is there any way I can check the battery status on the DS3231? I would like to know when the battery is getting low or dead so I can display a "Battery needs replacing" message to the user.

I found a post here
viewtopic.php?f=25&t=121599&p=691798&hilit=rtc+battery#p691798
that does show how to apparently read the registers but no confirmation on if that is correct.

If there is any code to
1. Check that battery backup is enabled on the DS3231
2. See what level the battery is at or if it needs to be replaced
that would really help,

Thanks.

JS123
 
Posts: 28
Joined: Tue Aug 21, 2018 4:55 pm

Re: RTC DS3231 battery status

by adafruit_support_bill on Thu Oct 11, 2018 7:06 am

There are no signals related to battery health in the status registers of the device (page 14): https://cdn-shop.adafruit.com/product-f ... DS3231.pdf
You could monitor the battery voltage directly via an analog pin of your microcontroller.

adafruit_support_bill
 
Posts: 69809
Joined: Sat Feb 07, 2009 10:11 am

Please be positive and constructive with your questions and comments.