Connecting a battery to STM32F401 to supply power only at night
Hello ST community.
I'm using STM32F401RDT6 microcontroller which is powered during the day by a solar panel (power regulators converts the panel's voltage to 3V3). The MCU uses its internal RTC for logs and the issue is to keep the RTC running from the low power mode during the night.
I would like to place a coin bettry and connect it to the MCU via the VBAT pin in a way that during the day only the solar panel will feed the MCU, and at night only the battery will do so.
Connecting the battery directly to VBAT causes the battery to drain out even during the day which is not desirable.
I Couldn't find any good guidelines for this solution. I hope this forum could help.
Thanks in advance,
Raz.
