3

I have read several threads, but still no output.

  1. First I set: sudo raspi-gpio set 18 a5
  2. The gpio settings did change per: gpio readall
  3. aplay test.wav produced nothing through the PWM0 (now GPIO18)
  4. I ran alsamixer to see if there was a mute on

Not sure of my next step... Do I need to change the settings on GPIO40 and 45?

4
  • 2
    Adafruit have an absolutely massive tutorial on setting the Zero up for stereo PWM. Can you run through the steps in the Set Audio Output section on forcing audio to the headphone jack?
    – goobering
    Feb 17, 2017 at 1:16
  • Thanks for the link. I was missing the part about piping the audio to the headphones. I used: sudo raspi-config to do that. So now I hear my wav files on PWM0 and PWM1.
    – Bill
    Feb 17, 2017 at 23:37
  • The next problem is that I need one of the PWM to run some 2812 LEDS. Can I just route one of the audio channels (HDMI to PWM0-1) and use the other to route DMA generated signals to the LEDS?
    – Bill
    Feb 17, 2017 at 23:39
  • That sounds like it's a whole other question to me - it's a bad idea to try and mix multiple Qs and As under the same headline. Can you post that as a new question?
    – goobering
    Feb 18, 2017 at 12:52

1 Answer 1

1

Per the Adafruit tutorial linked to in the comments below the question, the solution here was to use raspi-config to force the Pi's audio to the 3.5mm jack output:

  • sudo raspi-config
  • Select Advanced
  • Select Audio
  • Select Force 3.5mm (Headphone)
  • Select Finish

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.