Skip to the content
2 layers56.5 × 25 mmSpeaker, the printed circuit board in 3D

Modular STM32 electronic-tile system: hardware, firmware, the MicroBus + Field Protocol stack, and a Python daemon.

Size
56.5 × 25 mm
Copper layers
2
Thickness
1.6 mm
Parts
44
Nets
73
Pads
222
Tracks, vias
418, 93
Pours
1
Routed
Yes
KiCad
KiCad 8.0 (file 20240108)
Created
21 Jun 2026
Updated
21 Jun 2026

Overview

Speaker is an open-source printed circuit board by sean618, from the sean618/MakerTiles repository on GitHub, published under the MIT licence. It is a 2-layer board of 56.5 × 25 mm with 44 parts on 73 nets, routed with 418 tracks and 93 vias.

It is built around the PAM8302AASCR, MAX98357AETE+T and ME6211C33M5G-N. Its parts include 16 capacitors, 9 resistors, 7 connectors and 5 ICs. It belongs with the audio and music boards and the STM32 boards of this library.

Main components

3

README

README.md

MakerTiles

MakerTiles is a system of modular, snap-together electronic tiles. Each tile is a small STM32-based board with a single job — a strip of LEDs, a joystick, a motor, a distance sensor, a screen, a speaker, and so on. Tiles connect on a shared bus, a USB tile bridges the bus to a PC, and a Python daemon on the PC discovers every connected tile and lets you read its inputs and drive its outputs.

This repository holds the whole stack: the hardware (KiCad board designs), the firmware (STM32 board projects + shared driver libraries), the protocols that move data over the bus, and the daemon that talks to it all from a PC.

text
    [ tile ]──[ tile ]──[ tile ]── … ──[ USB tile ]──USB──▶ [ PC / Python daemon ]
       └───────────────────────────────────┘
          shared SPI bus  (MicroBus + Field Protocol)

How it fits together

Two protocols stacked on top of each other carry everything:

  • MicroBus — the transport. A master/multi-node protocol over a shared SPI-style link between microcontrollers, built for speed and very low RAM: fixed-size packets, a time-slotted schedule the master broadcasts in every packet, and a small per-node sliding window that gives reliable, in-order delivery with no dynamic allocation.
  • Field Protocol — the application layer. Rides inside a MicroBus packet and describes each tile as a set of named, typed fields (e.g. a LED strip's colour, a dial's position). The daemon enumerates tiles, reads their field tables, and gets/sets field values without knowing the tile type in advance.

One tile acts as the master (the USB tile, which also bridges the bus to a host PC). Every other tile is a node. On the PC, the daemon opens the USB serial port, discovers the attached tiles, and exposes each one as an object you can interact with.

Repository layout

text
hardware/        KiCad designs for every tile (Boards/) + shared symbol/footprint
                 libraries, 3D models and BOMs (Libraries/). Old/ holds retired
                 prototype boards.

firmware/        STM32 firmware.
  Boards/          One STM32CubeIDE project per tile (Button, LedStrip, Motor,
                   Joystick, Screen, USB, …). Mostly STM32G030 nodes; the USB
                   master is an STM32F103.
  Libraries/       Shared C/C++ drivers used across boards (ledStrip, screen,
                   imu, speaker, servos, …) plus helpers (myAssert, fonts).
  Documents/       NewBoardSetup.txt — the checklist for bringing up a new tile
                   (CubeMX peripheral config + firmware wiring).

protocol/        The shared protocol code, host-buildable and testable.
  microbus/        MicroBus transport (C++). Leaf component.
  fieldprotocol/   Field Protocol (C++), depends on microbus. Also built as the
                   masterNodeSystem shared library the Python daemon loads.
  stm32/           STM32 glue binding the protocols to real SPI hardware
                   (stm32F1SpiMaster, stm32Node). Boards reach this via a
                   Core/stm32 symlink.

daemon/          Python daemon (the PC side). Opens the USB serial port, runs
                   board discovery, and drives tiles over the Field Protocol.
                   src/makertiles/ is the package; tests/ holds its test suites.

The PC daemon

The daemon is a Python package (makertiles, src-layout under daemon/). At a high level you point it at a serial port and it hands you back the discovered tiles:

python
import makertiles

tiles, manager = makertiles.start(port_name="/dev/ttyUSB0")

tiles.led_strip.colour = makertiles.red   # set an output field
position = tiles.dial.position             # read an input field

It can drive the C protocol two ways: over serial to real hardware in production, or — in tests — by loading the masterNodeSystem shared library directly via ctypes, so the real Python daemon exercises the real C protocol without any hardware attached. That same library is what catches drift between the C and Python sides of the wire contract.

