pk2010
Newbie level 4
I made a device which uses 18650 battery for runing RTC. A coin battery was not possible because the customer did not want the hassle of changing batteries for at least 3-4 years. The 12v is converted to 4.2v (because there are some other things on board which run @4.2v)
I connected the VBAT pin of STM32F103 directly to the battery and since datasheet said that no CAP should be added to vbat pin if there is a battery since the leakagae current of CAP will be roughly of the order of current in vbat pin, so it will have shorten the battery life.
60 devices are already installed in remote sites and we are facing problems of RTC resetting to random values when main power supply is turned off and ON. Some people have suggested that since the battery has protection circuit , it might be momentarily disconecting the batteries when tp4056 starts charging. So the power supply to RTC is not stable.
Thus I want to add a few components to make the power supply to RTC clean. I am thinking of adding a 1uf and 100uf by scratching the PCB traces. Of course too much tinkering wont be possible. So I want to ask are there some other components which i should definitely add ? A pseudo schematic is attached