Skip to the content
2 layers68 × 56 mmStereo, the printed circuit board in 3D

A small, power-efficient AirPlay 2 network amplifier. A custom stereo class-D amplifier HAT sits on a Radxa Zero 3E running NixOS and shairport-sync, so any Apple device (or anything that speaks AirPlay 2) can stream…

Size
68 × 56 mm
Copper layers
2
Thickness
1.6 mm
Parts
57
Nets
68
Pads
221
Tracks, vias
344, 150
Pours
4
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
24 Oct 2026
Updated
24 Oct 2026

Overview

Stereo is an open-source printed circuit board by noranraskin, from the noranraskin/stereo-hat repository on GitHub, published under the GPL-3.0 licence. It is a 2-layer board of 68 × 56 mm with 57 parts on 68 nets, routed with 344 tracks and 150 vias.

It is built around the TAS5756MDCAR, B340 and DC-005-A200. Its parts include 31 capacitors, 9 resistors, 5 inductors, 3 connectors and 2 ICs.

Main components

3

README

README.md

Smart Stereo

A small, power-efficient AirPlay 2 network amplifier. A custom stereo class-D amplifier HAT sits on a Radxa Zero 3E running NixOS and shairport-sync, so any Apple device (or anything that speaks AirPlay 2) can stream straight to a pair of passive speakers over Ethernet.

3D render of the amplifier HAT

How it works

text
 iPhone / Mac ──AirPlay 2──▶ Ethernet ──▶ Radxa Zero 3E (NixOS, shairport-sync)
                                              │  I2S (pins 12, 35, 38, 40)
                                              │  I2C (pins 3, 5)
                                              ▼
 12–24 V DC ──▶ HAT ──▶ TPS54232 buck ──5 V──▶ SBC (via header pins 2/4)
                 │                      SBC 3.3 V ──▶ TAS5756M logic
                 └──────────── VIN ───▶ TAS5756M power stage ──▶ L / R speakers
  • SBC: Radxa Zero 3E. Small, low power, and has wired Ethernet. Any SBC with a Raspberry Pi-style 40-pin header and an I2S interface on the standard pins should work.
  • Amplifier: TI TAS5756M, a stereo I2S-input class-D amp with a built-in DAC and DSP. It receives audio over I2S and is configured over I2C.
  • Power: one 12–24 V DC input feeds the amplifier directly. A TI TPS54232 buck converter makes 5 V for the SBC, so you need only one power supply. The 3.3 V for the amplifier's logic comes back from the SBC's own regulator.
  • Software: NixOS, configured declaratively, so the same config can be copied to any number of speakers. shairport-sync is built with AirPlay 2 support, and nqptp handles AirPlay 2 timing.

The HAT is pin-compatible with the HiFiBerry Amp2, so it also works on a Raspberry Pi with the HiFiBerry drivers.

[!IMPORTANT] !!IMPORTANT!! USING A SELF ASSEMBLED HAT WITH A RADXA AND NIXOS IS SOMEWHAT UNCONVENTIONAL. IF YOU USE ANY OTHER SETUP I CANNOT OFFER SUPPORT. THIS IS A HOBBY PROJECT, NOT A PRODUCT.

Repository layout

PathWhat it is
kicad/KiCad 10 project for the HAT: schematics, PCB, custom symbols, footprints and 3D models
kicad/bom/ibom.htmlInteractive BOM. Open it in a browser while placing parts
kicad/datasheets/Datasheets for the TAS5756M and TPS54232
kicad/fabrication-toolkit-options.jsonSettings for the KiCad Fabrication Toolkit plugin (Gerbers, BOM, placement files)
nix/configuration.nixBase NixOS system config
nix/audio-hat.nixDevice tree overlay that enables I2S, I2C and the TAS5756M sound card
nix/airplay.nixshairport-sync (AirPlay 2), nqptp and Avahi
imgs/Render and schematic exports used in this README

Hardware

Schematics

Sheet
Top level / amplifierimgs/stereo.svg
5 V power supplyimgs/power.svg
SBC header and connectorsimgs/io.svg

40-pin header

Only these header pins are used. Everything else is left unconnected.

