I'm using a Pi4. What solved this for me was to not have any GPIO logic outside of the subprocesses.Hi Siggerud,
Are you using a Pi5.
On the Pi5 , The software PWM is not stable because other process will interrupt it. But there is at least four Hardware pins that you could use instead.
I don't know if any new software upgrade implementation add the hardware GPIO right now.
Seven months ago I made python code to access them via the /sys/class .
https://github.com/danjperron/Pi5PWM_HARDWARE
In python don't forget to enable the dtoverlay=pwm .
Statistics: Posted by Siggerud — Mon Sep 02, 2024 7:54 am