Sound output pwm wont work(SOLVED)

General GBZ-related chat goes here. Share ideas, tips and tricks, or ask questions that don't fit into the hardware/software help forums.
TilenB
Posts: 25
Joined: Fri Nov 04, 2016 4:31 am
Has thanked: 1 time
Been thanked: 2 times

Sound output pwm wont work(SOLVED)

Post by TilenB » Tue May 16, 2017 3:27 pm

testb_bb.png
testb_bb.png (184.71 KiB) Viewed 7793 times
the sound wont work... now let me explain my wiring(pi to amp)
-I am doing only mono, this is why only one half of the low pass filter
-yellow wire out of low pass filter goes to the potentiometer
-I accidently bought a stereo amp, this is why I bridged the connection that comes out of the potentiometer to L+ and R+
-same goes for R- and L- which are connected to ground
amp out:
L- & R- = headphone ground
L+ =Left in
R+=Right in
Speaker + = Left out
Speaker - = Headphone ground

what am I doing wrong?
Last edited by TilenB on Wed May 24, 2017 12:34 pm, edited 1 time in total.

User avatar
moosepr
Posts: 524
Joined: Wed Jan 25, 2017 6:18 am
Has thanked: 69 times
Been thanked: 241 times
Contact:

Re: Sound output pwm wont work

Post by moosepr » Tue May 16, 2017 3:32 pm

Have you added the command into the config file to activate the sound?

https://learn.adafruit.com/adding-basic ... -pwm-audio
Get a small cheep LCD in your project https://www.sudomod.com/forum/viewtopic.php?f=22&t=2312
Wrap it all round a battery https://www.sudomod.com/forum/viewtopic.php?f=13&t=2292
Or use a custom PCB to make it really small https://www.sudomod.com/forum/viewtopic.php?f=13&t=2512
or make it really really really really tiny!! https://www.sudomod.com/forum/viewtopic.php?f=13&t=2919

TilenB
Posts: 25
Joined: Fri Nov 04, 2016 4:31 am
Has thanked: 1 time
Been thanked: 2 times

Re: Sound output pwm wont work

Post by TilenB » Tue May 16, 2017 3:40 pm

yes I have.

User avatar
Lphillimore
Posts: 993
Joined: Sat Jan 07, 2017 7:03 pm
Location: Perth, WA
Has thanked: 796 times
Been thanked: 527 times

Re: Sound output pwm wont work

Post by Lphillimore » Wed May 17, 2017 1:30 am

That doesn't look like the right PWM pin you're using on the Pi.

PWM audio on the Pi uses pins 13 and 18 by default and as per config change.

See purple and blue as below.
20170517_152756.png
20170517_152756.png (1.12 MiB) Viewed 7775 times

TilenB
Posts: 25
Joined: Fri Nov 04, 2016 4:31 am
Has thanked: 1 time
Been thanked: 2 times

Re: Sound output pwm wont work

Post by TilenB » Wed May 17, 2017 3:43 am

this is my wiring on the rpi red cable is pin 18 i think or have I counted wrong?
Attachments
20170517_114218.jpg
20170517_114218.jpg (3.3 MiB) Viewed 7757 times

User avatar
moosepr
Posts: 524
Joined: Wed Jan 25, 2017 6:18 am
Has thanked: 69 times
Been thanked: 241 times
Contact:

Re: Sound output pwm wont work

Post by moosepr » Wed May 17, 2017 4:04 am

yeah your in pin 24

Image

just dont forget to mirror it, as the diagram is from the top, and your photo is from the bottom
Get a small cheep LCD in your project https://www.sudomod.com/forum/viewtopic.php?f=22&t=2312
Wrap it all round a battery https://www.sudomod.com/forum/viewtopic.php?f=13&t=2292
Or use a custom PCB to make it really small https://www.sudomod.com/forum/viewtopic.php?f=13&t=2512
or make it really really really really tiny!! https://www.sudomod.com/forum/viewtopic.php?f=13&t=2919


TilenB
Posts: 25
Joined: Fri Nov 04, 2016 4:31 am
Has thanked: 1 time
Been thanked: 2 times

Re: Sound output pwm wont work

Post by TilenB » Fri May 19, 2017 12:30 pm

Lphillimore wrote:
Thu May 18, 2017 2:57 pm
@TilenB - how did you get on?
I resoldered it now I'm gonna do the programming again I'll tell you if it works when I'm done

TilenB
Posts: 25
Joined: Fri Nov 04, 2016 4:31 am
Has thanked: 1 time
Been thanked: 2 times

Re: Sound output pwm wont work

Post by TilenB » Fri May 19, 2017 1:10 pm

nah still cant get it to work I really dont know what the problem is

TilenB
Posts: 25
Joined: Fri Nov 04, 2016 4:31 am
Has thanked: 1 time
Been thanked: 2 times

Re: Sound output pwm wont work

Post by TilenB » Fri May 19, 2017 1:21 pm

could the volume wheel be the problem?..
Pins from left to right:
1- empty
2- R out
3- R in
4- empty
5-ground
Attachments
20170519_211959.jpg
20170519_211959.jpg (3.82 MiB) Viewed 7700 times

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest