Little Bird
Pirate Audio: Headphone Amp for Raspberry Pi
The ultimate hackable headphone amp for your desk! Pirate Audio Headphone Amp for Raspberry Pi has an I2S DAC, headphone amplifier, high-res d...
The ultimate hackable headphone amp for your desk! Pirate Audio Headphone Amp for Raspberry Pi has an I2S DAC, headphone amplifier, high-res display, and playback control buttons.
Build your own home-brew iPod Nano with Pirate Audio Headphone Amp! It's an all-in-one solution, with gorgeous album art display, track info, and playback controls, for playing your local audio files (MP3, FLAC, etc) or streaming music from Spotify. The DAC and headphone amp give you crisp digital amplified audio through your wired headphones.
Pirate Audio is a range of all-in-one audio boards for Raspberry Pi, with high-quality digital audio, beautifully-crisp IPS displays for album art, tactile buttons for playback control, and our custom Pirate Audio software and installer to make setting it all up a breeze.
Features
- Amplified digital audio (24-bit / 192KHz) over I2S
- PAM8908 headphone amplifier chip (datasheet)
- Low-gain / high-gain switch (high-gain boosts by 12dB)
- PCM5100A DAC chip (datasheet)
- 3.5mm stereo jack
- 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: 65x30.5x9.5mm
Software
Our Pirate Audio software and installer installs the Python library for the LCD, configures the I2S audio and SPI, and then installs Mopidy and our custom Pirate Audio plugins to display album art and track info, and to use the buttons for playback control.
Here's how to get started:
- Set an SD card up with the latest version of Raspbian.
- Connect to Wi-Fi or a wired network.
- Open a terminal and type the following:
git clone https://github.com/pimoroni/pirate-audio
cd pirate-audio/mopidy
sudo ./install.sh
- Reboot your Pi
You can find more detailed instructions here: https://github.com/pimoroni/pirate-audio/tree/master/mopidy or get tonnes more info in our Getting Started with Pirate Audio tutorial.
Notes
Note that our installer, linked above, does all of the below for you, but if you're an intrepid hacker then you might need to know this stuff!
- The low-gain mode is recommended for most use-cases.
- The DAC can be configured by adding dtoverlay=hifiberry-dac to the /boot/config.txt file.
- There is a DAC enable pin—BCM 25— that must be driven high to enable the DAC. You can do this by adding gpio=25=op,dh to the /boot/config.txt file.
- The buttons are active low, and connected to pins BCM 5, 6, 16, and 20
- The display uses SPI, and you'll need to enable SPI through the Raspberry Pi configuration menu.
- If you want to use these boards 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.
Jargon buster
Plain-language definitions for the technical terms used above.
- active LOW
- Active LOW means an input is considered switched on when it is connected to a low voltage or ground. This matters when wiring buttons, switches, or other trigger signals so the board responds in the expected way.
- DAC
- A digital-to-analogue converter turns numbers from the microcontroller into a real analogue voltage. It matters if you want to generate simple waveforms, audio-style signals, or variable control voltages rather than just on/off outputs.
- GPIO
- General-purpose input/output pins are microcontroller pins you can set in software to read signals, switch devices on and off, or connect to peripherals. The number of GPIO pins matters because it limits how many buttons, LEDs, sensors, and other parts you can wire directly to the board.
- I2S
- I2S is a digital audio interface used to send sound data between chips, such as from a microcontroller to an audio amplifier or DAC. It matters if your project needs cleaner digital audio output than a basic buzzer or PWM signal can provide.
- IPS
- IPS is a type of LCD panel that keeps colours and contrast more consistent when viewed from an angle. This matters for small displays that may be mounted in a dashboard, handheld project, or enclosure where the viewer is not always looking straight on.
- LCD
- LCD stands for liquid crystal display, a screen technology that uses a backlight and liquid crystals to show images or text. It matters because LCD modules usually need a display driver and enough controller pins or a bus interface to send image data.
- SPI
- A fast serial communication bus often used for displays, memory cards, and sensors. It matters because SPI devices need specific pins for clock and data, plus a separate chip-select line for each device.
- ST7789
- A display controller chip commonly used to drive small colour TFT screens. If a board uses an ST7789, your software needs a compatible display library or driver to draw text, graphics and images correctly.
Find this product in
Audio & Video
Brands