Skip to the content
2 layers104.5 × 184.9 mmPanel4, the printed circuit board in 3D

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

Size
104.5 × 184.9 mm
Copper layers
2
Thickness
1.6 mm
Parts
191
Nets
177
Pads
700
Tracks, vias
1,900, 309
Pours
6
Routed
Yes
KiCad
KiCad 8.0 (file 20240108)
Created
21 Jun 2026
Updated
21 Jun 2026

Overview

Panel4 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 104.5 × 184.9 mm with 191 parts on 177 nets, routed with 1,900 tracks and 309 vias.

It is built around the STM32G030F6P6, STM32F103C8T6 and DRV8833PWP, with the LTR-381RGB-01, MAX98357AEWL+T and ME6211C33M5G-N among its other parts. It belongs with the STM32 boards of this library.

Main components

12

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

191
QtyValueFootprintReferences
224.7uFboards:C_0402_1005MetricBATC2, BATC4, BATC8, BATC9, BATC13, BATC14, LIGC2, LIGC3, LIGC4, LIGC5, LIGC8, LIGC9, LIGC10, MOTC1, MOTC2, MOTC26 +6
1675Rboards:R_0402_1005MetricBATR1, BATR2, BATR3, BATR4, LIGR1, LIGR2, LIGR3, LIGR4, MOTR11, MOTR12, MOTR13, MOTR14, SPKR4, SPKR6, SPKR7, SPKR9
12M2.5MountingHoleboards:MountingHole_2.7mm_M2.5_ISO7380BATH1, BATH2, LIGH1, LIGH2, MOTH1, MOTH2, MOTH3, MOTH4, SPKH1, SPKH2, SPKH3, SPKH4
1122uF_25Vboards:C_0805_2012MetricBATC5, BATC10, BATC11, MOTC4, MOTC10, MOTC11, MOTC12, MOTC13, MOTC14, MOTC15, MOTC16
8FFC_connector_16p_hinge_lockboards:FFC_connector_16p_hinge_lockBATJ1, BATJ3, LIGJ3, LIGJ5, MOTJ1, MOTJ11, SPKJ12, SPKJ13
60.1uFboards:C_0402_1005MetricBATC1, BATC3, BATC12, LIGC1, MOTC3, SPKC15
610Kboards:R_0402_1005MetricBATR5, BATR6, BATR18, BATR19, LIGR9, LIGR12
5-boards:BoardTextBATIGNORE5, BATIGNORE5, BATIGNORE5, BATIGNORE6, BATIGNORE6
4+boards:BoardTextBATIGNORE4, BATIGNORE4, BATIGNORE7, BATIGNORE7
401x06_2.54mm_Femaleboards:01x06_2.54mm_FemaleBATJ6, LIGJ2, MOTJ7, SPKJ3
401x06_2.54mm_Maleboards:01x06_2.54mm_MaleBATJ7, LIGJ1, MOTJ5, SPKJ1
4Conn_02x03_Odd_EvenConnector_PinHeader_2.54mm:PinHeader_2x03_P2.54mm_Vertical_SMDMOTJ2, MOTJ6, MOTJ8, MOTJ9
4ME6211C33M5G-Nboards:SOT-23-5BATU2, LIGU2, MOTU2, SPKU2
4swd_4pinboards:swd_headerBATJ4, LIGJ4, MOTJ4, SPKJ4
3100Kboards:R_0402_1005MetricBATR14, BATR15, BATR20
35.1Kboards:R_0402_1005MetricBATR11, BATR12, BATR17
3STM32G030F6P6boards:TSSOP-20_4.4x6.5mm_P0.65mmBATU3, LIGU3, SPKU3
20.2RResistor_SMD:R_1210_3225MetricMOTR5, MOTR6
2220pFboards:C_0402_1005MetricSPKC4, SPKC10
222Kboards:R_0402_1005MetricLIGR8, LIGR10
2ConnBattery_JST_S2B-PH-K-Sboards:JST_PH_S2B-PH-K_1x02_P2.00mm_HorizontalBATJ5, BATJ8
2PMOS_2Aboards:SOT-23BATQ2, BATQ6
2TerminalBlock_2P_3.5mmboards:TerminalBlock_2P_3.5mmMOTJ3, MOTJ10
10.01Rboards:R_0805_2012MetricBATR13
10.1uF_50Vboards:C_0402_1005MetricMOTC5
11 battery!boards:BoardTextBATIGNORE9
110nFboards:C_0402_1005MetricBATC6
110pFboards:C_0402_1005MetricBATC7
1150Kboards:R_0402_1005MetricBATR10
11Kboards:R_0402_1005MetricBATR7
11uFboards:C_0402_1005MetricLIGC6
11uH_3.2AInductor_SMD:L_1008_2520MetricBATL1
12.2uFboards:C_0402_1005MetricMOTC6
127pFboards:C_0402_1005MetricLIGC7
12p_picobladeboards:Molex_PicoBlade_53261-0271_1x02-1MP_P1.25mm_HorizontalSPKJ2
1300Kboards:R_0402_1005MetricLIGR11
1330Rboards:R_0402_1005MetricBATR16
14.7Kboards:R_0402_1005MetricLIGR7
1510Kboards:R_0402_1005MetricBATR9
15Vboards:BoardTextMOTIGNORE13
1750Kboards:R_0402_1005MetricSPKR2
1Battery v0.5boards:BoardTextBATIGNORE1
1DATAboards:BoardTextMOTIGNORE14
1DRV8833PWPboards:HTSSOP-16-1EP_4.4x5mm_P0.65mm_EP3.4x5mm_Mask2.46x2.31mm_ThermalViasMOTU1
1GNDboards:BoardTextMOTIGNORE12
1INA180A3boards:SOT-23-5BATU6
1LIS3DHTRPackage_LGA:LGA-16_3x3mm_P0.5mm_LayoutBorder3x5yLIGU6
1LMA2718T421boards:SMD-4P-2.8x1.9mmLIGU4
1LTR-381RGBboards:LTR-381RGBLIGU1
1LightSound v0.6boards:BoardTextLIGIGNORE1
1MAX98357AEWL+TPackage_BGA:WLP-9_1.448x1.468mm_Layout3x3_P0.4mm_Ball0.27mm_Pad0.25mmSPKU1
1Motor 0boards:BoardTextMOTIGNORE2
1Motor 1boards:BoardTextMOTIGNORE3
1Motor v0.7boards:BoardTextMOTIGNORE1
1N_MOSFETboards:SOT-23BATQ5
1OFFboards:BoardTextBATIGNORE3
1ONboards:BoardTextBATIGNORE2
1Only connectboards:BoardTextBATIGNORE8
1STM32F103C8T6Package_QFP:LQFP-48_7x7mm_P0.5mmMOTU4
1Servo1boards:BoardTextMOTIGNORE4
1Servo2boards:BoardTextMOTIGNORE5
1Servo3boards:BoardTextMOTIGNORE6
1Servo4boards:BoardTextMOTIGNORE7
1Servo5boards:BoardTextMOTIGNORE8
1Servo6boards:BoardTextMOTIGNORE9
1Servo7boards:BoardTextMOTIGNORE10
1Servo8boards:BoardTextMOTIGNORE11
1Speaker v0.8boards:BoardTextSPKIGNORE1
1SpeakerSmtboards:Speaker1.8x1.8SPKLS2
1TP4057boards:SOT-23-6BATU8
1TPS2116DRLPackage_TO_SOT_SMD:SOT-583-8BATU1
1TPS61230Aboards:TPS61230ABATU5
1TestPoint_2PoleTestPoint:TestPoint_2Pads_Pitch2.54mm_Drill0.8mmSPKTP1
1USBLC6-2P6boards:USBLC6-2P6BATIC1
1USB_C_power_only_connectorboards:USB_C_Receptacle_power_only_6PBATJ2
1XB7608AJboards:XB7608AJBATU4
1op_amp_mcp6001Package_TO_SOT_SMD:SOT-23-5LIGU5
1red_ledboards:LED_SML-D12D1WT86BATD2
1side_spst_switchboards:side_spst_switchBATSW1

