[BPI-R3][BPI-R4] Does the BPI-R3/R4 have a RTC?

Just to make sure…you did start counting from 0 hrs after each round of power off & on and checking the kernel dmesg output?

I have UART (serial debug console) disconnected. Have two RJ45 plugged in. DC12V plugged in but powered off.

Maybe I should try with the two RJ45s unplugged…

Of course started from 0 after poweroff and swited off on my dc powercable…but i guess my serial adapter gives enough power to the rtc

Tested with all RJ45 unplugged. Cannot survive 5 hours.

So I think I reached my conclusion. My R4 and possibly production batch 3 & onwards can survive 4hrs+ but not passing 4.5 hrs.

Still very good.

Guys, need some help. I’m trying to play with RTC, but :

root@munich:~# cat /etc/modules.d/rtc-pcf8563
rtc-pcf8563
root@munich:~# hwclock
hwclock: can't open '/dev/misc/rtc': No such file or directory
root@munich:~#
root@munich:~# dmesg | grep rtc
[    5.746191] FIT:          flat_dt sub-image 0x0058a000..0x0058a11c "fdt-mt7988a-bananapi-bpi-r4-rtc" (ARM64 OpenWrt bananapi_bpi-r4 device tree overlay mt7988a-bananapi-bpi-r4-rtc)
root@munich:~# i2cdetect -y 1
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:                         -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- 51 -- -- -- -- -- UU -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: UU -- -- -- -- -- -- --



Enable RTC on Banana Pi BPI-R4:

Source:

Adding my 5 cents here, task was to get RTC running. Only for those who are able to do fine soldering on the PCB.

From a previous project I had some coin batteries with fixed cables and at the end the little white plug as shown above. I cut one of the cables from one battery and plugged it into RTC connector on PCB of BPi-R4. Surprisingly there was no voltage at the end of the leads. Likely the width of the contacts in my white plug is wider than the size of the pins in the RTC connector. So I added a 2.5 mil 2pin header at the back of the RTC connector. and the appropriate plug on other side. As dicussed above, safety issues to maintain CE, I used a diode 1N4148 and a 2k2 1% resistor, rebuilding the circuitry from the 3.3VD in schematic to supply the RTC from power supply. As the pin header is a pretty good post, I added the elements on the post and soldered the leads of the battery at the other end.

Result: power to RTC can come either from 3.3VD or from coin battery. Tests showed that RTC is now correctly surviving power off even for longer time. As the RTC header is at the supply voltage of RTC chip, I could use it to do some measurement. It turns out that when applying a power supply, the voltage at the post is little higher than when running on battery. This is good as we do not want unneeded discharge of the battery. The diode prohibits voltage going back or even charging battery. The resistor somewhat limits maximum current at battery, so prohibiting heat by fast discharge. Both elements together add to safety.

At the post, so at RTC supply, I measured some 3.1 V which is pretty enough to run the RTC. On initial setup, just with pin header, I measured voltage in original state, the capacitor 47 uF runs out pretty fast, it holds for some minute or two to go below 1 V, which is minimum for the RTC chip according data sheet. So the RTC survives on capacitor a quick power reset, but 30 mins or even less will result in voltage loss VL bit set.

For entertainment, some photographs (of the first prototype) follow to show the basic principle:

1 Like

Hello,

I have a question regarding replacing the battery for the real-time clock (RTC) in devices. I’m considering using a supercapacitor instead of the standard ML1220 coin cell. Is this a viable option, and what potential issues could arise?

I know that supercapacitors (ionistor) can maintain voltage for extended periods, but they have different characteristics compared to lithium coin cells. Could this affect the proper functioning of the RTC or other components?

I would appreciate any advice or experience regarding the use of supercapacitors in such applications!

Thank you!