Pwm audio

Having trouble with your GBZ build? Ask your questions here!
User avatar
Robochris
Posts: 310
Joined: Thu Feb 16, 2017 7:49 am
Location: Ohio
Has thanked: 82 times
Been thanked: 41 times

Pwm audio

Post by Robochris » Wed Jan 23, 2019 8:30 am

Guys, I’m at a loss.

So I swapped controller pcbs in one of my gbz. The audio worked for a few minutes and when I started messing with the volume control it went out completely. I have replaced every component in the audio circuit - speaker, amp, vol. wheel, and even swapped the pi itself. Flashed an new retropie install and added the pwm lines to the config.txt.

Checked continuity between all points and 5v at the amp.

Still no audio. At all.

Any ideas?
Last edited by Robochris on Wed Jan 23, 2019 11:30 am, edited 1 time in total.

User avatar
correia5022
Posts: 202
Joined: Mon Dec 05, 2016 12:32 am
Location: Portugal
Has thanked: 17 times
Been thanked: 38 times

Re: Pwm audio

Post by correia5022 » Wed Jan 23, 2019 9:54 am

Whats the board you are using?
Any photo of the wiring?
________________________________________
Starting on electronics :)
My first build, 2 years later
https://sudomod.com/forum/viewtopic.php ... 8&start=30
Check out my Boombox: https://nrcboombox.wixsite.com/website

User avatar
Robochris
Posts: 310
Joined: Thu Feb 16, 2017 7:49 am
Location: Ohio
Has thanked: 82 times
Been thanked: 41 times

Re: Pwm audio

Post by Robochris » Wed Jan 23, 2019 10:27 am

DBC2E8F9-C58D-448E-92D3-B21FFC6B18CE.jpeg
DBC2E8F9-C58D-448E-92D3-B21FFC6B18CE.jpeg (2.64 MiB) Viewed 6235 times
Glitchd gaming common ground.

User avatar
rodocop
Posts: 1723
Joined: Mon Aug 22, 2016 3:14 pm
Location: Saskatchewan
Has thanked: 606 times
Been thanked: 608 times

Re: Pwm audio

Post by rodocop » Wed Jan 23, 2019 11:36 am

I would wire the PWM pins direct to the amp, and see if the speaker works. Then start adding components back in. The PWM pads on the PCB will go through the volume wheel before going to the amp, so confirm that it is working too. I also see that you have both PWM pins going to the common ground board, so why not use all 5 wires to the volume wheel? You would only use three for mono audio. The way you have it wired you will not be controlling any volume on the PWM R side.

Also, since you have both L and R connected to the amp, Bridge L+ out and R+ out and then connect that to the speaker along with a ground. (mix two channels to one for the speaker)

Also, to confirm, did you add the mono audio or stereo audio line to the config.txt, and be certain you have the proper GPIO pins connected to the pi.

User avatar
Robochris
Posts: 310
Joined: Thu Feb 16, 2017 7:49 am
Location: Ohio
Has thanked: 82 times
Been thanked: 41 times

Re: Pwm audio

Post by Robochris » Wed Jan 23, 2019 11:52 am

rodocop wrote:
Wed Jan 23, 2019 11:36 am
I would wire the PWM pins direct to the amp, and see if the speaker works. Then start adding components back in. The PWM pads on the PCB will go through the volume wheel before going to the amp, so confirm that it is working too. I also see that you have both PWM pins going to the common ground board, so why not use all 5 wires to the volume wheel? You would only use three for mono audio. The way you have it wired you will not be controlling any volume on the PWM R side.

Also, since you have both L and R connected to the amp, Bridge L+ out and R+ out and then connect that to the speaker along with a ground. (mix two channels to one for the speaker)

Also, to confirm, did you add the mono audio or stereo audio line to the config.txt, and be certain you have the proper GPIO pins connected to the pi.
I originally had all 5 wires hooked up and both channels to the speaker. this is just where I am at shuffling things around to get anthing out of the speaker.

I have used both mono and stereo lines to config.txt. (not at the same time.)

User avatar
Robochris
Posts: 310
Joined: Thu Feb 16, 2017 7:49 am
Location: Ohio
Has thanked: 82 times
Been thanked: 41 times

Re: Pwm audio

Post by Robochris » Wed Jan 23, 2019 11:59 am

rodocop wrote:
Wed Jan 23, 2019 11:36 am
I would wire the PWM pins direct to the amp, and see if the speaker works. Then start adding components back in. The PWM pads on the PCB will go through the volume wheel before going to the amp, so confirm that it is working too. I also see that you have both PWM pins going to the common ground board, so why not use all 5 wires to the volume wheel? You would only use three for mono audio. The way you have it wired you will not be controlling any volume on the PWM R side.

Also, since you have both L and R connected to the amp, Bridge L+ out and R+ out and then connect that to the speaker along with a ground. (mix two channels to one for the speaker)

Also, to confirm, did you add the mono audio or stereo audio line to the config.txt, and be certain you have the proper GPIO pins connected to the pi.
Ok, I ran the gpio pins to the amp. no sound. it seems the pi isnt out putting sound.
I also tried reassigning pins but that didnt work either.

User avatar
Robochris
Posts: 310
Joined: Thu Feb 16, 2017 7:49 am
Location: Ohio
Has thanked: 82 times
Been thanked: 41 times

Re: Pwm audio

Post by Robochris » Wed Jan 23, 2019 12:14 pm

okay. so i just hooked everything back up how it should be and I have sound. when i bridge the channels, I lose sound again.
Thoughts why?

User avatar
rodocop
Posts: 1723
Joined: Mon Aug 22, 2016 3:14 pm
Location: Saskatchewan
Has thanked: 606 times
Been thanked: 608 times

Re: Pwm audio

Post by rodocop » Wed Jan 23, 2019 1:53 pm

Robochris wrote:
Wed Jan 23, 2019 12:14 pm
okay. so i just hooked everything back up how it should be and I have sound. when i bridge the channels, I lose sound again.
Thoughts why?
hmm, weird, if you loose sound when bridged, it might just be best to run mono audio instead. Then you don't have to worry about to. For the majority of older games mono is 100% fine.

User avatar
Robochris
Posts: 310
Joined: Thu Feb 16, 2017 7:49 am
Location: Ohio
Has thanked: 82 times
Been thanked: 41 times

Re: Pwm audio

Post by Robochris » Wed Jan 23, 2019 1:57 pm

rodocop wrote:
Wed Jan 23, 2019 1:53 pm
Robochris wrote:
Wed Jan 23, 2019 12:14 pm
okay. so i just hooked everything back up how it should be and I have sound. when i bridge the channels, I lose sound again.
Thoughts why?
hmm, weird, if you loose sound when bridged, it might just be best to run mono audio instead. Then you don't have to worry about to. For the majority of older games mono is 100% fine.
Yeah im fine with mono anyways. Now, again I lost all sound. I dont know what I want to do with it now.

User avatar
correia5022
Posts: 202
Joined: Mon Dec 05, 2016 12:32 am
Location: Portugal
Has thanked: 17 times
Been thanked: 38 times

Re: Pwm audio

Post by correia5022 » Wed Jan 23, 2019 2:55 pm

(thats a aio board, not a common ground)

You bridge outputs? from the amp?
I dont think pam8403 amp likes bridged outputs.. i even think it would probablt fry it after some time..
________________________________________
Starting on electronics :)
My first build, 2 years later
https://sudomod.com/forum/viewtopic.php ... 8&start=30
Check out my Boombox: https://nrcboombox.wixsite.com/website

Post Reply

Who is online

Users browsing this forum: Majestic-12 [Bot] and 1 guest