PWM Audio Guide
- winnetouch
- Posts: 158
- Joined: Mon Jul 11, 2016 10:56 am
- Has thanked: 2 times
- Been thanked: 30 times
Re: PWM Audio Guide
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 !
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 !
-
- Posts: 4
- Joined: Tue Dec 27, 2016 11:07 am
Re: PWM Audio Guide
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"?
If so, how would I go about doing it? Is it as simple as changing "pin=18" to "pin=12"?
- Helder
- Trailblazer
- Posts: 2985
- Joined: Thu May 05, 2016 8:33 am
- Location: Rogers, AR
- Has thanked: 1459 times
- Been thanked: 3114 times
Re: PWM Audio Guide
There are a few other alternative pins but you must use the PWM pins as seen in this image: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"?

Chat with me and other members On Discord
Don't contact me about obtaining my board files (as you will not get them). If my Boards or PCB Kits are sold out, they will be restocked as soon as I can get them and there is demand for them. You can join the mailing list on my Website to be notified when they are available.
Helder's Game Tech Website
We will not support any cloned work so don't come to us with technical issues to resolve, go talk to the cloner for help.
Don't contact me about obtaining my board files (as you will not get them). If my Boards or PCB Kits are sold out, they will be restocked as soon as I can get them and there is demand for them. You can join the mailing list on my Website to be notified when they are available.
Helder's Game Tech Website
We will not support any cloned work so don't come to us with technical issues to resolve, go talk to the cloner for help.
- 144TECH
- Posts: 325
- Joined: Fri Jan 06, 2017 7:30 am
- Location: Amsterdam
- Has thanked: 256 times
- Been thanked: 71 times
Re: PWM Audio Guide
* Very Rare * GBZ 640x480 v3 Stock Looks 6000MAH
http://www.sudomod.com/forum/viewtopic.php?f=43&t=4863
http://www.sudomod.com/forum/viewtopic.php?f=43&t=4863
-
- Posts: 10
- Joined: Thu Aug 03, 2017 6:41 am
- Has thanked: 1 time
- Been thanked: 1 time
Re: PWM Audio Guide
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!
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
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.

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

-
- Posts: 128
- Joined: Wed Sep 13, 2017 5:24 pm
- Has thanked: 28 times
- Been thanked: 10 times
Re: PWM Audio Guide
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?
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!
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!
-
- Posts: 128
- Joined: Wed Sep 13, 2017 5:24 pm
- Has thanked: 28 times
- Been thanked: 10 times
Re: PWM Audio Guide
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.
Who is online
Users browsing this forum: No registered users and 1 guest