Quad SATA HAT 3P & 2P connector

Hi Community,

just get a Quad SATA HAT v1.2 for my Pi 4 and wondering about a tiny 2 pin connector next to the 3 pin CPU fan connect on the bottom side. Does anyone know what it can be used for? So far I’ve not found any specification…

Hi, Gumarik

That’s a RTC battery socket.

2 Likes

Thanks setq for the quick answer.

So the Quad Sata Hat (RPI) has an RTC?

Yes, the Hat has an RTC.

Thanks for the reply setq. Do you have any information on how to configure the rtc for use with the rpi?

Add dtoverlay=i2c-rtc,pcf8563 to the /boot/config.txt and reboot.

Execute sudo hwclock -w after reboot.

1 Like

You rock! Thank you :blush:

@PJepsen By the way, you need to install a battery.

What kind of batteries are compatible and comes with a 2-pin connector?

Is there a suitable place inside the Quad SATA Kit enclosure to attach the battery to avoid excessive thermal issues?


I’m going to attach the battery to the side of the HDD frame, not sure if the temps in that position would be ok with extended operation.

Edit: I’ve decided to not stick it to the HDD frame since it conducts the heat directly to the coin battery. Instead, I found a power connector which allowed me to hold the battery in a freestanding position.

The stand was modified from this power connector:

I’m using Ubuntu 20.04.
This is my config.txt

> dtparam=i2c1=on
> dtoverlay=w1-gpio,i2c-rtc,pcf8563


However, when I reboot, there is no /dev/rtc* so the RTC is not accessible?

> $ sudo i2cdetect -y 1
>     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
>00:          -- -- -- -- -- -- -- -- -- -- -- -- -- 
>10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
>20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
>30: -- -- -- -- -- -- -- -- -- -- -- -- 3c -- -- -- 
>40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
>50: -- 51 -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
>60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
>70: -- -- -- -- -- -- -- --                         


> $ ls /dev/rtc*
> ls: cannot access '/dev/rtc*': No such file or directory

I managed to solve the problem.
the dtoverlay directive in config.txt assumes that the first parameter is the module name and subsequent parameters are passed to that module.

The correct config.txt entry is:
dtparam=i2c1=on
dtoverlay=w1-gpio
dtoverlay=i2c-rtc,pcf8563

After rebooting:

$ sudo i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: – -- – -- – -- – -- – -- – -- –
10: – -- – -- – -- – -- – -- – -- – -- – --
20: – -- – -- – -- – -- – -- – -- – -- – --
30: – -- – -- – -- – -- – -- – -- 3c – -- –
40: – -- – -- – -- – -- – -- – -- – -- – --
50: – UU – -- – -- – -- – -- – -- – -- – --
60: – -- – -- – -- – -- – -- – -- – -- – --
70: – -- – -- – -- – --

$ ls /dev/rtc*
/dev/rtc@ /dev/rtc0

And I can read the RTC value using hwclock:

$ sudo hwclock
2020-09-06 13:39:03.437473+08:00