Hello,
I come to ask for help, whenever I can get the HAT to work, the Oled works for a few seconds and blocks and the fan even without the HAT installed is always at maximum, not being able to control the speed after install the rocki-penta.service.
β rockpi-penta.service - Rockpi SATA Hat
Loaded: loaded (/lib/systemd/system/rockpi-penta.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Mon 2022-11-07 15:16:20 UTC; 7s ago
Process: 756 ExecStart=/usr/bin/python3 /usr/bin/rockpi-penta/main.py on (code=exited, status=1/FAILURE)
Main PID: 756 (code=exited, status=1/FAILURE)
Nov 07 15:16:20 rock-4c-plus systemd[1]: rockpi-penta.service: Scheduled restart job, restart counter is at 5.
Nov 07 15:16:20 rock-4c-plus systemd[1]: Stopped Rockpi SATA Hat.
Nov 07 15:16:20 rock-4c-plus systemd[1]: rockpi-penta.service: Start request repeated too quickly.
Nov 07 15:16:20 rock-4c-plus systemd[1]: rockpi-penta.service: Failed with result βexit-codeβ.
Nov 07 15:16:20 rock-4c-plus systemd[1]: Failed to start Rockpi SATA Hat.
rock@rock-4c-plus:~$ /usr/bin/python3 /usr/bin/rockpi-penta/main.py
Traceback (most recent call last):
File β/usr/bin/rockpi-penta/main.pyβ, line 3, in
import fan
File β/usr/bin/rockpi-penta/fan.pyβ, line 6, in
pin13 = mraa.Pwm(13)
File β/usr/local/lib/python3.8/dist-packages/mraa.pyβ, line 483, in init
_mraa.Pwm_swiginit(self, _mraa.new_Pwm(pin, owner, chipid))
ValueError: Error initialising PWM on pin
rock@rock-4c-plus:~$ mraa-gpio version
Version v2.1.0-25-gf854463 on ROCK Pi 4
rock@rock-4c-plus:~$
Model Radxa ROCK 4C+
Image: rock-4c-plus-ubuntu-focal-server-arm64-20221031-1207-gpt.img
Can someone help?
Thanks in advance