Skip to the content
2 layers76.2 × 50.8 mmBase board, the printed circuit board in 3D

Banana pi cm4io class D amp board based on MAX98397

Size
76.2 × 50.8 mm
Copper layers
2
Thickness
1.6 mm
Parts
23
Nets
157
Pads
313
Tracks, vias
293, 146
Pours
1
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
5 Oct 2026
Updated
7 Nov 2026

Overview

Base board is an open-source printed circuit board by AMuszkat, from the AMuszkat/bpi_amp_platform repository on GitHub. It is a 2-layer board of 76.2 × 50.8 mm with 23 parts on 157 nets, routed with 293 tracks and 146 vias.

It is built around the TPD1E10B06QDPYRQ1, 10152803-00011LF and C0402C102J5GAC. Its parts include 10 capacitors, 5 diodes, 4 connectors and 2 resistors. It belongs with the audio and music boards of this library.

Main components

3

README

README.md

BPI AMP Platform

The BPI AMP Platform: your devices, a phone and the controller on a laptop, in one frame; the Wi-Fi; and speaker 1 and speaker 2, each a board running JUCE DSP plugins and driving a loudspeaker

How the platform is developed: a person sets the goal; an orchestrator agent plans the work and splits it between specialist agents working in parallel; every change is tested on two virtual speakers and reviewed, and a failed test or review sends it back to be fixed; a board operations agent deploys it to the real speakers and reports back

The BPI AMP Platform is an autonomous, agentic platform for audio streaming, loudspeaker tuning and digital signal processing (DSP). It is an open hardware and software stack for building and tuning custom active loudspeakers, and its software is developed, tested and deployed by a team of AI agents working under the direction of a person.

Each loudspeaker contains a BananaPi BPI-CM4 compute module on two purpose-built boards. The speaker receives music over the network, applies its own tuning in real time, and drives a woofer and a tweeter through two MAX98397 class-D amplifiers. Two speakers form a stereo pair, tuned together from a single desktop application.

Autonomous development

The platform is built by specialised AI agents, each responsible for one part of the stack: the audio plugins, the speaker's audio engine, the controller application, the board software, and the pictures of the project. A person sets the goal and approves the result. An orchestrator agent plans the work, runs the specialists in parallel, merges their changes and has a reviewer agent read them; a failed test or a review comment goes back to the agent that made the change. Every change is tested on two virtual speakers running on one computer before it is published, and again by continuous integration. A board operations agent installs the result on the real speakers and checks them. Safeguards apply throughout: no private data enters the repository, nothing reaches the main branch without review, and a lab lock keeps the agents away from the boards while they are on the bench. The agents, their rules and their tools are described in CLAUDE.md and docs/autonomous-development.md.

Overview

Music is played as usual, from a computer or a phone; the speakers take care of the rest.

The system, from the listener's side: a computer or phone streams to two speakers, each with speakerd, ampd and two amplifiers; the controller on your computer talks to the hub

  • Network streaming. Snapcast streams the music to both speakers in sync. AirPlay is also supported, through shairport-sync.
  • Processing in each speaker. Each speaker processes its own channel. Its audio engine, speakerd, runs a chain of plugins: a correction filter, a crossover that divides the signal between the woofer and the tweeter, and a loudness contour. A speaker keeps playing from the settings stored on it, with no network or controller connected.
  • Tuning from a computer. The controller application works like a familiar plugin host: plugins are added, connected and adjusted in their own editors, and both speakers follow within milliseconds. The settings are kept on the speakers, not in the application. The ampd service on the left speaker acts as the hub that keeps the pair in step; the right speaker applies what the hub sends. Level meters are read directly from each speaker.
  • Filters from measurements. A set of Python tools measures each driver and designs the crossover and correction filters, which are then built into the plugins.

Inside a speaker

Each speaker runs a layered stack: the platform's applications and PipeWire in user space, the Linux audio drivers in the kernel, and the hardware beneath them.

Inside a speaker: user space with snapclient, PipeWire, speakerd and ampd; kernel space with the device tree and the ALSA drivers; hardware with the module, the amplifiers, the woofer and the tweeter

The diagrams on this page are generated from docs/diagrams/.

Software modules

