Audio Amp SHIM (3W Mono Amp)

by Pimoroni

A super-simple, slimline way to hook up a 3W speaker to your Raspberry Pi! Output punchy digital I2S audio whilst leaving your GPIO pins conveniently accessible.

SHIM is a old Yorkshire term meaning 'Shove Hardware In Middle' - we use it for Raspberry Pi add-ons that are designed to be sandwiched between your Pi and a HAT or mini HAT. This one has a clever friction fit header which slips handily over your GPIO pins and is easily removable - great for prototyping.

The MAX98357A combined DAC / amplifier chip takes high quality digital audio from your Pi and amplifies it so it can be used with an unpowered speaker. The push-fit connectors make it straight-forward to connect up your speaker, whether it's a bookshelf or floor-standing speaker, the speaker in an old radio, or a teeny tiny mini speaker like the ones we sell here.

Because Audio Amp SHIM adds no extra bulk to your Pi it's perfect for building into a compact enclosure - you could use it to make a tiny MP3 player to play local files or stream from online services, give a vintage radio the ability to play digital radio streams or incorporate bleepy noises into your very own retro handheld. It's also a handy way to add an an audio output to your Pi Zero or Pi 400!

Please note that Raspberry Pis and speakers are not included with this board - check out the extras tab for compatible ones!

Features

  • MAX98357A DAC / amplifier chip (datasheet)
  • Mono 3W audio out
  • Push-fit speaker terminals
  • SHIM-format board with friction-fit connectors
  • 2x mounting holes (M2.5) for if you want to secure everything together with bolts
  • Fully-assembled
  • No soldering required (unless you're using a Pi that comes without a header)*
  • Compatible with all 40-pin header Raspberry Pi models
  • Schematic

* Note that variation in manufacturing tolerances on both headers and boards can affect the tightness of the friction fit. If you find that yours is not making a good connection, you could try bending the two rows of GPIO pins away from each other very slightly to improve the fit. 

To ensure a robust connection, we'd suggest soldering the SHIM to your Pi's GPIO pins (or a socket header) when you come to install it in your final project.

Software

The easiest way to get everything set up is to to use our Pirate Audio software and installer which configures I2S audio, as well as installing Mopidy and our custom Pirate Audio plugins.

Here's how to get started:

  1. Set an SD card up with the latest version of Raspberry Pi OS.
  2. Connect to Wi-Fi or a wired network.
  3. Open a terminal and type the following:

    git clone https://github.com/pimoroni/pirate-audio
    cd pirate-audio/mopidy
    sudo ./install.sh


  4. Reboot your Pi

You can find more detailed instructions here: https://github.com/pimoroni/pirate-audio/tree/master/mopidy or get tons more info in our Getting Started with Pirate Audio tutorial.

Alternatively, if you'd rather not install all the Mopidy stuff, you can set Audio Amp SHIM as your default Alsa device in Raspberry Pi OS by adding the following line to your /boot/config.txt file:

dtoverlay=hifiberry-dac

If you're using a Pi that has an audio jack you might also need to disable onboard audio by adding a # to the beginning of the following line (this can help applications find the correct audio device automatically)

#dtparam=audio=on

Notes

  • Dimensions: 63.3 x 15.2 x 5.4mm (L x W x D, including speaker connector)
  • You can use an Audio Amp SHIM with HATs and mini HATs without a booster header, as long as they don't have any chunky components on the underside (it's a good idea to check 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 one with a Pibow Coupé case (either for the Zero / Zero W or Pi 4), then you'll need to use a booster header to raise it up a little.
  • If you're planning on using Audio Amp SHIM to add an audio output to your Pi 400, you'll also need a booster header. If you're plugging it directly into the back of a Pi 400, bear in mind that the SHIM should be upside down, with the mounting holes at the bottom. Alternatively, you could plug it in via a Flat HAT Hacker (in which case you won't need a booster header or to plug anything in upside down).
  • Maximum wire size for the push fit connectors is 0.75mm² (1mm diameter, 18AWG).You'll need tinned ends on your speaker wires, so that they are stiff enough to push into the connectors (all the speakers we sell have tinned wires).
  • Audio Amp SHIM uses GPIO 18, 19, and 21 (as well as 3.3v, 5v and ground). If you're planning on using it in conjunction with other boards you'll need to check for pin conflicts using pinout.xyz.

20 customer reviews

5 months ago
It took a bit of configuring to get the hat to work, but once I got it recognized by the OS, it started working. Also, it seems you need to solder it onto the pins, otherwise it doesn't make a good connection. I didn't solder all the pins, and it seems to work fine. I would definitely recommend it for small applications.
by Nathan about Audio Amp SHIM (3W Mono Amp) via REVIEWS.io
7 months ago
This is a fantastic device and I'm so glad I found it. I purchased this to add audio to my cyberdeck/mini cartoon player project. Using a Booster Header as recommended, link at the bottom, I connected this shim to my Pi4. I used a mono speaker, link also below. I'll admit I did have some trouble using this device but it's user error on my part. In short the plastic pins, the little arms as it were, should not be lifted, who knew....oh wait everyone but me. Aside from that, the only note I did find is that the '/boot/config.txt' is now /boot/firmware/config.txt' but that may well be OS specific. As for quality with the speaker I linked it packs a good punch and well worth it. Booster Header - https://shop.pimoroni.com/products/booster-header?variant=47414520906 Mono Speaker - https://shop.pimoroni.com/products/mini-speaker-4-3w?variant=2976551927818 All in all a great buy for a great price
by Anonymous about Audio Amp SHIM (3W Mono Amp) via REVIEWS.io
2 years ago
Love it. As with all Pimoroni stuff it arrived super fast. it will be used in a pip-boy mkVI for wasteland radio :)
by Cassiopeia about Audio Amp SHIM (3W Mono Amp) via REVIEWS.io
2 years ago
Awwww this is a BRILLIANT little bit of kit! I already had a 3W 4Ω speaker like the one that's shown in the photo, and it's the perfect coupling :) I'm using it in a little robot I've been building — much to my wife's dismay it can now talk :D It's worth noting that because I used a COM0002 11mm header instead of mounting straight to the Raspberry Pi, I had to solder the header to the SHIM. This is simply because the legs on this header are quite thin and don't make contact with the PCB ;)
by Craig about Audio Amp SHIM (3W Mono Amp) via REVIEWS.io
3 years ago
Shipment went well. Connection to the raspberry gpio pins can be unstable. I would advice to solder them togehter oder use a female gpio header
by Joris about Audio Amp SHIM (3W Mono Amp) via REVIEWS.io

7 user photos