Page 6 of 8

Re: PWM Audio Guide

Posted: Sun Sep 25, 2016 6:13 am
by RxBrad
@Tim If you configure the Pi for mono, both channels are combined into the one channel and you shouldn't lose anything.

Re: PWM Audio Guide

Posted: Sun Sep 25, 2016 6:32 am
by Tim
Thank you @RxBrad will do that

Re: PWM Audio Guide

Posted: Mon Oct 03, 2016 2:47 am
by laluva
Popcorn wrote:
joe7dust wrote: Wow grats on making this looking somewhat user-friendly. I took one look at the adafruit guide and was like NOPE not worth the effort, but this actually looks quite doable now.

Would someone mind telling me what I would need to change on this if I only wanted mono sound? 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.

edit: Also, I don't need a potentiometer. I plan to keep the volume at a fixed level!
You can follow my circuit above, that is mono.

Just add this to your /boot/config.txt

Code: Select all

dtoverlay=pwm,pin=13,func=4
If sound is taken only mono from GPIO 18 the code would be this? dtoverlay=pwm,pin=18,func=2?

Re: PWM Audio Guide

Posted: Mon Oct 17, 2016 10:09 am
by TigerClaw32
Hi, do I need the stereo filter, if I am using mono speaker but want stere headphone sound?

Re: PWM Audio Guide

Posted: Wed Oct 19, 2016 3:55 pm
by atlantisweb
Thanks to this guide I built my first bit of electronics for my Pi Zero. It was all working well on Raspionan Wheezy and on Jessie Lite until I installed updates then I just get static, i've tried a different speaker. Both the breadboard version and the soldered final version worked fine this morning but now neither work.

I'm using mono sound from pin 13, have also tried pin 12 and 18. But 12 also gives static and 18 gives no sound at all.

Issues seem to be caused by use of the ServoBlaster/ServoSix controller as uninstalling the software that controls this fixes the sound issue. How do I get both working together?

Anyone have any ideas? I'm new to this stuff and was so pleased that I got it working, so a bit disappointed now its giving static.

Thanks
Mark

Re: PWM Audio Guide

Posted: Thu Oct 20, 2016 2:36 pm
by atlantisweb
atlantisweb wrote:Issues seem to be caused by use of the ServoBlaster/ServoSix controller as uninstalling the software that controls this fixes the sound issue. How do I get both working together?
Just in case this helps anyone else...

Issue was indeed the ServoSix board thats based on ServoBlaster. This and Audio use PWM and it causes interferance on audio. Solution on ServoBlaster site is to use PCM instead of PWM on the Servo controller.

There is a program called servod which can be used to make te config change.... command shown below, it doesn't remember settings between reboots though!

sudo ./servod --pcm

Re: PWM Audio Guide

Posted: Sun Nov 20, 2016 4:42 pm
by sckay
Please, i need help. I can use the speaker of this gameboy using the port speaker + and - only for speaker? or i necessary use the headphone process?. I only want, what the speaker of the gameboy zero run. I dont know what i Will change in the congif.txt for the sound run, :(.
http://i67.tinypic.com/1254002.jpg
Thanks

Re: PWM Audio Guide

Posted: Wed Nov 23, 2016 12:30 pm
by seiren
Thank you for the guide. Just did this, seems to be very quiet. Any guidance on this?
I used these speakers: http://www.maplin.co.uk/p/02w-super-thi ... 57mm-l70aa

Re: PWM Audio Guide

Posted: Sun Nov 27, 2016 6:19 am
by larsen2011
I've wired everything according to the "general" diagram, yet I don't get sound...
Pictures are included in my build log: http://www.sudomod.com/forum/viewtopic. ... 891#p20891

I'm happy for any suggestion that could help!

Thanks!

Edit: problem solved, my GB jack needs different wiring... See Fleder's headphone jack guide for more details...

Re: PWM Audio Guide

Posted: Sun Dec 11, 2016 8:44 am
by winnetouch
I'm also having issues. The sound used to work but it was hissy. Then I changed out the screen (a GPIO for composite screen) and the sound stopped working. Everything is wired correctly and I've added the lines to the config.txt file. The board is connected to power and the two leads are connected to the correct GPIO pins.

Neither the jack or the speaker work. I'm using helders controller board with audio and build in audio jack (so the wiring of the jack can't be an issue).