ModulePurposeRuns onLocation
Measurement and tuning toolsMeasure a speaker's drivers, design its filters and export them for the pluginsthe development computer (Python)dsp/python_dsp_tools
Audio pluginscrossover, firConv (correction), loudness and ampScope. The first three are each built in three variants from one source: complete, control (the editor only) and headless (the signal processing only)the speakers (headless), the controller (control)dsp/juce_plugins
speakerdThe speaker's audio engine: hosts the plugin chain inside PipeWire, from the settings stored on the speakereach speakerdsp/juce_apps/speakerd
ampdThe speaker's network service: stores and applies its settings; on the left speaker, also the hub of the paireach speakerfirmware/ampd
ControllerThe desktop application for tuning the pair through the hubthe listener's computerdsp/juce_apps/controller
PipeWire and SnapcastThe speaker's audio server, and the network stream that feeds iteach speakerfirmware/pipewire, firmware/snapcast-setup.sh
Kernel supportDevice tree, kernel configuration, and the amplifier and sound-card driverseach speakerfirmware
Installerssetup.sh installs the audio software of a speaker, one component at a timethe development computer, or the speakerfirmware/setup.sh

The controller, ampd and speakerd communicate through the protocol described in docs/protocol.md. The overall design is described in docs/remote-plugin-host.md.

Tuning GUIThe loudness plugin's editor in the controller
Tuning tool: driver responses, the crossover sum and the corrected output, with every filter parameter adjustable live.The loudness plugin in the controller: the plugin's own editor, acting as a remote control for both speakers.

Project status

The first three steps of the roadmap are complete and tested: the plugins in their three variants, the speakerd audio engine, and the controller with the hub. Every test run checks them against a pair of virtual speakers. On 1 November 2026 the platform was first installed on a real board, which now starts speakerd at boot and plays the music Snapcast streams to it. Running ampd and the controller on real boards is the next stage of that installation. Step 4 of the roadmap (oscilloscope data, a catalogue of the plugins on each speaker, and several controllers at once) is next. tools/roadmap.py reports the current state.

Hardware

The platform uses two boards joined by a board-to-board connector: a base board that carries the BPI-CM4 module, with a USB-C port and a debug serial port, and a speaker amp board with the two MAX98397 amplifiers, a boost converter for their supply and a 5 V regulator for the rest of the system. The KiCad projects and their details are in hardware/.

The two boards: a KiCad render of the base board and the speaker amp board, wiping across to a photo of the boards as built, with the BPI-CM4 module

The picture alternates between a render of the KiCad projects (hardware/render/) and a photograph of the boards as built (all.jpeg).

Hardware block diagram

Firmware

The board runs Armbian Linux with this repository's device tree, kernel configuration and amplifier drivers, and PipeWire as its audio server. firmware/setup.sh installs the audio software of a speaker, either from the development computer or on the board itself. The bring-up procedure and the installers are described in firmware/.

Development

All development and testing, apart from work on the boards themselves, takes place on a Linux x86_64 computer with no board attached. Only Podman and git are required: the builds and the tests run in a development container with the same PipeWire version as the boards.

sh
git clone --recurse-submodules https://github.com/AMuszkat/bpi_amp_platform
cd bpi_amp_platform
tools/test.sh all          # the complete test suite
tools/test.sh changed      # while working: the checks that cover the files changed
tools/build.sh loudness    # build one plugin or application into build/
tools/container.sh         # open a shell in the development container

The first run builds the container image and the JUCE framework, which takes a few minutes. A focused check then takes between a few seconds and two minutes, and the complete suite about two minutes. For a board, tools/build.sh speakerd aarch64 cross-compiles into build/aarch64/, and firmware/setup.sh --mode target-remote installs the result. Run tools/test.sh all before installing on a board: nothing enforces it.

The Python measurement and tuning tools have their own quick start in dsp/README.md. The development process, including the test levels, the development agents and continuous integration, is described in CLAUDE.md and docs/autonomous-development.md.

Repository layout

DirectoryContents
hardwareKiCad projects: the base board and the amplifier board
firmwareDevice tree, kernel configuration, amplifier drivers, PipeWire configuration, the installers and ampd
dspMeasurement and tuning tools, the JUCE plugins, speakerd, the controller and the plugin test tool
docsThe system design, its protocol, the block FIR filter, the development setup and the diagrams
tests/vpairTwo virtual speakers on one computer, for development and testing without boards
toolsBuild, test, container and board scripts

