🎉  Happy 13th Birthday Raspberry Pi!   🎂   1,000+ deals in store!   🥳
🎉  Happy 13th Birthday Raspberry Pi!   🎂   1,000+ deals in store!   🥳

Pirate Audio: Dual Mic for Raspberry Pi

by Pimoroni

Capture sounds in stereo and store them safely away in your Raspberry Pi with Pirate Audio: Dual Mic. It has a matched pair of I2S microphones, a vibrant high-res colour display, and four tactile control buttons.

This Raspberry Pi mini HAT is perfect for recording stereo audio clips at the click of a button. You could use it as a mini dictaphone for recording important notes, shopping lists, melodies or prophetic dreams, or if you wanted to take it a step further you could use it to capture sounds to analyse with machine learning or even hook it up to Google Assistant or Alexa APIs.

Pirate Audio is a range of all-in-one audio boards for Raspberry Pi, with high-quality digital audio, beautifully-crisp IPS displays, tactile buttons for software control and custom Pirate Audio software.

Features

  • 2x SPH0645LM4H-B microphones (datasheet)
    • High performance SiSonic™ acoustic sensor
    • High Signal to Noise ratio of 65dB
    • Inbuilt Analog to Digital Converter
    • I2S interface
  • 1.3" IPS colour LCD (240x240px) (ST7789 driver)
  • Four tactile buttons
  • Mini HAT-format board
  • Fully-assembled
  • Compatible with all 40-pin header Raspberry Pi models
  • Pirate Audio software
  • Dimensions: 31mm x 65mm x 9mm (approx, including screen and header)

Software

We've put together a clip recorder example application to show you how to record audio files and play them back, as well as a convenient installer!

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/clip-recorder
    sudo ./install.sh


  4. Reboot your Pi

(There's more info about what the installer does, what audio plugins we've used and how to install them manually on Github).

Notes

  • The buttons are active low, and connected to pins BCM 5, 6, 16, and 24.
  • Unlike the other Pirate Audio boards, Dual Mic doesn't have any chunky components on the underside so it will work fine with a Pibow Coupé case without a booster header.
  • Please note that Pirate Audio: Dual Mic doesn't have any audio output itself, so if you want to be able to listen back to what you've recorded you'll need to use a full size Raspberry Pi with an audio jack, or some alternative audio arrangement, like a Bluetooth speaker or audio over HDMI.
  • I2S supports both input and output devices, so if you're happy hacking on the mystical device tree overlay you could potentially use one of our other Pirate Audio boards for audio output, via something like a HAT Hacker HAT.

3 customer reviews

2 years ago
Works perfectly as advertised, good documentation and a nice set of example programs. I can take it from there. I have been thinking of but not actually buying it for literally years - the recent sale made me a buyer. Just the thing to amuse the piano-playing members of my family.
by Peter about Piano HAT via REVIEWS.io
5 years ago
Good fun to tinker with. Well built and of the highest quality.
by Daniel about Piano HAT via REVIEWS.io
9 years ago
Recently purchased one of these piano hat boards for my raspberry pi, as usual the service from Pimoroni was excellent and the board is of a really good quality. It's nicely laid out and the touch pads are a decent size. The board looks very classy with the black background and gold lettering and the software to go with it makes using the board very easy. Although it's laid out as a piano it could be used for anything which requires 16 capacitive touch pads and leds.
by Steve about Piano HAT via REVIEWS.io

User photos