Tutorial for PWM and GPIO sound
Tutorial for PWM and GPIO sound
Hello all
Sorry for my bad english, i search tips but with bad english, complicated to found good results.
For small project, i search to gain the maximum place.
I use the GPIO for the buttons : https://www.sudomod.com/forum/viewtopic.php?f=22&t=57
I know it's possible to use the GPIO for the sound, but is it a conflict to use buttons + sound on GPIO?
And.... i search explanations and/or diagram for sound on GPIO (buttons+sound on GPIO diagram it's fantastic).
And last question, the performance of the sound on gpio ?
Big thanks for your help
Sorry for my bad english, i search tips but with bad english, complicated to found good results.
For small project, i search to gain the maximum place.
I use the GPIO for the buttons : https://www.sudomod.com/forum/viewtopic.php?f=22&t=57
I know it's possible to use the GPIO for the sound, but is it a conflict to use buttons + sound on GPIO?
And.... i search explanations and/or diagram for sound on GPIO (buttons+sound on GPIO diagram it's fantastic).
And last question, the performance of the sound on gpio ?
Big thanks for your help
Last edited by Marty33 on Sat Feb 17, 2018 10:32 am, edited 1 time in total.
- rodocop
- Posts: 1723
- Joined: Mon Aug 22, 2016 3:14 pm
- Location: Saskatchewan
- Has thanked: 606 times
- Been thanked: 608 times
Re: Tutorial for PWN and GPIO sound
The guide you linked for gpio controls does not conflict with pwm audio. Pwm audio will use bcm 13 and 18 from the diagram.
Pwm audio is decent, but it is a little staticy. It's not bad though. I always use pwm.
Here's a diagram use for mono audio

Pwm audio is decent, but it is a little staticy. It's not bad though. I always use pwm.
Here's a diagram use for mono audio
SpoilerShow

_____________________________________________________
My Minty Pi builds:
http://www.sudomod.com/forum/viewtopic.php?f=32&t=3628
My GBZ builds:
http://www.sudomod.com/forum/viewtopic. ... 813#p50813
My modded DMG-01's:
http://www.sudomod.com/forum/viewtopic.php?f=13&t=2696
My NESpi:
http://www.sudomod.com/forum/viewtopic.php?f=13&t=2941
My Gaboze Pocaio's
https://sudomod.com/forum/viewtopic.php?f=13&t=6063
My Minty Pi builds:
http://www.sudomod.com/forum/viewtopic.php?f=32&t=3628
My GBZ builds:
http://www.sudomod.com/forum/viewtopic. ... 813#p50813
My modded DMG-01's:
http://www.sudomod.com/forum/viewtopic.php?f=13&t=2696
My NESpi:
http://www.sudomod.com/forum/viewtopic.php?f=13&t=2941
My Gaboze Pocaio's
https://sudomod.com/forum/viewtopic.php?f=13&t=6063
- rodocop
- Posts: 1723
- Joined: Mon Aug 22, 2016 3:14 pm
- Location: Saskatchewan
- Has thanked: 606 times
- Been thanked: 608 times
Re: Tutorial for PWM and GPIO sound
I use these ones lately instead of the adafruit ones.
https://m.banggood.com/3Pcs-PAM8403-Min ... s=myorders
_____________________________________________________
My Minty Pi builds:
http://www.sudomod.com/forum/viewtopic.php?f=32&t=3628
My GBZ builds:
http://www.sudomod.com/forum/viewtopic. ... 813#p50813
My modded DMG-01's:
http://www.sudomod.com/forum/viewtopic.php?f=13&t=2696
My NESpi:
http://www.sudomod.com/forum/viewtopic.php?f=13&t=2941
My Gaboze Pocaio's
https://sudomod.com/forum/viewtopic.php?f=13&t=6063
My Minty Pi builds:
http://www.sudomod.com/forum/viewtopic.php?f=32&t=3628
My GBZ builds:
http://www.sudomod.com/forum/viewtopic. ... 813#p50813
My modded DMG-01's:
http://www.sudomod.com/forum/viewtopic.php?f=13&t=2696
My NESpi:
http://www.sudomod.com/forum/viewtopic.php?f=13&t=2941
My Gaboze Pocaio's
https://sudomod.com/forum/viewtopic.php?f=13&t=6063
Re: Tutorial for PWM and GPIO sound
For my uses, this components is usefull ?
Gameboy Zero PWM Audio SMD : https://oshpark.com/shared_projects/qUEOjE0n
Gameboy Zero PWM Audio SMD : https://oshpark.com/shared_projects/qUEOjE0n
- rodocop
- Posts: 1723
- Joined: Mon Aug 22, 2016 3:14 pm
- Location: Saskatchewan
- Has thanked: 606 times
- Been thanked: 608 times
Re: Tutorial for PWM and GPIO sound
One of those will help with static a bit. You will still need the amp. You can also build yourself too:
https://sudomod.com/forum/viewtopic.php?t=480
https://sudomod.com/forum/viewtopic.php?t=480
_____________________________________________________
My Minty Pi builds:
http://www.sudomod.com/forum/viewtopic.php?f=32&t=3628
My GBZ builds:
http://www.sudomod.com/forum/viewtopic. ... 813#p50813
My modded DMG-01's:
http://www.sudomod.com/forum/viewtopic.php?f=13&t=2696
My NESpi:
http://www.sudomod.com/forum/viewtopic.php?f=13&t=2941
My Gaboze Pocaio's
https://sudomod.com/forum/viewtopic.php?f=13&t=6063
My Minty Pi builds:
http://www.sudomod.com/forum/viewtopic.php?f=32&t=3628
My GBZ builds:
http://www.sudomod.com/forum/viewtopic. ... 813#p50813
My modded DMG-01's:
http://www.sudomod.com/forum/viewtopic.php?f=13&t=2696
My NESpi:
http://www.sudomod.com/forum/viewtopic.php?f=13&t=2941
My Gaboze Pocaio's
https://sudomod.com/forum/viewtopic.php?f=13&t=6063
Re: Tutorial for PWM and GPIO sound
I make this diagram. I'm in the good way ?

Your suggestions are welcome (you or other member) to add good options with minimal elements (to stay in the compact mod).
Big thanks

Your suggestions are welcome (you or other member) to add good options with minimal elements (to stay in the compact mod).
Big thanks

- rodocop
- Posts: 1723
- Joined: Mon Aug 22, 2016 3:14 pm
- Location: Saskatchewan
- Has thanked: 606 times
- Been thanked: 608 times
Re: Tutorial for PWM and GPIO sound
Look like a good diagram! Just make sure the v+ and v- on the powerboost are wired to the proper pads. Your diagram shows then attached to the usb retainer clips.
_____________________________________________________
My Minty Pi builds:
http://www.sudomod.com/forum/viewtopic.php?f=32&t=3628
My GBZ builds:
http://www.sudomod.com/forum/viewtopic. ... 813#p50813
My modded DMG-01's:
http://www.sudomod.com/forum/viewtopic.php?f=13&t=2696
My NESpi:
http://www.sudomod.com/forum/viewtopic.php?f=13&t=2941
My Gaboze Pocaio's
https://sudomod.com/forum/viewtopic.php?f=13&t=6063
My Minty Pi builds:
http://www.sudomod.com/forum/viewtopic.php?f=32&t=3628
My GBZ builds:
http://www.sudomod.com/forum/viewtopic. ... 813#p50813
My modded DMG-01's:
http://www.sudomod.com/forum/viewtopic.php?f=13&t=2696
My NESpi:
http://www.sudomod.com/forum/viewtopic.php?f=13&t=2941
My Gaboze Pocaio's
https://sudomod.com/forum/viewtopic.php?f=13&t=6063
Who is online
Users browsing this forum: No registered users and 1 guest