License

The software under dsp/ is free software, licensed under the GNU Affero General Public License v3.0; see dsp/LICENSE.

Parts

23
QtyValueFootprintReferences
3100nFspeaker_global_library:C_0402_1005MetricC1, C4, C7
31uFspeaker_global_library:C_0603_1608MetricC2, C5, C8
322uFspeaker_global_library:C_0805_2012MetricC3, C6, C9
3~speaker_global_library:SOD-523D1, D4, D5
24.7kResistor_SMD:R_0402_1005MetricR1, R2
2~Package_SON:Texas_DPY0002A_0.6x1mm_P0.65mmD2, D3
1 speaker_global_library:CONN_DF40HC-100DS_HIR_v1_1J2
110152803-00011LFspeaker_global_library:AMPHENOL_10152803-00011LFJ5
11nFspeaker_global_library:C_0402_1005MetricC10
1CONN_2x23PINspeaker_global_library:SAMTEC_SSW-123-01-T-DJ_MAIN1
1Conn_01x02Connector_PinHeader_2.54mm:PinHeader_2x01_P2.54mm_VerticalJ3
1Conn_01x03Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJ_LIN_DEB1
1~speaker_global_library:CONN_DF40HC-100DS_HIR_v1_1J1

More from AMuszkat/bpi_amp_platform

1
  • 4 layers76.2 × 50.8 mmSpeaker amp, the printed circuit board in 3D

    Speaker amp

    AMuszkat/bpi_amp_platform

    Banana pi cm4io class D amp board based on MAX98397

    119 parts

Similar boards

  • 4 layers40 × 40 mmTmc5160-usb, the printed circuit board in 3D

    Tmc5160-usb

    janelia-kicad/tmc5160-usb

    A stepper controller and driver board combining a TMC5160 and RP2040.

    103 parts
  • 4 layers65 × 100 mmUBMS-2, the printed circuit board in 3D

    UBMS-2

    grokicad/grokicad

    Grok powered schematic intelligence for your kicad repositories

    246 parts28
  • 2 layers18.3 × 5 mmStrainGauge, the printed circuit board in 3D

    StrainGauge

    m0tei/StrainGauge

    A very small analog amplifier board for a full-bridge strain gauge on a carbon rod. It powers the bridge, amplifies the tiny bridge signal by about 151, filters it, and sends one analog voltage to an ADC.

    22 parts
  • 2 layers65 × 56 mmPi servo hat, the printed circuit board in 3D

    Pi servo hat

    earthtojake/text-to-cad

    Design physical products with AI

    23 parts26kMIT
  • 2 layers14 × 100 mmYunomi, the printed circuit board in 3D

    Yunomi

    google/mozc-devices

    Circuit diagrams and firmware source code for Gboard DIY keyboards

    23 parts3kApache-2.0
  • 2 layers50.8 × 52.2 mmFuhhni, the printed circuit board in 3D

    Fuhhni

    hackclub/OnBoard

    💡 Join 1,000 teenagers and make your first PCB with a $100 grant!

    23 parts915
  • 2 layers138.8 × 89.8 mmKeyboard pcb, the printed circuit board in 3D

    Keyboard pcb

    diepala/cantor

    Cantor keyboard, a 42 key diodeless split keyboard.

    23 parts756GPL-3.0
  • 2 layers32.9 × 53.3 mmGoatgdo, the printed circuit board in 3D

    Goatgdo

    Kaldek/rat-ratgdo

    Open source schematics for ratgdo PCB

    23 parts511MIT

Questions

How big is the Base board PCB?

It measures 76.2 × 50.8 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Base board use?

23 parts, built around the TPD1E10B06QDPYRQ1, 10152803-00011LF and C0402C102J5GAC. 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 Base board KiCad files?

From the AMuszkat/bpi_amp_platform repository on GitHub, at the commit this page was made from: the board is hardware/base_board/base_board.kicad_pcb and its schematic hardware/base_board/base_board.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Base board design in my own project?

Its repository states no licence, so its author keeps all rights: ask AMuszkat before reusing the design.