The diagram below shows where to connect to the PWM audio on a Pi Zero(bottom view):
PWM0 and PWM1 are the right and left audio channels corresponding to GPIO 18 and GPIO 13 on the Pi Zero.
Your /boot/config.txt should include the following line:
/etc/modprobe.d/alsa-base.conf and the add the following:
options snd_usb_audio index=0
options snd_bcm2835 index=1
options snd slots=snd-usb-audio,snd-bcm2835
You can test it by using the command
Output should be:
Edit the file
/boot/config.txt and comment the line:
Now edit the file
/etc/modprobe.d/alsa-blacklist.conf and add:
Finally edit the file
/lib/modprobe.d/aliases.conf and comment the line:
#options snd-usb-audio index=-2
Or if you just want the USB Audio to be your primary sound device.
First, let’s choose which device to use. Enter the command
cat /proc/asound/modules to list all available sound devices whether it’s a PWM audio or USB sound device.
The command you just entered should output something like:
0 snd_bcm2835 << this is the PWM audio I configured on GPIO18 & GPIO13.
1 snd_usb_audio << this is my USB sound device.
Enter the command
sudo nano /etc/asound.conf and paste the following code:
# convert stereo to mono LEFT output
# Copy both input channels to output channel 0 (Left).
# Send nothing to output channel 1 (Right).
N on the line
slave.pcm "hw:N" to the number that corresponds to the audio device you want to use. I will be using my USB audio device so mine should read
The above code uses both left and right audio input to output to LEFT channel. If you want the output to the RIGHT then you can just edit the line 8 – 14 to:
# Copy both input channels to output channel 1 (Right).
# Send nothing to output channel 0 (Left).
Restart ALSA by
sudo /etc/init.d/alsa-utils restart or you can reboot your Raspberry Pi using
Arduino pinout guide for the Pro Micro:
Here’s How to Program the Pro Micro with Arduino.
Products you might be interested with:
Use the diagram below to wire the tactile switches for the L and R shoulder buttons. You can wire the GND to any GND pins on the board or any GND somewhere else like from the Raspberry Pi, Battery, powerboost, etc… Diagram works with all my controller boards.
Just do the same wiring if you want to add the L2 and R2 buttons.
Edit the file
/opt/retropie/supplementary/splashscreen/asplashscreen.sh and change the line:
omxplayer -o both -b --layer 10000 "$line"
omxplayer -o alsa -b --layer 10000 "$line
On some earlier systems the file is
From now on, I will try my best to donate a little of my tinkerBOY store earnings to the RetroPie Project on a monthly basis.
The following command will create a 55mb test.img file.
sudo fallocate -v -l 55M test.img