Audio Amp SHIM: 3W Mono Amplifier
With this product, you can easily connect a 3W speaker to your Raspberry Pi. It outputs powerful I2S digital audio while leaving the GPIO pins accessible.
This audio amplifier is supplied in SHIM format (an acronym for ‘Shove Hardware In the Middle’), and can be inserted between the Raspberry Pi board and a HAT or mini HAT. This product features a snap-on header that slides easily onto the GPIO pins, so it requires no soldering* and is easily removable.
*Soldering will only be necessary if you are using a Raspberry Pi without a header.
The MAX98357A combined DAC/amplifier chip on the board takes high-quality digital audio from your Raspberry Pi and amplifies it so that it can be used with an unpowered speaker. The push-fit connectors make it easy to connect your speaker, whether it’s a bookshelf or floor-standing speaker, the speaker from an old radio, or a tiny mini speaker.
As the Audio Amp SHIM doesn’t add much bulk to your Raspberry Pi, it’s perfect for compact projects, such as:
- building a small MP3 player to play local files or stream from services like Spotify,
- enabling a vintage radio to play radio broadcasts digitally, or
- incorporating beep sounds into your retro handheld.
It’s also a handy way to add an audio output to your Raspberry Pi Zero or Raspberry Pi 400.
Note: This product consists of the Audio Amp SHIM board. The Raspberry Pi, speaker and cables are sold separately.
Audio Amp SHIM features
- MAX98357A DAC/amplifier chip (datasheet)
- 3W mono audio output
- Push-fit terminals for speakers
- SHIM-format board with snap-in connectors
- 2 x mounting holes (M2.5) to secure everything together with bolts
- Comes fully assembled
- No soldering required (soldering will only be necessary if you are using a Raspberry Pi without a header)
- Compatible with all Raspberry Pi models with a 40-pin header
- Dimensions: 6.33 × 1.52 × 0.54 cm (L × W × D, including the speaker connector)
Software for the Audio Amp SHIM
Using this software and the Pirate Audio installer, you can configure the Audio Amp SHIM very easily – setting up I2S and SPI audio, as well as installing Mopidy and custom Pirate Audio plug-ins that will allow you to stream Spotify and play local files.
Getting started:
- Install the latest version of the Raspberry Pi operating system onto an SD card.
- Connect to a Wi-Fi or wired network.
- Open a terminal and type:
git clone https://github.com/pimoroni/pirate-audio
cd pirate-audio/mopidy
sudo ./install.sh - Restart your Raspberry Pi
If you’d like more detailed instructions, see the following GitHub link about Pirate Audio or consult the Pirate Audio Getting Started Guide.
Alternatively, if you do not wish to install all of the Mopidy software, you can set Audio Amp SHIM as your default ALSA (Advanced Linux Sound Architecture) device in the Raspberry Pi operating system by adding the following lines to your /boot/config.txt file /boot/config.txt:
dtoverlay=hifiberry-dac
gpio=25=op,dh
If you are using a Raspberry Pi with an audio jack, you may also need to disable the on-board audio by adding a # at the start of the following line (this can help applications automatically detect the correct audio device)
#dtparam=audio=on
Useful notes
- You can use the Audio Amp SHIM with HATs and mini HATs without a booster connector, provided that the HAT/mini HAT does not have any large components on the underside (it is good practice to check that there are no metal components on the underside of your HAT that touch the metal components on the top of the SHIM).
- If you want to use the Audio Amp SHIM with the Pibow Coupé Case, you’ll need to use a booster connector to raise it slightly.
- If you wish to use the Audio Amp SHIM to add an audio output to your Raspberry Pi 400, you’ll also need a header booster. If you’re connecting it directly to the back of a Pi 400, remember that the SHIM will need to be upside down, with the mounting holes on the underside. Alternatively, you could use a Hacker Flat HAT to connect it (in which case you won’t need a header booster or to connect it upside down).
- The maximum cable size for the push-fit connectors is 0.75 mm² (1 mm diameter, 18 AWG). You’ll need the speaker cables to have tinned ends, so that they’re stiff enough to fit into the connectors.
- The Audio Amp SHIM uses GPIO pins 18, 19 and 21 (as well as 3.3V, 5V and various Ground pins). If you intend to use it alongside other boards, you’ll need to check for pin conflicts using pinout.xyz.
Pimoroni name: Audio Amp SHIM (3W Mono Amp) [PIM541]




























Reviews
There are no reviews yet.