Now that I no longer have to rely on Network Time Protocol (NTP) to retain the correct time on my Raspberry Pi, how do I connect a battery?
Now that I no longer have to rely on Network Time Protocol (NTP) to retain the correct time on my Raspberry Pi, how do I connect a battery?
The Raspberry Pi 5 has a location where a battery can be connected.
J5 allows for a battery to be connected using a pre-configured cable assembly with the battery.
This will be available soon.
This means to set and change or check the time you can use the command hwclock.
J2 has an unpopulated 2-pin header allowing for any type of connection to be soldered to the board, a jumper header or otherwise, also functioning as a power switch when connected together.
There are important notes about connecting a battery:
"We do not recommend using a primary lithium cell for the RTC, as it has a trickle charge circuit which is disabled by default. If enabled, this will kill the cell quickly. The official battery part is a rechargeable lithium manganese coin cell, with a pre-fitted two-pin JST plug and an adhesive mounting pad. This is suitable for powering the Raspberry Pi 5 RTC when the main power supply for the board is disconnected, with a power-off current draw measuring in single-digit µA, giving a retention time that can be measured in months."