slimhase wrote: 
> Now I am stuck with getting PWM Audio from pCP on piZero:
> I followed the linked instrucions:
> https://learn.adafruit.com/adding-basic-audio-ouput-to-raspberry-pi-zero/pi-zero-pwm-audio
> (admittedly without really knowing what I am doing....)
> So, I added this:
> dtoverlay=pwm-2chan,pin=18,func=2,pin2=13,func2=4
> to the /boot/config.txt file, which should reroute the BCM pins 13 & 18
> for PWM-Audio at boot.
> To be verified via gpio readall, which should show BCM Pin18 on Mode
> Alt5 and BCM Pin13 on Mode Alt0 - but these Pins show not these desired
> modes, instead Pin18 shows Mode Alt0 and Pin13 shows Mode In
> -> What am I doing wrong??
> Can someone help / give hints, ....
> 
> **update** 
> The above method seems not to work - at least not for me.
> However, I found a solution with this help:
> https://www.raspberrypi.org/forums/viewtopic.php?t=127585
> Bottomline: you can set the GPIOS directly using the GPIO tool which is
> included in pCP w/ these instructions:
> gpio -g mode 18 ALT5 (-> PWM0 to GPIO18)
> gpio -g mode 13 ALT0 (-> PWM1 to GPIO13)
> And I just added these 2 commands in the teaks menue in the 'user
> commands' section. 
> -> Audio on GPIO 13 & 18. Works great so far!

Glad you got it to work. However, I would not expect it to sound any
better than a regular pi audio out jack. I found these to be noisy and
not exactly hifi. You could probably improve sound with even a cheap hat
dac.


------------------------------------------------------------------------
wtnh's Profile: http://forums.slimdevices.com/member.php?userid=36993
View this thread: http://forums.slimdevices.com/showthread.php?t=107901

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to