The 187 most common of 191 parts.

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
  • 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.5 × 25 mmSpeaker, the printed circuit board in 3D

    Speaker

    sean618/MakerTiles

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

    44 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 layers52 × 26 mmDml10, the printed circuit board in 3D

    Dml10

    jonnor/embeddedml

    Notes on Machine Learning on edge for embedded/sensor/IoT uses

    51 parts317
  • 2 layers49.7 × 31.7 mmCommBadge, the printed circuit board in 3D

    CommBadge

    romanvrable/openmic

    Open, as in open source, audio processing code and PCBs

    47 parts2GPL-3.0
  • 2 layers149.9 × 134.2 mmSwadge HW, the printed circuit board in 3D

    Swadge HW

    emilyanthony4244/Super-2027-Swadge-HW

    Super 2027 Swadge

    134 parts2MIT
  • 2 layers100 × 25 mmCereyanV1, the printed circuit board in 3D

    CereyanV1

    fahreddinaykut/Cereyan

    Battery-powered ESP32-C3 smart ventilation fan with magnetic mounting, ESP-NOW synchronization, USB-C charging and programmable mobile control.

    67 parts
  • 2 layers45 × 30 mmLIR2032-charger, the printed circuit board in 3D

    LIR2032-charger

    potpurri/LIR2032-charger

    Charing board for LIR2032 batteries (or other lithium type button/coin cell batteries with the same diamater and mx voltage of 4.2V)

    36 partsApache-2.0
  • 2 layers285 × 94.6 mmPH60 Rev3, the printed circuit board in 3D

    PH60 Rev3

    ph-design/PH60

    A printable 60% multi-layout wireless keyboard suite.

    213 parts163
  • 2 layers45 × 59.5 mmOmniDrive, the printed circuit board in 3D

    OmniDrive

    TLNKhanh/OmniDrive

    A general-purpose dual motor driver board with ESP32.

    79 parts1MIT

Questions

How big is the Panel4 PCB?

It measures 104.5 × 184.9 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Panel4 use?

191 parts, built around the STM32G030F6P6, STM32F103C8T6, DRV8833PWP and LTR-381RGB-01. 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 Panel4 KiCad files?

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

Can I use the Panel4 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).