Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4770

HATs and other add-ons • Raspberry Pi 5 PWM outputs?

$
0
0
Hi all

We have an application that uses the stereo PWM audio output of the Raspberry Pi. On older Pi models there is an option to redirect it from the headphone jack to two of the HAT connector GPIO pins. We made our own HAT that uses the raw PWM signals to do power electronic things, controlled by playing specially encoded WAV files.

This works very well with the Pi 3B+ but now we want to upgrade to a Pi 5. We tried all kinds of settings in config.txt, disabling HDMI audio, but we get no PWM from the GPIO pins. Even the example code that uses /sys/class/pwm gives no output from any of the pins we tried.

Can anyone shed any light on this? Was PWM removed from the Pi 5 when the headphone jack was ditched? Is it a bug in the OS/drivers that we could expect to be fixed?

Any info much appreciated

Statistics: Posted by Conner Labs — Wed Dec 11, 2024 9:56 am — Replies 2 — Views 68



Viewing all articles
Browse latest Browse all 4770

Trending Articles