cancel
Showing results for 
Search instead for 
Did you mean: 

Vbat on RTC

Hi everyone,

 

I'm using a STWINBX1.

Some documentation say that RTC can be plug to Vbat. In my case, my board won't be plug to current and will only work with a battery.
My question is simple, is RTC can "remember" date and time if the battery run out of energy ?

I read that some RTC on modern computer can work without battery, with a crystal. But I can't find a similar information for my board.

Thanks

 

12 REPLIES 12

You said you're using STWINBX1 board.

After checking its schematics, and unfortunately for you, VBAT is tied to VDD in the PCB:

SofLit_0-1709029111898.png

So if the VDD is lost you lose the time and date.

You said your board have a battery.. It could be to power all the board not Vbat pin. So you need in that case to guarantee that the battery keep feeding the system to prevent losing time and date.

Above I'm talking about a battery that could be connected to Vbat pin.

Hope I answered all of your questions.

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.

Hello,

I'm looking for a way of keeping correct timestamp even if Vbat is not powering anymore the board.

I checked online solutions to find a way to "secure" the timestamp if Vbat is out of power.

So, I know that if Vbat is down, I lose timestamp. But I'm looking for solutions to retrieve a correct timestamp when Vbat is reloaded.

- HTTP API call ?

- Provide a new timestamp from a phone with bluetooth ?

My ideas seems a bit complicated (as they use WiFi or BLE...), and I dont find anything online.

Is there known method for this type of problem ?

I want to create a consistant solution which require the minimum of effort to the user. 

Hello,

You can use an external RTC module backed up with a battery like these:

https://learn.adafruit.com/adafruit-pcf8523-real-time-clock/overview

For this you need an I2C bus communication available on your board.

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.