# Loud Raspberry Pi Hat

Raspberry Pi Audio Hat powered by MAX98357A DAC

- **Seller:** [Sonocotta store](https://lectronz.com/stores/sonocotta), Warsaw, Mazowieckie, Poland
- **Price:** $16.00 (USD, before shipping and taxes)
- **Availability:** In stock
- **Categories:** Home automation, Audio, Raspberry Pi
- **Product page:** https://lectronz.com/products/loud-raspberry-hat

## Options

**Board version**

- 1X Hat (2.0, any Pi), rev C + 40-pin extender △ (4 left)
- 2X Hat (2.2, Pi5), rev B △ (0 left)

## Links

- [Documentation](https://hackaday.io/project/195272-raspberry-pi-media-center)
- [Code](https://github.com/sonocotta/raspberry-media-center)

## Images

![Loud Raspberry Pi Hat](https://lectronz-images.b-cdn.net/lectronz/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6NTIzMzYsInB1ciI6ImJsb2JfaWQifX0=--4b45adc391403a89264118a090565dc6bff5a2ac/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJKUEciLCJyZXNpemVfdG9fbGltaXQiOls5NjAsNjQwXSwic2F2ZXIiOnsic3RyaXAiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--a1419a086f227676aca33a49760ac51e58b523e3/2025-02-08T21-41-36.482Z-DSC_0179.JPG)
![Loud Raspberry Pi Hat](https://lectronz-images.b-cdn.net/lectronz/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6NTIzMzcsInB1ciI6ImJsb2JfaWQifX0=--44de205106a8073d6773e002bb8d8392840eac70/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJKUEciLCJyZXNpemVfdG9fbGltaXQiOls5NjAsNjQwXSwic2F2ZXIiOnsic3RyaXAiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--a1419a086f227676aca33a49760ac51e58b523e3/2024-09-23T08-58-45.797Z-DSC_0043.JPG)
![Loud Raspberry Pi Hat](https://lectronz-images.b-cdn.net/lectronz/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6NTIzMzgsInB1ciI6ImJsb2JfaWQifX0=--625e38f203b0bd9de1c9768de8491f15721c07d8/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJKUEciLCJyZXNpemVfdG9fbGltaXQiOls5NjAsNjQwXSwic2F2ZXIiOnsic3RyaXAiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--a1419a086f227676aca33a49760ac51e58b523e3/2025-02-08T21-41-36.482Z-DSC_0184.JPG)
![Loud Raspberry Pi Hat](https://lectronz-images.b-cdn.net/lectronz/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6NTIzMzksInB1ciI6ImJsb2JfaWQifX0=--4788bf8a079cf8153085fbc7316955b7e0fc80ad/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJKUEciLCJyZXNpemVfdG9fbGltaXQiOls5NjAsNjQwXSwic2F2ZXIiOnsic3RyaXAiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--a1419a086f227676aca33a49760ac51e58b523e3/2024-09-23T08-58-45.797Z-DSC_0034.JPG)
![Loud Raspberry Pi Hat](https://lectronz-images.b-cdn.net/lectronz/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6NTIzNDAsInB1ciI6ImJsb2JfaWQifX0=--cd28af0d85855467e3c717dd5df6b4931629297e/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJKUEciLCJyZXNpemVfdG9fbGltaXQiOls5NjAsNjQwXSwic2F2ZXIiOnsic3RyaXAiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--a1419a086f227676aca33a49760ac51e58b523e3/2025-02-08T21-41-36.482Z-DSC_0178.JPG)
![Loud Raspberry Pi Hat](https://lectronz-images.b-cdn.net/lectronz/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6NTIzNDEsInB1ciI6ImJsb2JfaWQifX0=--7c3c0489ddda304995c0ff6c3d7c1b87b823c911/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJKUEciLCJyZXNpemVfdG9fbGltaXQiOls5NjAsNjQwXSwic2F2ZXIiOnsic3RyaXAiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--a1419a086f227676aca33a49760ac51e58b523e3/2024-09-23T08-58-45.797Z-DSC_0040.JPG)
![Loud Raspberry Pi Hat](https://lectronz-images.b-cdn.net/lectronz/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6NTIzNDIsInB1ciI6ImJsb2JfaWQifX0=--2424fa43f995d0bc0514d1ec9829be360186368c/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJKUEciLCJyZXNpemVfdG9fbGltaXQiOls5NjAsNjQwXSwic2F2ZXIiOnsic3RyaXAiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--a1419a086f227676aca33a49760ac51e58b523e3/2025-02-08T21-41-36.482Z-DSC_0183.JPG)
![Loud Raspberry Pi Hat](https://lectronz-images.b-cdn.net/lectronz/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6NTIzNDQsInB1ciI6ImJsb2JfaWQifX0=--a1731c78f46472be39f9adfdb5ba561afc641a92/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJKUEciLCJyZXNpemVfdG9fbGltaXQiOls5NjAsNjQwXSwic2F2ZXIiOnsic3RyaXAiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--a1419a086f227676aca33a49760ac51e58b523e3/2025-02-08T21-41-36.482Z-DSC_0181.JPG)
![Loud Raspberry Pi Hat](https://lectronz-images.b-cdn.net/lectronz/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6NTIzNDUsInB1ciI6ImJsb2JfaWQifX0=--99d8583d015923b2ad7da668bf873e907c3ffc3d/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJKUEciLCJyZXNpemVfdG9fbGltaXQiOls5NjAsNjQwXSwic2F2ZXIiOnsic3RyaXAiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--a1419a086f227676aca33a49760ac51e58b523e3/2025-02-08T21-41-36.482Z-DSC_0175.JPG)
![Loud Raspberry Pi Hat](https://lectronz-images.b-cdn.net/lectronz/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6NTIzNDYsInB1ciI6ImJsb2JfaWQifX0=--f90acb9400c151d88c6cbec33e9494cfa1d14ba7/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJKUEciLCJyZXNpemVfdG9fbGltaXQiOls5NjAsNjQwXSwic2F2ZXIiOnsic3RyaXAiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--a1419a086f227676aca33a49760ac51e58b523e3/2025-02-08T21-41-36.482Z-DSC_0177.JPG)
![Loud Raspberry Pi Hat](https://lectronz-images.b-cdn.net/lectronz/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6NTIzNDcsInB1ciI6ImJsb2JfaWQifX0=--330c234a9c833306a3db25b151d81d380d3037d1/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJKUEciLCJyZXNpemVfdG9fbGltaXQiOls5NjAsNjQwXSwic2F2ZXIiOnsic3RyaXAiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--a1419a086f227676aca33a49760ac51e58b523e3/2024-09-23T08-58-45.797Z-DSC_0023.JPG)
![Loud Raspberry Pi Hat](https://lectronz-images.b-cdn.net/lectronz/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6NTIzNDgsInB1ciI6ImJsb2JfaWQifX0=--fc62d284225ae39955da72be69c39241149debaf/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJKUEciLCJyZXNpemVfdG9fbGltaXQiOls5NjAsNjQwXSwic2F2ZXIiOnsic3RyaXAiOnRydWV9fSwicHVyIjoidmFyaWF0aW9uIn19--a1419a086f227676aca33a49760ac51e58b523e3/2025-02-08T21-41-36.482Z-DSC_0185.JPG)

## Description

## What is it?

The Loud Raspberry Hat is a cost-effective version of the [Loud Raspberry Media Center](https://lectronz.com/products/loud-raspberry-media-center). It combines the power of the Raspberry Pi SBC and the Hi-Fi audio capabilities of the Analog Devices MAX98357A DAC.

| 1X | 2X |
|----|----|
| ![DSC_0179](https://github.com/user-attachments/assets/03e1fa11-a973-4318-b79f-261a4b1d878a) | ![DSC_0043](https://github.com/user-attachments/assets/5768a8c6-20bf-4841-bc8a-936c5d4e96a8)


Loud Raspberry Hat has the same DAC and audio circuitry in a cost-efficient Hat form. The 1X version can be used with any Raspberry Pi, while Raspberry Pi 5 users can use two pairs of speakers independently on the 2X version. Hat will pull the juice from the Pi's 5V line, or power the Pi itself using screw connectors, so you can make sure enough power is delivered to both boards.

## Why did I build it

I did a few audio projects in the past, some using [ESP32](https://sonocotta.com/esparagus-hifi-medialink/), some using larger [Orange Pi](https://sonocotta.com/orange-pi-media-center/) and [Raspberry Pi](https://hackaday.io/project/162373-orangepi-zero-pulse-music-server-using-i2s-dac) devices. Each has its pros and cons, and with each iteration, I'm trying to focus on the details that were working best for me while actually using them. 

What is special about the Raspberry eco-system is, of course, its community support. Being a not-so-strong software developer, I often have to rely on the work that other people did and baked into the base Raspbian image. Attaching a DAC, Ethernet, and IR reader is as simple as adding 3 lines into `config.txt` file. All the device tree definitions, kernel drivers, and dependency packages are already in place, believe it or not. 

Sure, compared to the ESP32 platform, it is not as lightweight. It requires more power, it takes some time to boot. But when it comes to rapid development, there is nothing like the Raspberry Pi.

**Loud Raspberry Hat** uses a quad MAX98357 HiFi DAC with a built-in highly efficient D-class amp to deliver 3 to 5W of music power directly to your speakers. It is not too loud, but it is very simple to use and fun to play with. It powers from a standard USB-C power source, like a phone charger or a standard 5V wall adapter delivering a few amps.

## Use cases

**Loud Raspberry Hat** is a flexible, open-source audio platform designed to fit into both smart homes and custom audio projects.

*   **Smart Home Audio, TTS & Automation Node**
    Integrates with Home Assistant and Music Assistant for high-quality playback, text-to-speech, and event-driven announcements. Functions as both an audio endpoint and a networked automation node for sensors, triggers, and smart home workflows.
*   **Multi-Room Audio Infrastructure**
    Use **Loud Raspberry Hat** as a Snapclient server and endpoint for perfectly synchronized distributed audio. Ideal for open, vendor-neutral whole-home or commercial audio systems.
*   **Standalone Network Player & Streaming Hub**
    Run LMS/Squeezelite for a self-contained streaming device supporting Spotify Connect, AirPlay, and Logitech Media Server — no external computer required.
*   **Embedded Audio Processing & DSP Platform**
    Execute real-time digital signal processing, filtering, effects, or audio analysis directly on-device. Suitable for smart speakers, alert systems, acoustic sensing, and custom audio interfaces.
*   **Networked Sensor & Interface Controller**
    Combine audio output with GPIO control, sensors, buttons, displays, or actuators. Ideal for interactive installations, smart appliances, voice feedback devices, or industrial status systems.
*   **Educational Platform for Systems & Networking**
    A practical teaching platform for embedded Linux-style workflows without full SBC overhead — covering networking, streaming protocols, real-time processing, IoT architectures, and open-source audio systems.
*   **Rapid Prototyping for Connected Products**
    Designed for fast iteration of networked hardware products — from smart audio devices and notification systems to interactive kiosks and connected consumer electronics.
*   **Open Platform for Custom Products & DIY Builds**
    With fully open firmware and tooling, **Loud Raspberry Hat** provides a flexible foundation for personal projects, research platforms, or commercial device development.

## Features

|  | **Loud Raspberry Hat** | **Loud Raspberry Hat 2X** | [Loud Raspberry Media Center](https://lectronz.com/products/loud-raspberry-media-center) |
|---|---|---|---|
| Image | ![DSC_0179](https://github.com/user-attachments/assets/03e1fa11-a973-4318-b79f-261a4b1d878a) | ![DSC_0043](https://github.com/user-attachments/assets/5768a8c6-20bf-4841-bc8a-936c5d4e96a8) | ![DSC_0008](https://github.com/sonocotta/raspberry-media-center/assets/5459747/8846389c-f06c-4c36-88a7-63c0c789e944)
| Compatible with | Every Pi | Raspberry Pi 5 | Raspberry Pi Zero (W), Raspberry Pi Zero2 W |
| DAC | Dual MAX98357 DAC with built in D-Class amp | Quadruple MAX98357 DAC with built in D-Class amp | Dual MAX98357 DAC with built in D-Class amp |
| Output | 5W per channel on 4Ω load (3W on 8Ω) | 5W per channel on 4Ω load (3W on 8Ω) | 5W per channel on 4Ω load (3W on 8Ω) |
| IR input | ❌ | ❌ | ✅  |
| RGB LED | ❌ | ❌ | ✅  |
| Onboard Serial Bridge | ❌ | ❌ | ✅  |
| Wizznet W5500 Ethernet | ❌ | ❌ | ✅  |
| Mechanical dimensions (WxHxD) | 65mm x 30mm x 15mm | 65mm x 30mm x 15mm | 88mm x 38mm x 100mm |
| Power requirement | 5V from the host (up to 2A)<br>or 5V from screw connector (powering host) | 5V from the host (up to 4A)<br>or 5V from screw connector (powering host) | 5V USB-C power adapter (up to 3A) |


⚠️ *Loud boards will connect to passive speakers; you can't use headphones or an external amp.*

💡 *Need to connect an external amp? Check out [HiFi Raspberry Hat](https://lectronz.com/products/hifi-raspberry-hat) and [HiFi Raspberry Media Center](https://lectronz.com/products/hifi-raspberry-media-center)*

💡 *Need DSP capabilities? Check out [Louder Raspberry Hat](https://lectronz.com/products/louder-raspberry-hat), [Louder Raspberry Hat Plus](https://lectronz.com/products/louder-raspberry-hat-plus) and [Louder Raspberry Media Center](https://lectronz.com/products/louder-raspberry-media-center)*

## Board Pinout

|                    | I2S CLK | I2S DATA           | I2S WS | MAX98357A EN |
|--------------------|---------|--------------------|--------|--------------|
| Raspberry Pi Zero  | 18      | 21                 | 19     |   5          |
| Raspberry Pi 2,3,4 | 18      | 21                 | 19     |   5          |
| Raspberry Pi 5     | 18      | 21, 23, 25, 27     | 19     |   5, 6       |

## How to use

You need nothing more than an SD card with a Raspbian image and a USB-C power brick. You can use any distribution you like. The only change you need to make to enable hardware is to add 3 lines to the `/boot/config.txt`

```
dtoverlay=max98357a,sdmode-pin=5
```

## Other software options

The project repository provides a few examples with build instructions, including [Volumio setup](https://github.com/sonocotta/raspberry-media-center#volumio) instructions, among others.

## Hardware

Please visit the [hardware](https://github.com/sonocotta/raspberry-media-center/tree/main/hardware) section of the project repo for board schematics and PCB designs. Note that PCBs are shared as multi-layer PDFs as well as Gerber archives.

### PCB diagram

| 1X | 2X |
|-------|-------|
| ![image](https://github.com/user-attachments/assets/8aca2281-1e73-4aa9-b7b4-29bc4994f136) | ![image](https://github.com/user-attachments/assets/81ecd4dd-5fe1-41eb-aed7-153bf5b99cf8)

### Power considerations

Below are the power requirements for different Pi models

| Model | Power requirement |
|-------|-------------------|
| Raspberry Pi Zero W | 260 mA (1.3 W)
| Raspberry Pi Zero 2 W | 500 mA (2.5 W)
| Raspberry Pi 3 Model B | 1.34 A (6.7 W)
| Raspberry Pi 3 Model B+ | 1.21 A (6.05 W)
| Raspberry Pi 3 Model A+ | 0.75 A (3.75 W)
| Raspberry Pi 4 Model B (1GB, 2GB, 4GB, and 8GB RAM variants) | 3.0 A (15 W)
| Raspberry Pi 5 | Approximately 3.5 A

Consider each 5W of expected audio output to be another 1A of the current budget and buy a reasonable power source capable of delivering the sum of Pi and audio requirement with a reasonable margin of 15%+

In the extreme scenario, using all 4 channels with 4 Ohms load with Pi5, you'd need `(3A [Pi] + 4A [audio]) * 1.2 = 8.4A` or 42W, round up to 50W.

### Raspberry Pi 5 note

Raspberry Pi 5 is the first one that allows the user to drive multiple I2S data lines using the same interface. What it means in practice is that while all older Pis have just 3 I2S lines (CLK, WS, DATA), Pi5 supports up to 4 Data lines (CLK, WS, D0, D1, D2, D3), capable of driving 4 independent audio interfaces. 

2X Raspberry Pi hats support alternative data lines. You need to short some solder bridge to use it, though. It allows configuring Hats to use different pins and stack them together to create 4 individual stereo interfaces (8 channels in total) using the same device.

By default, the 2X hat uses pins 21,23 for data, with the possibility to switch to pins 25 and 27 with solder bridges and stack 2 boards together.

| Loud Hat |
|----------|
| ![image](https://github.com/user-attachments/assets/cbbade50-5d49-4a8b-954c-81f5a1c80550)

The device tree that can utilize all channels and DACs on and off properly is a work in progress. But a quick and dirty way to enable all channels is to use `hifiberry-dac8x` device tree. It lacks enable pins, and thus they need to be permanently switched on in the software. 

The configuration value that allows this is quite simply

```
dtoverlay=hifiberry-dac8x
```

# Restocking & Availability

New restock batches are regularly ordered from the factory, and I plan to keep all versions available at least until the next board revision is released.

## USA shipping Update

Due to the new tariffs introduced by the Trump administration, standard shipments are temporarily on hold. However, shipping to the US has now resumed via UPS, though rates are currently quite high. I’ll fully resume regular shipping as soon as the restrictions are lifted.

## Sponsorship & Community Support

If you’re working on an open-source project, an educational initiative, or any pro-bono/volunteer effort, feel free to reach out for sponsorship details. I’ll do my best to provide discounts or even free boards.

## Custom Design & Consultation

If you’re interested in a custom design based on, or inspired by, my boards, I also offer contract design work and consultation when needed.

## Shipping policy

Most orders are shipped the next business day morning. All shipments are tracked. Delivery time in the EU is 3-7 days, outside 2-3 weeks, depending on the distance. After 30 days, the package is considered lost - reach out for a refund or replacement.
