Pi 4 Quad Sata Hat Fan always at 100%

I have 1x Pi4 and 2xPi3b+

Please test again with a raspi3b+ without sd card.

Ok. raspi3b+ connected to sata hat, with no sd card and cord connecting sata hat to top hat… the top fan turns on 100% speed.

It is basically confirmed that there is something wrong with our hardware.

I still need to analyze whether it is hat or top-board.

I’m sorry to give you a bad experience.

Thats sad to hear. How do we fix this? Do you want me to send it back, continue troubleshooting? You tell me what to do.

We should be able to replace it with a new one, after I confirm which part is wrong.

Do you need me to send it back so you can troubleshoot?

Powering on Pi4, I was able to determine that the CPU fan and the top hat fan both turn on without a SD card inserted.

Hi @setq Is there an update?

I’m sorry there is no progress yet. I’ll make it as soon as possible.

hello again @setq do you have more information to share about the fix?

Please contact your vendor to get a new top-board.

Hi, i’ve got exactly the same problem.
Everything is working (LCD, HDDS) except my top fan which is always at 100%.
I’ve tried everything previously but without success.
Is there an upgrade or something to do ?
Thanks

pi@raspberrypi:~ $ sudo systemctl status rockpi-sata.service
● rockpi-sata.service - Rockpi SATA Hat
Loaded: loaded (/lib/systemd/system/rockpi-sata.service; enabled; vendor preset: enabled)
Active: active (running) since Mon 2020-12-14 21:43:03 CET; 3s ago
Main PID: 1466 (python3)
Tasks: 4 (limit: 4915)
CGroup: /system.slice/rockpi-sata.service
├─1466 /usr/bin/python3 /usr/bin/rockpi-sata/main.py on
├─1488 /usr/bin/python3 /usr/bin/rockpi-sata/main.py on
├─1489 /usr/bin/python3 /usr/bin/rockpi-sata/main.py on
└─1490 /usr/bin/python3 /usr/bin/rockpi-sata/main.py on

Dec 14 21:43:05 raspberrypi python3[1466]: self._target(*self._args, **self._kwargs)
Dec 14 21:43:05 raspberrypi python3[1466]: File “/usr/bin/rockpi-sata/fan.py”, line 81, in running
Dec 14 21:43:05 raspberrypi python3[1466]: change_dc(get_dc())
Dec 14 21:43:05 raspberrypi python3[1466]: File “/usr/bin/rockpi-sata/fan.py”, line 75, in change_dc
Dec 14 21:43:05 raspberrypi python3[1466]: gpio.hardware_PWM(12, 25000, dc * 10000)
Dec 14 21:43:05 raspberrypi python3[1466]: File “/usr/lib/python3/dist-packages/pigpio.py”, line 2013, in hardware_PWM
Dec 14 21:43:05 raspberrypi python3[1466]: self.sl, _PI_CMD_HP, gpio, PWMfreq, 4, extents))
Dec 14 21:43:05 raspberrypi python3[1466]: File “/usr/lib/python3/dist-packages/pigpio.py”, line 1030, in _pigpio_command_ext
Dec 14 21:43:05 raspberrypi python3[1466]: sl.s.sendall(ext)
Dec 14 21:43:05 raspberrypi python3[1466]: AttributeError: ‘NoneType’ object has no attribute ‘sendall’

Hello guys, I have same problem with the fan.
My system is raspberry pi 4 8Gb with ubuntu 20.04.1 arm64, I have 2 WD 2TB disks (in sata1 and sata2 slots), I set up a raid and it was working fine.

Until today when I installed samba, set up vpn and firewall and noticed there is no sound at all from the thing. The fan simply stopped to work and the CPU is at 55C in the meantime, so according to the settings I’ve seen the fan must work at 100%. I didn’t change anything to the settings of the sata hat.

This is what I have in terminal output. Any ideas? Thanks!

