Hardware PWM Raspberry Pi 4B


Anyone have any advice on how to get Hardware PWM working on Raspberry Pi 4B?

I need to be able to set change the duty cycle and frequency etc

I was able to get the basic own fan that turns on and off based on temp working like in this post

but can’t seem to get anything working where I can change the speeds.

Any help would be appreciated thanks.