Page 7 of 8

Re: PWM Audio Guide

Posted: Wed Dec 14, 2016 11:32 am
by winnetouch
No one has any ideas?

Re: PWM Audio Guide

Posted: Tue Dec 20, 2016 9:45 pm
by johweb
Hi everyone.

I followed this guide and sounds through the command line are working fine. I tried with a gameboy classic rom but I can't hear anything... How do you setup retropie to have sound ? I don't use a headphone jack connector, speaker is directly connected to the amp.

Thanks !

Re: PWM Audio Guide

Posted: Tue Dec 27, 2016 11:17 am
by GameDragon
Is it possible to use GPIO 12 rather than GPIO 18 for PWM audio?

If so, how would I go about doing it? Is it as simple as changing "pin=18" to "pin=12"?

Re: PWM Audio Guide

Posted: Thu Dec 29, 2016 12:59 pm
by Helder
GameDragon wrote:Is it possible to use GPIO 12 rather than GPIO 18 for PWM audio?

If so, how would I go about doing it? Is it as simple as changing "pin=18" to "pin=12"?
There are a few other alternative pins but you must use the PWM pins as seen in this image:

Image

Re: PWM Audio Guide

Posted: Mon Jan 16, 2017 12:14 pm
by 144TECH

Re: PWM Audio Guide

Posted: Thu Aug 03, 2017 6:46 am
by gamedude13
Hi,

I followed the instructions in this thread and setup a mono GPIO PWN output which is fed through the filter circuit to a class D amplifier from adafruit (https://www.adafruit.com/product/2130). Audio output form the command line works (aplay), however, there is quite some noise. Anybody got experience with this?

I am using BCM12 for the audio out. The amplifier is hooked up to GND and PIN2 (5V power supply).

Thanks!

Re: PWM Audio Guide

Posted: Sat Sep 02, 2017 3:32 pm
by darthwolf
Hey there,
before installing it into my pi0 I just want to confirm that this how the low pass filter is supposed to look like. This is my freeform soldering attempt, will enclose in heat shrink tubing before installing.
SpoilerShow
Image

Re: PWM Audio Guide

Posted: Fri Nov 03, 2017 3:48 pm
by shesaysidontlisten
Going to tackle audio testing/building next. Can a resident expert tell me if the attached diagram (not created by me, found it somewhere on the forums) will work, while substituting the left and right out from the display board in the pic for GPIO 13 and 18 respectively?
lPHZrd9.jpg
lPHZrd9.jpg (983.45 KiB) Viewed 13325 times
I also thought the headphone left and right out are supposed to be combined (each with a 10 ohm resistor) to the speaker positive. This has the left out on positive and right out on negative. If you combine (to not lose those sounds that oscillate) where does the speaker negative go?

There was also some discussion on if the low pass filter is best placed between Pi and PAM8403 or between PAM8403 and volume wheel. I'm wondering if there's a consensus on that.

Thanks all!

Re: PWM Audio Guide

Posted: Tue Nov 07, 2017 11:46 pm
by emaborsa
This schema is wrong. From the amply you connect + and - L to the poty-wheel, you should connect +L and +R. And yes, the - of the speaker should go to ground.
Take a look here

Re: PWM Audio Guide

Posted: Fri Nov 10, 2017 11:54 am
by shesaysidontlisten
emaborsa wrote:
Tue Nov 07, 2017 11:46 pm
This schema is wrong. From the amply you connect + and - L to the poty-wheel, you should connect +L and +R. And yes, the - of the speaker should go to ground.
Take a look here
Thanks! That makes a lot more sense!

Any ideas about where the low pass filter should be? I don't know if it goes before or after the amp.