This shows you the differences between two versions of the page.

Link to this comparison view

output_device [2020/01/28 20:25] (current)
genetik57 created
Line 1: Line 1:
 +===== Output Device =====
 +This gives you the ability to select audio through **HDMI**, **AUX**, or **Automatically Detect**. This can be changed by moving down to the option and selecting **left** or **right** on your controller of choice.
 +===== GPIO (rpi0) =====
 +If you need audio out from GPIO (in case you are using an Raspberry pi0 that doesn't have audio jack), you must follow these steps:
 +  * Connect the left channel to GPIO18 (pin12 GPIO)
 +  * Connect the right channel to GPIO13 (pin33 GPIO)
 +  * Connect the ground to GROUND (pin14 GPIO) (common ground for audio)
 +  * Add this string at the end of /BOOT/config.txt file and save the file
 +  dtoverlay=pwm-2chan,pin=18,func=2,pin2=13,func2=4
 +  * Set AUDIO = JACK in Batocera sound menu (audio output)
 +If you need mono audio (in case GPIO pins are used in another way, for example GPIO controllers), you must connect GPIO13 (pin33) only and GROUND. In this case the string is 
 +  dtoverlay=pwm,pin=13,func=4
 +For better audio, you can add a filter and an amplifier before connecting speaker/headphones
  • output_device.txt
  • Last modified: 6 months ago
  • by genetik57