PinNetPurpose
1, 173.3VLogic supply for the TAS5756M, from the SBC
2, 45VOutput from the HAT's buck converter, powers the SBC
3SDAI2C data
5SCLI2C clock
7SPK_MUTEAmplifier mute (drive high to play)
12SCLKI2S bit clock
35LRCK/FSI2S word clock
38ICSDOUTI2S data from amp to SBC
40ICSDINI2S data from SBC to amp
6, 9, 14, 20, 25, 30, 34, 39GNDGround

Building the board

  1. Open kicad/stereo.kicad_pro in KiCad 10.
  2. Generate fabrication files. The easiest way is the Fabrication Toolkit plugin (its settings are in kicad/fabrication-toolkit-options.json). It writes Gerbers, drill files, a BOM and a placement file to kicad/production/.
  3. Order the PCB (2 layers, 1.6 mm), and optionally SMT assembly. Most passives are 0805 / 1210 with hand-solder pads, so hand assembly is practical too. The TAS5756M (TSSOP-48 with thermal pad) and TPS54232 (SO-8 PowerPAD) need their thermal pads soldered, so hot air or a reflow plate is recommended for those two.
  4. Use kicad/bom/ibom.html to place the parts.

Before first power-up

  • Check for shorts between VIN, 5V, 3.3V and GND with a multimeter.
  • Power the HAT alone first and confirm about 5 V on header pin 2 before plugging in the SBC.
  • Do not power the SBC over USB-C while the HAT is powered. The HAT already feeds 5 V into the header.
  • The speaker outputs are bridge-tied (BTL). Never connect a speaker's − terminal to ground, and never bridge the L and R − terminals.
  • Use passive speakers rated for 4–8 Ω.

Software (NixOS on the Radxa Zero 3E)

1. Install NixOS

Get a working aarch64 NixOS install booting on the Radxa Zero 3E with Ethernet up. Then generate the hardware config on the device:

bash
sudo nixos-generate-config

This creates /etc/nixos/hardware-configuration.nix, which configuration.nix imports. It is specific to each device and not part of this repo.

2. Add the config from this repo

Copy the three files from nix/ into /etc/nixos/ on the device, then edit them:

  • configuration.nix: add your SSH public key to users.users.nixos.openssh.authorizedKeys.keys, and set networking.hostName and time.timeZone.
  • airplay.nix: change "Name of Stereo" to the name you want to see in the AirPlay menu. If you build several speakers, give each one a unique name and hostname.

Then build and switch:

bash
sudo nixos-rebuild switch

Reboot once so the device tree overlay is loaded.

What the config does

  • audio-hat.nix adds a device tree overlay that:

    • enables the RK3566 i2s3 controller on header pins 12 / 35 / 38 / 40;
    • enables i2c3 on pins 3 / 5 and declares the TAS5756M at both possible I2C addresses (0x4c and 0x4d), so the board works whatever the address strap is set to;
    • creates a sound card named TAS5756M, so the ALSA device is always hw:TAS5756M;
    • disables HDMI audio;
    • holds GPIO3_C4 (header pin 7, SPK_MUTE) high, so the amplifier is unmuted at boot.

    It also loads the snd_soc_pcm512x driver, which supports the TAS5756M.

  • airplay.nix builds shairport-sync with AirPlay 2 enabled, runs nqptp for AirPlay 2 timing, enables Avahi (mDNS) so the speaker shows up on your network, and trusts the end0 Ethernet interface in the firewall.

3. Check it works

bash
# The TAS5756M should be bound to its driver (shows "UU" at 4c or 4d)
i2cdetect -l
sudo i2cdetect -y <bus number of i2c3>

# The sound card should be listed
aplay -l

# Play a test tone on both channels (keep the volume low!)
speaker-test -D hw:TAS5756M -c 2 -t sine

# Follow the AirPlay service logs
journalctl -fu shairport-sync

The speaker should now show up in the AirPlay menu of any device on the same network.

Using a Raspberry Pi instead

Since the HAT is pin-compatible with the HiFiBerry Amp2, a Raspberry Pi can use the HiFiBerry driver. In /boot/firmware/config.txt:

