2

I am developing a project on a Raspberry Pi 3 B+. I am using the PWM0 channel to send a custom-made IR signal using PiGPIO waves. I gather it might then be possible to use PWM1 for mono audio; is that a correct assessment? How might that work with the onboard audio jack when it's presumably wired up to both channels?

If my project required 2 channel (or better) audio, would the best choice be a USB audio board? Or is there a way to use audio from HDMI without binding up there HDMI port? Or another option I haven't thought of or found yet?

I've been largely unsuccessful finding pi 3 B+ examples and I'm guessing that is because hardware PWM is relatively new in the pi world.

If you have used or know about pi-specific audio boards that might satisfy my need, would you mind adding a link to it?

Beez
  • 125
  • 10

1 Answers1

1

As far as pigpio is concerned what you are trying to do is not possible.

http://abyz.me.uk/rpi/pigpio/faq.html#Sound_isnt_working

pigpio always uses either the hardware PWM peripheral or the hardware PCM peripheral to time GPIO sampling. The default is to use the hardware PCM peripheral to sample GPIO every 5µs.

If waves are being used then pigpio will also use the other hardware peripheral to time the waves.

This means neither hardware peripheral is available for use in your case.

joan
  • 71,852
  • 5
  • 76
  • 108