Hi everyone
Thanks for looking at this post. I have a Raspberry Pi with the Pijuice hat. The problem is the Pijuice seems to be forgetting the time when the raspberry pi shuts down. This has happened a few times in the past but it has happened consistently over the last few days. I needed to wake up the pi by starting it up manually using the PiJuice on button, and when I looked at the clock on the desktop, it was showing the time from when it shutdown the previous night. My guess is that the Real Time Clock is failing and/or has failed.
I found some more details over on the PiSupply website here.
The RTC remains powered from the LiPo battery onboard and to keep the time the LiPo has to be powered.
PS: I donβt think there is a coin cell underneath the HAT that acts as a backup.
To double-check that the RTC is still working run the following command:
sudo hwclock -r
This will report the time kept in the RTC module, if its around the year 2000 you will have to set the time and re-configure the PiJuice. (Ton covers this process very well over on Git).
Hi Liam,
Thanks for your help. It looks like the RTC is not working. Here is my result.
pi@raspberrypi:~ sudo hwclock -r
hwclock: Cannot access the Hardware Clock via any known method.
hwclock: Use the --verbose option to see the details of our search for an access method.
pi@raspberrypi:~
.if you are running the unit via an ups system for powering the boardβ¦remove it as well before fitting the r.t.c moduleβ¦then fit up the ups to the boardβ¦
with the internet connected it is reading the ntp service via the web. hwclock -r should work β¦
it the r.t.c is incorrect pls set it manuallyβ¦next run the below commandsβ¦ hwclock -s hwclock -w
add line to /etc/rc.local file sudo hwclock-s reboot...
if its not seeing the unit it may be faulty if you cannot write or read to itβ¦