text
dtparam=audio=off
dtoverlay=hifiberry-dacplus
gpio=4=op,dh

gpio=4=op,dh drives header pin 7 (GPIO4) high to unmute the amplifier. On newer Raspberry Pi OS kernels the overlay may be named hifiberry-dacplus-std. Then install shairport-sync with AirPlay 2 support and point it at the sndrpihifiberry card.

Parts

57
QtyValueFootprintReferences
61µFCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC8, C11, C12, C13, C14, C23
40.22µFCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC24, C25, C30, C31
40.68µFCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC26, C27, C28, C29
42.2µFCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC9, C10, C15, C16
4220µFCapacitor_SMD:CP_Elec_10x10C18, C19, C21, C22
422µFCapacitor_SMD:C_1210_3225Metric_Pad1.33x2.70mm_HandSolderC1, C7, C17, C20
3150kResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR3, R8, R9
3LInductor_SMD:L_1008_2520Metric_Pad1.43x2.20mm_HandSolderL3, L4, L5
10.1µFCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC2
11.96kResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR6
110.2kResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR5
110nFCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC3
110pFCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC5
1180pFCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC4
12601-1106CONN3_2601-1103_WAG:CONN3_2601-1106_WAGJ5
1390kResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR7
147µFCapacitor_SMD:C_1210_3225Metric_Pad1.33x2.70mm_HandSolderC6
16.8µHInductor_SMD:L_Changjiang_FXL0630L1
1665kResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR1
175kResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR4
184.5kResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR2
1B340Diode_SMD:D_SMA_HandsolderingD1
1DC-005-A200DC-005-A200:JACK_DC-005-A200_XNPJ2
1LInductor_SMD:L_1008_2520MetricL2
1Raspberry_Pi_4Connector_PinHeader_2.54mm:PinHeader_2x20_P2.54mm_VerticalJ1
1TAS5756MDCARTAS5756M:SOP50P810X120-49NIC1
1TPS54232DRPackage_SO:TI_SO-PowerPAD-8_ThermalViasU2

The 51 most common of 57 parts.

Similar boards

  • 4 layers140 × 81 mmSqueezeamp poe, the printed circuit board in 3D

    Squeezeamp poe

    nrwiersma/squeezeamp-poe

    PoE++ powered speaker amplifier

    115 parts4MIT
  • 2 layers160 × 100 mmBase, the printed circuit board in 3D

    Base

    florolf/lab-automation

    Plugs into relay and can be used to provide switchable 5V USB power to downstream devices.

    83 parts1
  • 4 layers250.8 × 30 mmLedTubeFixture, the printed circuit board in 3D

    LedTubeFixture

    adamvotocek/Open-Tube-Light

    work in progress

    201 parts
  • 2 layers55 × 40 mmClock2, the printed circuit board in 3D

    Clock2

    anandijain/clock2-kicad

    I'm not sure why the placement of the resistors, caps, and 555s (and a few other things) is wrong in the 3D file.

    38 parts
  • 2 layers46.3 × 23.3 mmLEDController, the printed circuit board in 3D

    LEDController

    Pegoku/LED-Controller-PCB

    A simple monochromatic LED controller for Home Assistant

    10 partsGPL-3.0
  • 2 layers65 × 150 mmNB3 charger, the printed circuit board in 3D

    NB3 charger

    NoBlackBoxes/LastBlackBox

    A course for brains interested in brains (not tools interested in tools)

    60 parts69
  • 2 layers100 × 100 mmChessconnect uP, the printed circuit board in 3D

    Chessconnect uP

    K-0hm/Chessboard

    Code for a chessboard with light and capacitance Touch Sensors.

    93 partsGPL-3.0

Questions

How big is the Stereo PCB?

It measures 68 × 56 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Stereo use?

57 parts, built around the TAS5756MDCAR, B340 and DC-005-A200. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Stereo KiCad files?

From the noranraskin/stereo-hat repository on GitHub, at the commit this page was made from: the board is kicad/stereo.kicad_pcb and its schematic kicad/io.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Stereo design in my own project?

Its repository publishes it under the GPL-3.0 licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).