PWM Audio Guide
Re: PWM Audio Guide
Generally an amp should go just before the speakers and all the rest before the amp. In this cases, due to the low current and voltage, it doesn't really matters...
Regarding low pass filter, I removed it completely. Try it out with and without, in my case I did not notice any difference, and since in the game boy case there isn't a lot of free space, I decided to remove it.
Regarding low pass filter, I removed it completely. Try it out with and without, in my case I did not notice any difference, and since in the game boy case there isn't a lot of free space, I decided to remove it.
-
- Posts: 128
- Joined: Wed Sep 13, 2017 5:24 pm
- Has thanked: 28 times
- Been thanked: 10 times
Re: PWM Audio Guide
This PWM audio guide seems to show it before the pot. I put up a post in Hardware Help about how my potentiometer started smoking when I did this. Ack! I knew audio was gonna be hard!emaborsa wrote: ↑Sat Nov 11, 2017 12:59 amGenerally an amp should go just before the speakers and all the rest before the amp. In this cases, due to the low current and voltage, it doesn't really matters...
Regarding low pass filter, I removed it completely. Try it out with and without, in my case I did not notice any difference, and since in the game boy case there isn't a lot of free space, I decided to remove it.
Re: PWM Audio Guide
Hi...i am a new user here. In my case I don't plan to have a headphone jack at all, just a single speaker that was pulled from an old laptop. I'm not exactly a connoisseur of gameboy beeps and bloops at 8-bit or whatever it was encoded at, and mono will be just perfect for that. Also I don't think the original had stereo speaker output at all, it only affects the headphone jack I think.
pcb assembly
pcb assembly
-
- Posts: 10
- Joined: Mon Apr 16, 2018 9:31 am
Re: PWM Audio Guide
You can use a 10nf ceramic capacitorDirtyBullets wrote: ↑Mon Jun 06, 2016 2:34 pmdam i don't have 33n's got i have 47n's but to far apart i think?
Re: PWM Audio Guide
hi all, i have a problem with my setup on my GBZ (recalbox, usb audio).SP33 wrote: ↑Sun Jun 05, 2016 11:15 pmThis guide covers the basics of PWM audio on the Raspberry Pi Zero
It was based off of this article
https://learn.adafruit.com/adding-basic ... o/overview
Parts Needed:
10UF ELECTROLYTIC CAPACITOR ( x2 for stereo)
0.033UF MONOLITHIC CERAMIC CAPACITOR ( x2 for stereo)
150 OHM RESISTOR ( x2 for stereo)
270 OHM RESISTOR ( x2 for stereo)
I ordered my parts from Tayda Electronics you can click on the links above to see the exact parts I ordered. Keep in mind you must have $5 in your cart to be able to order from them but they are a very good company. You may buy from your favorite electronics site and just use the links for reference as well. There are also slightly varying parts you could use.
Schematic:
https://learn.adafruit.com/assets/28851
Simplified schematic:
Note: The orientation of 270R, 150R and 33N do not matter.
10U Must be oriented correctly, the negative pin is usually denoted by a dashed line on the side of the capacitor and a shorter post.
If you want only left or right channel audio just split the schematic at the ground and only use one side.
My implementation:
Software End:
Add the following text to the end of /boot/config.txt and reboot your piYou should be able to cut out the part you don't need if you are using only the left or right channel but I will not provide it since it varies based on which you choose.Code: Select all
dtoverlay=pwm-2chan,pin=18,func=2,pin2=13,func2=4
Thanks to @tindalos for this method
You should now have audio! If you have any questions about anything in the guide or concerns with how I implemented it please let me know!
i want to try this config, but i have a question.
for the input i used the gpio in this way: can i used 2 free gpio pins or i must to use 13 and 18? on 18 there is Y button
ty far all
Re: PWM Audio Guide
As you red in the post you quoted, there is a config in order to define the two audio pins dtoverlay=pwm-2chan,pin=18,func=2,pin2=13,func2=4. It allows to change the stardard ones, but I don't know if all pins are suitable.
Another possibility would be to use a usb-audiocard.
Another possibility would be to use a usb-audiocard.
- BorealBlizzard
- Posts: 7
- Joined: Sun Jan 13, 2019 11:13 am
- Has thanked: 1 time
Re: PWM Audio Guide
how would I implement this to work with a mono speaker? would I just use either L or R channels?
Newbie to the modding/hacking game, I'm ready to play and can't wait to start.
- tinkerBOY
- Posts: 710
- Joined: Tue May 30, 2017 4:00 am
- Has thanked: 294 times
- Been thanked: 206 times
Re: PWM Audio Guide
You can just use one PWM audio and just downmix from stereo to mono sound.BorealBlizzard wrote: ↑Sun Jan 13, 2019 5:01 pmhow would I implement this to work with a mono speaker? would I just use either L or R channels?
New! tinkerBOY PowerSwitch v1.0 with Safe Shutdown
Game Boy Zero Controllers available @ tinkerBOY.xyz * Support
tinkerBOY Controller v3.0 - built-in usb controller, usb audio, and usb hub
tinkerBOY Controller v2.0 - GPIO buttons and builtin PWM Audio and Amplifier
tinkerBOY Controller v1.1 - simple pcb button
* DPI Adapter - better display for GBZ
* keyboard converters - IBM XT/AT Soarer's Converter | ADB to USB Converter
Game Boy Zero Controllers available @ tinkerBOY.xyz * Support
tinkerBOY Controller v3.0 - built-in usb controller, usb audio, and usb hub
tinkerBOY Controller v2.0 - GPIO buttons and builtin PWM Audio and Amplifier
tinkerBOY Controller v1.1 - simple pcb button
* DPI Adapter - better display for GBZ
* keyboard converters - IBM XT/AT Soarer's Converter | ADB to USB Converter
Who is online
Users browsing this forum: No registered users and 1 guest