Optional extras: Pillow (images) for the screen image-drawing helpers.

Building and testing

The C components and the Python daemon build in one CMake tree, and every test suite runs from a single command:

bash
./build_and_test.sh

This configures, builds (MicroBus, the Field Protocol + its shared library, and the system test), then runs ctest. Python test deps (pytest, pyserial) are installed automatically if missing.

To re-run only the failures, verbosely:

bash
ctest --test-dir build --rerun-failed --output-on-failure

Test suites

CTest nameWhat it covers
microbus_unitMicroBus transport unit tests (host).
fieldprotocol_unitField Protocol unit tests against a mock MicroBus.
system_integrationFull C stack (node + master) over the real MicroBus.
python_unitPython Field-Protocol encode/decode round trips.
python_integrationThe real Python daemon driving the C protocol via the .so.

python_integration is the suite that exercises both languages together, so it is the one that catches C↔Python wire-contract drift.

The firmware board projects under firmware/Boards/ are separate STM32CubeIDE/CMake projects and are not part of the host build above — they are flashed to real tiles. See firmware/Documents/NewBoardSetup.txt for the per-board hardware and firmware bring-up checklist.

Building firmware for a tile

Each firmware/Boards/<Tile>/ directory is its own STM32 project (.ioc for CubeMX, a linker script for the target part, and CubeIDE debug launch configs). Nodes are generally STM32G030; the USB master is an STM32F103. The protocol sources are shared into each board via symlinks (Core/stm32, Core/Libraries, etc.) rather than copied — see the setup checklist for the exact links and the required SPI/timer/interrupt peripheral configuration.

License

Released under the MIT License.

Parts

44
QtyValueFootprintReferences
70.1uFboards:C_0402_1005MetricC1, C6, C11, C13, C14, C17, C18
74.7uFboards:C_0402_1005MetricC2, C3, C5, C7, C8, C9, C12
475Rboards:R_0402_1005MetricR4, R9, R10, R11
4M2.5MountingHoleboards:MountingHole_2.7mm_M2.5_ISO7380H1, H2, H3, H4
210Kboards:R_0402_1005MetricR3, R8
2220pFboards:C_0402_1005MetricC4, C10
22p_picobladeboards:Molex_PicoBlade_53261-0271_1x02-1MP_P1.25mm_HorizontalJ2, J5
2470Rboards:R_0402_1005MetricR1, R5
2FFC_connector_16p_hinge_lockboards:FFC_connector_16p_hinge_lockJ12, J13
2PAM8302AASboards:MSOP-8_3x3mm_P0.65mmU1, U5
101x06_2.54mm_Femaleboards:01x06_2.54mm_FemaleJ3
101x06_2.54mm_Maleboards:01x06_2.54mm_MaleJ1
1750Kboards:R_0402_1005MetricR2
1MAX98357AETE+Tboards:QFN50P300X300X80-17NU4
1ME6211C33M5G-Nboards:SOT-23-5U2
1STM32F072RBTxPackage_QFP:LQFP-64_10x10mm_P0.5mmU3
1Speaker v0.7boards:BoardTextIGNORE1
1Speaker_20x30boards:Speaker1.8x1.8LS2
1TestPoint_2PoleTestPoint:TestPoint_2Pads_Pitch2.54mm_Drill0.8mmTP1
1swd_4pinboards:swd_headerJ4

More from sean618/MakerTiles

