PWM Audio / Config.txt File Question

General GBZ-related chat goes here. Share ideas, tips and tricks, or ask questions that don't fit into the hardware/software help forums.
Post Reply
User avatar
MacBean
Posts: 6
Joined: Thu May 05, 2016 12:40 pm

PWM Audio / Config.txt File Question

Post by MacBean » Mon Jul 25, 2016 3:10 pm

Hey Everyone,

My build is completely done except for one lingering problem I can't seem to figure out. I'm not being able to get audio out of my Zero. I have double checked my wiring several times and when I plug in headphones I hear static/fuzz or whatever you wanna call it. I think my problem might have to do with my config.txt file.

I'm new to all of this so can someone please clear this up for me... when I add the line dtoverlay=pwm,pin=18,func=2 to the end of your config.txt file does it replace something? Should I be adding a # first? Should there be no #? If the is supposed to be a # do you put a space between the # and dtoverlay=pwm,pin=18,func=2 ?

If someone could explain this to me that would be great... or if someone wants to simply copy and paste their complete funtional config.txt file copy for me I would be so grateful.

Thanks! :D

User avatar
Ganreizu
Posts: 552
Joined: Thu May 05, 2016 8:20 am
Has thanked: 168 times
Been thanked: 97 times

Re: PWM Audio / Config.txt File Question

Post by Ganreizu » Tue Jul 26, 2016 7:39 am

There is already a dtoverlay line in config by default. Find it and replace it with that line to get audio so long as the wiring is correct.

# is what it uses to comment out code. If there's a hashtag in front of a line, that means the pi will IGNORE that line and those settings.

User avatar
PotaTox
Posts: 128
Joined: Wed Jul 06, 2016 2:45 pm
Has thanked: 19 times
Been thanked: 19 times

Re: PWM Audio / Config.txt File Question

Post by PotaTox » Wed Jul 27, 2016 4:12 pm

Bumping this, the same thing is happening to me

User avatar
Ganreizu
Posts: 552
Joined: Thu May 05, 2016 8:20 am
Has thanked: 168 times
Been thanked: 97 times

Re: PWM Audio / Config.txt File Question

Post by Ganreizu » Wed Jul 27, 2016 4:38 pm

...but i already answered it...?

User avatar
statikeffeck
Posts: 31
Joined: Tue Jul 05, 2016 8:35 pm
Has thanked: 23 times
Been thanked: 5 times

Re: PWM Audio / Config.txt File Question

Post by statikeffeck » Wed Jul 27, 2016 5:50 pm

You get no sound at all? You have the low pass filter installed and are connected to the correct pins?

Check all your connections, and try first without hooking up your amp, just the headphones to the filter, which then goes to the pi.

User avatar
PotaTox
Posts: 128
Joined: Wed Jul 06, 2016 2:45 pm
Has thanked: 19 times
Been thanked: 19 times

Re: PWM Audio / Config.txt File Question

Post by PotaTox » Wed Jul 27, 2016 8:01 pm

statikeffeck wrote:You get no sound at all? You have the low pass filter installed and are connected to the correct pins?

Check all your connections, and try first without hooking up your amp, just the headphones to the filter, which then goes to the pi.
I have Helders all in one board, so I can't do that.

User avatar
Ganreizu
Posts: 552
Joined: Thu May 05, 2016 8:20 am
Has thanked: 168 times
Been thanked: 97 times

Re: PWM Audio / Config.txt File Question

Post by Ganreizu » Wed Jul 27, 2016 10:53 pm

PotaTox wrote:I have Helders all in one board, so I can't do that.
Can you and macbean post your config file? Then we can see if the settings are off and try to fix it.

laluva
Posts: 17
Joined: Thu Aug 25, 2016 12:35 pm
Has thanked: 1 time
Been thanked: 3 times

Re: PWM Audio / Config.txt File Question

Post by laluva » Mon Oct 03, 2016 11:22 am

Have added this line to the config txt: dtoverlay=pwm,pin=18,func=2

Line out is taken from gpio 18 and ground from the nearby groundpoint, goes through homemade filter a amp and to speaker.
Ofcourse with my luck/experience no sound, only very low hizz noise from speaker when i connect power to the amp.

Can i connect speaker directly to gpio 18 and ground to hear some sound from retropie?

Just to confirm that sound out from zero is okay?

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest