Quantcast
Viewing all articles
Browse latest Browse all 1261

Python • Re: Problems using PWM in subprocess

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 .
I'm using a Pi4. What solved this for me was to not have any GPIO logic outside of the subprocesses.

Statistics: Posted by Siggerud — Mon Sep 02, 2024 7:54 am



Viewing all articles
Browse latest Browse all 1261

Trending Articles