12
  • 2 layers188.5 × 167.3 mmPanel2, the printed circuit board in 3D

    Panel2

    sean618/MakerTiles

    Modular STM32 electronic-tile system: hardware, firmware, the MicroBus + Field Protocol stack, and a Python daemon.

    585 partsMIT
  • 4 layers125 × 111.3 mmPanel, the printed circuit board in 3D

    Panel

    sean618/MakerTiles

    Modular STM32 electronic-tile system: hardware, firmware, the MicroBus + Field Protocol stack, and a Python daemon.

    273 partsMIT
  • 2 layers104.5 × 184.9 mmPanel4, the printed circuit board in 3D

    Panel4

    sean618/MakerTiles

    Modular STM32 electronic-tile system: hardware, firmware, the MicroBus + Field Protocol stack, and a Python daemon.

    191 partsMIT
  • 4 layers75 × 25 mmLedMatrix, the printed circuit board in 3D

    LedMatrix

    sean618/MakerTiles

    Modular STM32 electronic-tile system: hardware, firmware, the MicroBus + Field Protocol stack, and a Python daemon.

    103 partsMIT
  • 4 layers55 × 55 mmLedMatrix, the printed circuit board in 3D

    LedMatrix

    sean618/MakerTiles

    Modular STM32 electronic-tile system: hardware, firmware, the MicroBus + Field Protocol stack, and a Python daemon.

    95 partsMIT
  • 4 layers56 × 54 mmLedMatrix, the printed circuit board in 3D

    LedMatrix

    sean618/MakerTiles

    Modular STM32 electronic-tile system: hardware, firmware, the MicroBus + Field Protocol stack, and a Python daemon.

    80 partsMIT
  • 4 layers56 × 54 mmLedMatrix, the printed circuit board in 3D

    LedMatrix

    sean618/MakerTiles

    Modular STM32 electronic-tile system: hardware, firmware, the MicroBus + Field Protocol stack, and a Python daemon.

    80 partsMIT
  • 2 layers56 × 25 mmBattery, the printed circuit board in 3D

    Battery

    sean618/MakerTiles

    Modular STM32 electronic-tile system: hardware, firmware, the MicroBus + Field Protocol stack, and a Python daemon.

    63 partsMIT
  • 2 layers28 × 52 mmMotor, the printed circuit board in 3D

    Motor

    sean618/MakerTiles

    Modular STM32 electronic-tile system: hardware, firmware, the MicroBus + Field Protocol stack, and a Python daemon.

    56 partsMIT
  • 2 layers56 × 25 mmServo, the printed circuit board in 3D

    Servo

    sean618/MakerTiles

    Modular STM32 electronic-tile system: hardware, firmware, the MicroBus + Field Protocol stack, and a Python daemon.

    47 partsMIT
  • 2 layers56 × 25 mmMotor, the printed circuit board in 3D

    Motor

    sean618/MakerTiles

    Modular STM32 electronic-tile system: hardware, firmware, the MicroBus + Field Protocol stack, and a Python daemon.

    40 partsMIT
  • 2 layers27 × 25 mmSense, the printed circuit board in 3D

    Sense

    sean618/MakerTiles

    Modular STM32 electronic-tile system: hardware, firmware, the MicroBus + Field Protocol stack, and a Python daemon.

    39 partsMIT

Similar boards

  • 2 layers35 × 100 mmWalkieTalkie, the printed circuit board in 3D

    WalkieTalkie

    GuzziFlipFlops/ESP32-Walkie-Talkie

    An open source ESPNOW based walkie talkie with a 600 meter tested distance, with an OLED and multiple buttons to interact with

    66 parts7MIT
  • 4 layers78.1 × 31.1 mmNewMorphS3, the printed circuit board in 3D

    NewMorphS3

    ccadic/NewMorphS3

    New ESP32S3 dev board from Morpheans.com

    52 parts3GPL-3.0
  • 4 layers121.9 × 44.4 mmBurnedHead, the printed circuit board in 3D

    BurnedHead

    justinbalexander/BurnedHead

    A handheld game console

    92 parts45Unlicense
  • 4 layers25.3 × 35.1 mmAgb hifi audio pcb, the printed circuit board in 3D

    Agb hifi audio pcb

    cajunpanda/gameboy-hifi-audio

    A HiFi audio mod for various Game Boy models

    66 parts25MIT
  • 2 layers81 × 55 mmFABI schematic, the printed circuit board in 3D

    FABI schematic

    asterics/FABI

    The repository for FABI (Flexible Assistive Button Interface)

    80 parts22
  • 4 layers54.7 × 78.5 mmDisplayModule PONSv71, the printed circuit board in 3D

    DisplayModule PONSv71

    MasaoC/GPS-TFT-Map_PONS

    鳥人間コンテストに特化したGNSS誘導システム。人力飛行機のパイロットが使いやすいことを目標にした航法装置です。ハードとソフトをオープンソースで開発しています。

    151 parts14MIT
  • 2 layers82.5 × 136.7 mmGameboy dmg, the printed circuit board in 3D

    Gameboy dmg

    alxhoff/gameboy-dmg-pcb

    PCB for Gameboy DMG with audio and GPIO expander to provide I2C interface to push buttons

    95 parts4GPL-3.0
  • 4 layers182 × 150 mmStarman, the printed circuit board in 3D

    Starman

    adamm/starman

    Starman Christmas Tree Topper PCB

    248 parts3

Questions

How big is the Speaker PCB?

It measures 56.5 × 25 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Speaker use?

44 parts, built around the PAM8302AASCR, MAX98357AETE+T and ME6211C33M5G-N. 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 Speaker KiCad files?

From the sean618/MakerTiles repository on GitHub, at the commit this page was made from: the board is hardware/Boards/Speaker/v0.7/Speaker.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the Speaker design in my own project?

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