ubuntu@ubuntu:~$ sudo service rockpi-sata status
● rockpi-sata.service - Rockpi SATA Hat
Loaded: loaded (/lib/systemd/system/rockpi-sata.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2020-12-25 17:16:07 CET; 11min ago
Main PID: 1879 (python3)
Tasks: 4 (limit: 9252)
CGroup: /system.slice/rockpi-sata.service
├─1879 /usr/bin/python3 /usr/bin/rockpi-sata/main.py on
├─2896 /usr/bin/python3 /usr/bin/rockpi-sata/main.py on
├─2897 /usr/bin/python3 /usr/bin/rockpi-sata/main.py on
└─2898 /usr/bin/python3 /usr/bin/rockpi-sata/main.py on

Dec 25 17:16:57 ubuntu python3[2899]: self._target(*self._args, **self._kwargs)
Dec 25 17:16:57 ubuntu python3[2899]: File “/usr/bin/rockpi-sata/fan.py”, line 81, in running
Dec 25 17:16:57 ubuntu python3[2899]: change_dc(get_dc())
Dec 25 17:16:57 ubuntu python3[2899]: File “/usr/bin/rockpi-sata/fan.py”, line 75, in change_dc
Dec 25 17:16:57 ubuntu python3[2899]: gpio.hardware_PWM(12, 25000, dc * 10000)
Dec 25 17:16:57 ubuntu python3[2899]: File “/usr/local/lib/python3.8/dist-packages/pigpio.py”, line 2044, in hardware_PWM
Dec 25 17:16:57 ubuntu python3[2899]: return _u2i(_pigpio_command_ext(
Dec 25 17:16:57 ubuntu python3[2899]: File “/usr/local/lib/python3.8/dist-packages/pigpio.py”, line 1062, in _pigpio_command_ext
Dec 25 17:16:57 ubuntu python3[2899]: sl.s.sendall(ext)
Dec 25 17:16:57 ubuntu python3[2899]: AttributeError: ‘NoneType’ object has no attribute ‘sendall’

I installed the system on another sd card and loaded from there. Then installed rockpi-sata software. And the fan was working. Eventually I figured out that the problem was somewhere in fan.py script with the host object, which lately as I understood is used for gpio initialization. Normally a command that gives the value for the host object

netstat -l | grep -o ‘\S*:8888’ | tr -d ‘:8888’

results with

ip6-localhost

However I was disabling ipv6 on system level, and the netstat command resulted with a blank line. And fan didn’t work I guess because of that.
I turn ipv6 back in the system and the fan works fine again.
I still can block ipv6 with ufw so there is no problem for my use.

There’s a workaround in starting the PIGPGIO service in IPV4 only mode. That way you can disable IPV6 at system level.

/lib/systemd/system/pigpiod.service

ExecStart=/usr/bin/pigpiod -l -m -n 127.0.0.1 -p 8888

The -m option is not mandatory but for disabling the monitoring for the service, decreasing CPU usage by 7%

1 Like

Yes, I can confirm this works well, except the line must be

ExecStart=/usr/local/bin/pigpiod -l -m -n 127.0.0.1 -p 8888

There is no “must”.
It depends on where the pigpiod binaries are located.
In my case /usr/bin.
The important thing to add is the -n 127.0.0.1 -p 8888
The -m optionally

1 Like

Hi, just wanted to add my experience to this topic: I experienced a similar problem with the Quad sata hat in connection to running the setup on a Raspberry Pi 4b: the fan of the top board was spinning at full speed, no matter what, immediately from the moment I connected the 12V power supply. After some troubleshooting I was able to isolate the problem. In my case, the fan itself was the faulty part. the oled display worked well at all times, as well as the sata drives with full usb3 speed. after testing the top pcb with another fan, everything worked well. adjusting the /etc/rockpi-sata.conf makes it nice and quiet at lower speed levels. btw, setup for me works smoothly also even with the current raspberry pi os bullseye, both 32 and 64 bit.

so, if you are to run into the same problem with the fan constantly rattling at 100% speed, but display and everything else working fine, you might wanna try to replace the fan. any 40x40x10mm with 5V and pwm (3pin) connector should do. just make sure to have it wired correctly, matching up the gnd, voltage and speed control pins specific to the board.
cheers!

1 Like