![Image](http://i.imgur.com/jCSTEOp.jpg)
![Image](http://i.imgur.com/JB7gy81.jpg)
This is for the raspberry pi zero because it does not have audio out naturally. You have two choices to get audio out on RPi0: by PWM low-filter, or by usb-dac.Kharmeleon wrote:Sorry for the question but why is it necessary to use that low pass filter? Would it be necessary to use it at the audio jack output of a raspberry pi 3? Thanks for any statement about that in advance. Greets
Thank you for the answer mate!Kilren wrote:This is for the raspberry pi zero because it does not have audio out naturally. You have two choices to get audio out on RPi0: by PWM low-filter, or by usb-dac.Kharmeleon wrote:Sorry for the question but why is it necessary to use that low pass filter? Would it be necessary to use it at the audio jack output of a raspberry pi 3? Thanks for any statement about that in advance. Greets
You don't need this if you're using RPi2/3
Code: Select all
dtoverlay=pwm-1chan,pin=18,func=2
Code: Select all
dtoverlay=pwm-2chan,pin=18,func=2,pin2=13,func2=4
Actually there is a third option for sound on raspberry pi zero, I2S sound!Kilren wrote:This is for the raspberry pi zero because it does not have audio out naturally. You have two choices to get audio out on RPi0: by PWM low-filter, or by usb-dac.Kharmeleon wrote:Sorry for the question but why is it necessary to use that low pass filter? Would it be necessary to use it at the audio jack output of a raspberry pi 3? Thanks for any statement about that in advance. Greets
You don't need this if you're using RPi2/3
I have not tried mono sound myself yet but from my own tests, pin 18 was outputting in the right channel so I believe pin2 and func2 would be for left channel (pin 13)Ganreizu wrote:So say i'm doing mono sound, is this the code i would use?
(for left channel?)Code: Select all
dtoverlay=pwm-1chan,pin=18,func=2
vs
Code: Select all
dtoverlay=pwm-2chan,pin=18,func=2,pin2=13,func2=4
Code: Select all
dtoverlay=pwm-1chan,pin2=13,func2=4
Code: Select all
dtoverlay=pwm-2chan,pin2=13,func2=4
Where do we put our speaker's ground? I'm not using to a channel only having 1 wire, it is usually 2.SP33 wrote:I have not tried mono sound myself yet but from my own tests, pin 18 was outputting in the right channel so I believe pin2 and func2 would be for left channel (pin 13)Ganreizu wrote:So say i'm doing mono sound, is this the code i would use?
(for left channel?)Code: Select all
dtoverlay=pwm-1chan,pin=18,func=2
vs
Code: Select all
dtoverlay=pwm-2chan,pin=18,func=2,pin2=13,func2=4
so either tryorCode: Select all
dtoverlay=pwm-1chan,pin2=13,func2=4
(I'm unsure if pwm-1chan is valid)Code: Select all
dtoverlay=pwm-2chan,pin2=13,func2=4
or you could just use the original code and not use pin 18, only hook up pin 13 (left channel) just to be sure.
SP33 wrote:@joe7dust Just use the same ground you used for the audio filter you just made, you can solder a wire where you attached the ground and to your audio plug.
Users browsing this forum: No registered users and 1 guest