Skip to the content
4 layers62 × 45 mmServo, the printed circuit board in 3D

What if you made lots of spheres roll around?

Size
62 × 45 mm
Copper layers
4
Thickness
1.61 mm
Parts
73
Nets
57
Pads
255
Tracks, vias
455, 147
Pours
16
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
3 Nov 2025
Updated
20 Jul 2026

Overview

Servo is an open-source printed circuit board by theatrus, from the theatrus/tsumikoro repository on GitHub. It is a 4-layer board of 62 × 45 mm with 73 parts on 57 nets, routed with 455 tracks and 147 vias.

It is built around the STM32G030F6P6, SIT3088EEUA and SRV05-4, with the CL05B104KB54PNC, B3B-PH-K-S(LF)(SN) and CC0603KRX7R0BB104 among its other parts. Its parts include 19 capacitors, 11 resistors, 6 ICs, 3 diodes and 2 inductors. It belongs with the robots and motor control boards and the STM32 boards of this library.

Main components

12

README

README.md

Tsumikoro

Open-source motor controller projects based on STM32G0 microcontrollers with ESP32 network bridge.

Projects

ProjectDescriptionMCUFlash/RAMFrameworkStatus
tsumikoro-servo6-channel servo + H-bridge motor controllerSTM32G030F6P6TR32KB/8KBSTM32 LL✅ Functional (PR #9)
tsumikoro-ministepperMini stepper motor controllerSTM32G071G8U664KB/36KBSTM32 HAL + FreeRTOS🚧 In Development
tsumikoro-bridgeWiFi/Network bridge (RS-485 bus)ESP32/ESP32-S34MB+ESPHome✅ Functional (Merged)
nucleo-g071rbDevelopment firmware (bare-metal)STM32G071RBT6128KB/36KBSTM32 HAL✅ Development Tool (PR #11)
nucleo-g071rb-freertosDevelopment firmware (FreeRTOS)STM32G071RBT6128KB/36KBSTM32 HAL + FreeRTOS✅ Development Tool (PR #11)

Recent Updates

  • 2025-11: NUCLEO-G071RB development firmware with FreeRTOS integration (PR #11)
    • Bare-metal and FreeRTOS examples for bus protocol development
    • Stack monitoring and optimization (18KB heap, optimized task stacks)
    • Debug UART with statistics output and stack high-water marks
    • CI/CD integration for all firmware targets
  • 2025-11: Protocol improvements and bug fixes
    • Fixed escape sequence handling in packet END marker detection
    • Added comprehensive unit tests for bus handler (34 tests)
    • Integration tests for controller/peripheral communication
  • 2025-11: Multi-drop RS-485 bus protocol implemented with STM32 HAL
  • 2025-11: Servo controller: 6 PWM channels + H-bridge motor driver (89% Flash usage)
  • 2025-11: ESP32 bridge with Home Assistant integration
  • 2025-11: Unified build system with top-level Makefile and flash targets

Repository Structure

text
tsumikoro/
├── firmware/                 # All firmware projects (C/C++, Apache 2.0)
│   ├── tsumikoro-ministepper/  # STM32G071 mini stepper controller (FreeRTOS)
│   ├── tsumikoro-servo/        # STM32G030 servo controller (bare-metal)
│   ├── tsumikoro-bridge/       # ESP32/ESP32-S3 network bridge (ESPHome)
│   │   ├── esphome/           # ESPHome configuration
│   │   └── components/        # Custom ESPHome components
│   ├── nucleo-g071rb/         # NUCLEO-G071RB development firmware (bare-metal)
│   ├── nucleo-g071rb-freertos/# NUCLEO-G071RB development firmware (FreeRTOS)
│   ├── common/                # Shared HAL and utilities (STM32, FreeRTOS)
│   └── shared/                # Shared protocol definitions and tests
│       └── tsumikoro_bus/    # Bus protocol library with unit tests
├── hardware/                 # PCB designs (coming soon, CERN-OHL-P v2)
├── mechanical/               # 3D models (coming soon, CERN-OHL-P v2)
└── LICENSE                  # Dual licensing information

Quick Start

Prerequisites

For STM32 builds:

  • ARM GCC toolchain: arm-none-eabi-gcc
  • CMake 3.20 or newer
  • Make or Ninja build tool

For ESP32 bridge:

  • Python 3.10+
  • uv (Python package manager)

See firmware/README.md for detailed installation instructions.

Build All Projects

bash
# First-time setup
make setup

# Build everything
make build

# Or build individual projects
make build-servo       # STM32G030 servo controller
make build-ministepper # STM32G071 stepper controller
make build-bridge      # ESP32 network bridge
make build-nucleo      # NUCLEO-G071RB development boards

# Run protocol tests
make test

# Clean all builds
make clean

# View all available targets
make help

Individual Project Builds

Servo Controller (STM32G030):

bash
cd firmware
make servo-g030
make flash-servo-g030  # Flash using st-flash
# Output: build/servo-g030/tsumikoro-servo.bin

Ministepper (STM32G071):

bash
cd firmware
make ministepper-g071
make flash-ministepper-g071
# Output: build/ministepper-g071/tsumikoro-ministepper.bin

NUCLEO-G071RB Development Boards:

bash
cd firmware

# Bare-metal version
make nucleo-g071rb
make flash-nucleo-g071rb

# FreeRTOS version (with stack monitoring)
make nucleo-g071rb-freertos
make flash-nucleo-g071rb-freertos

# Reset target after flashing
make reset

ESP32 Bridge:

bash
# First time setup
cd firmware/tsumikoro-bridge
make setup
cp esphome/secrets.yaml.example esphome/secrets.yaml
# Edit secrets.yaml with your WiFi credentials

# Build and upload
make build
make upload

Key Features

Tsumikoro Bus Protocol

Multi-drop RS-485 serial bus protocol for reliable motor controller communication:

  • Frame Format: [START][ID][CMD_HI][CMD_LO][LEN][DATA][CRC8][END]
  • Packet Size: 7-71 bytes (0-64 bytes data payload)
  • Addressing: Controller (0x00) + up to 239 peripherals (0x01-0xEF)
  • Error Detection: CRC8 checksum with frame markers
  • Command Ranges:
    • 0x0000-0x0FFF: Generic commands (ping, version, status)
    • 0x2000-0x2FFF: Stepper motor commands
    • 0x3000-0x3FFF: Servo motor commands
    • 0x4000-0x4FFF: DC motor/H-bridge commands

Servo Controller Features

Hardware Capabilities:

  • 6 independent servo channels (50Hz PWM, 1-2ms pulse width)
  • H-bridge motor driver (20kHz PWM speed control)
  • 4 direction modes: FORWARD, REVERSE, BRAKE, COAST
  • 0-180° servo position range (0.1° resolution)

Control Features:

  • Smooth position transitions with configurable speed
  • Per-channel calibration (500-2500µs pulse widths)
  • Multi-servo synchronized movement
  • Emergency stop function
  • Hardware ID pins for device enumeration

Resource Efficient:

  • Flash: 29.3KB / 32KB (89.42%)
  • RAM: 2.2KB / 8KB (26.86%)
  • Zero CPU overhead for PWM (hardware timers)

ESP32 Bridge Features

  • WiFi 802.11 b/g/n connectivity
  • Home Assistant integration via ESPHome
  • RS-485 bus communication with motor controllers
  • Custom ESPHome components for Tsumikoro protocol
  • OTA firmware updates

FreeRTOS Integration

Real-Time Operating System Support:

  • Preemptive multitasking with configurable priorities
  • Dedicated RTOS threads for RX, TX, and bus handler
  • Inter-task communication via queues and semaphores
  • Stack overflow detection and monitoring
  • Optimized heap and stack allocations (18KB heap, task-specific stacks)

Development Tools:

  • Stack high-water mark monitoring via debug UART
  • Runtime statistics (heap usage, IRQ counts, task states)
  • Comprehensive unit tests for protocol and bus handler
  • CI/CD integration for automated builds and testing

Continuous Integration

Automated Builds:

  • All firmware targets built automatically on push/PR
  • Protocol unit tests run on every commit
  • Artifacts retained for 30 days
  • Multi-platform support (STM32 + ESP32)

Build Matrix:

  • STM32 builds: servo-g030, ministepper-g071, nucleo-g071rb, nucleo-g071rb-freertos
  • ESP32 builds: tsumikoro-bridge (ESPHome)
  • Protocol tests: 151 assertions across CRC8, protocol, integration, and bus handler tests

Hardware

Motor Controllers (STM32)

STM32G071G8U6 (Mini Stepper)

  • 64KB Flash, 36KB RAM
  • ARM Cortex-M0+ @ 64MHz
  • UFQFPN28 package
  • FreeRTOS support with optimized task stacks

STM32G030F6P6TR (Servo)

  • 32KB Flash, 8KB RAM
  • ARM Cortex-M0+ @ 64MHz
  • TSSOP20 package
  • Bare-metal for maximum efficiency

Development Boards

STM32 NUCLEO-G071RB

  • 128KB Flash, 36KB RAM
  • ARM Cortex-M0+ @ 64MHz
  • Arduino-compatible headers
  • On-board ST-LINK debugger
  • Available in both bare-metal and FreeRTOS firmware variants
  • Ideal for bus protocol development and testing

Network Bridge (ESP32)

ESP32 / ESP32-S3

  • WiFi 802.11 b/g/n
  • 4MB+ Flash recommended
  • UART communication with motor controllers
  • Home Assistant integration via ESPHome

License

This project uses dual licensing:

  • Firmware/Software: Apache 2.0
  • Hardware Designs: CERN-OHL-P v2 (permissive open hardware)

See LICENSE for details.

Contributing

Contributions are welcome! Please ensure:

  • Firmware contributions follow the Apache 2.0 license
  • Hardware contributions follow CERN-OHL-P v2
  • Code follows the existing style
  • All changes are tested

Resources

Documentation

Hardware

Licenses

Tools


Copyright (c) 2025-2025 Yann Ramin

Parts

73
QtyValueFootprintReferences
1210kResistor_SMD:R_0402_1005MetricR_BOOT0, R3, R8, R9, R10, R11, R12, R13, R14, R20, R24, R25
6100nFCapacitor_SMD:C_0402_1005MetricC7, C8, C9, C10, C13, C27
4100RResistor_SMD:R_0402_1005MetricR16, R17, R18, R19
4Conn_01x03Connector_JST:JST_PH_B3B-PH-K_1x03_P2.00mm_VerticalJSERVO0, JSERVO1, JSERVO2, JSERVO3
4MountingHoleMountingHole:MountingHole_3.2mm_M3_Pad_TopBottomH2, H3, H4, H5
3SolderJumper_3_Bridged12Jumper:SolderJumper-3_P1.3mm_Bridged12_RoundedPad1.0x1.5mmJP2, JP3, JP4
2100nFCapacitor_SMD:C_0603_1608MetricC2, C26
210uFCapacitor_SMD:C_0805_2012MetricC28, C29
210uFCapacitor_SMD:C_0402_1005MetricC4, C14
22.2uFCapacitor_SMD:C_1206_3216MetricC1, C25
2Conn_01x04_XHConnector_JST:JST_XH_S4B-XH-A_1x04_P2.50mm_HorizontalJBUS1, JBUS2
2SS36Diode_SMD:D_SMAD2, D3
1100kResistor_SMD:R_0402_1005MetricR22
1100uHInductor_SMD:L_Sunlord_SWPA4018SL1
110nFCapacitor_SMD:C_0402_1005MetricC3
110uHInductor_SMD:L_Changjiang_FNR4030SL2
1120RResistor_SMD:R_1206_3216MetricR21
1143kResistor_SMD:R_0402_1005MetricR1
11kResistor_SMD:R_0402_1005MetricR15
1220uF/50VCapacitor_SMD:CP_Elec_10x10.5C12
122nFCapacitor_SMD:C_0402_1005MetricC11
126.1kResistor_SMD:R_0402_1005MetricR4
131.6kResistor_SMD:R_0402_1005MetricR2
133pFCapacitor_SMD:C_0402_1005MetricC6
14.7nFCapacitor_SMD:C_0402_1005MetricC5
140.2kResistor_SMD:R_0402_1005MetricR23
1BOOTJumper:SolderJumper-2_P1.3mm_Open_Pad1.0x1.5mmJPBOOT2
1Conn_01x02_XHConnector_JST:JST_XH_S2B-XH-A_1x02_P2.50mm_HorizontalJPWR2
1Conn_01x04Connector_JST:JST_PH_B4B-PH-K_1x04_P2.00mm_VerticalJI2C1
1Conn_ARM_SWD_TagConnect_TC2030-NLConnector:Tag-Connect_TC2030-IDC-NL_2x03_P1.27mm_VerticalJ2
1DRV8876PWPRPackage_SO:HTSSOP-16-1EP_4.4x5mm_P0.65mm_EP3.4x5mmU3
1LED_RLED_SMD:LED_0603_1608MetricD1
1LMR38020SDDARPackage_SO:SOIC-8-1EP_3.9x4.9mm_P1.27mm_EP2.29x3mmU7
1LimitConnector_JST:JST_PH_B2B-PH-K_1x02_P2.00mm_VerticalJLIM2
1MotorConnector_JST:JST_PH_B2B-PH-K_1x02_P2.00mm_VerticalJMOTOR2
1SIT3088EEUAPackage_SO:MSOP-8_3x3mm_P0.65mmU5
1SRV05-4Package_TO_SOT_SMD:SOT-23-6U6
1STM32G030F6P6Package_SO:TSSOP-20_4.4x6.5mm_P0.65mmU4
1TERMJumper:SolderJumper-2_P1.3mm_Open_Pad1.0x1.5mmJPTERM2
1TPS54061DRBTPackage_SON:Texas_S-PVSON-N8U2

More from theatrus/tsumikoro

2
  • 4 layersMinistepper, the printed circuit board in 3D

    Ministepper

    theatrus/tsumikoro

    What if you made lots of spheres roll around?

    62 parts1
  • 4 layersBridge, the printed circuit board in 3D

    Bridge

    theatrus/tsumikoro

    What if you made lots of spheres roll around?

    30 parts1

Similar boards

  • 6 layers133 × 102 mmIasis, the printed circuit board in 3D

    Iasis

    hydazz/iasis

    An optional Raspberry Pi Compute Module 5 carrier for Iasis. It plugs into the main board's HubPD population and carries Ethernet, NVMe storage, an accessory USB-C port and a service USB-C port.

    723 partsApache-2.0
  • 4 layers98 × 74 mmHub standard, the printed circuit board in 3D

    Hub standard

    nathanfraske/CEC-Platform

    ONE board file, kept current by the wave (owner directive 2026-07-25: "the current best should be placed into a candidate folder per board and kept current with only one board ideally so we have a reference").

    91 partsApache-2.0
  • 2 layers110.1 × 110.4 mmMini, the printed circuit board in 3D

    Mini

    makerspet/oomwoo-esp32s3-cm

    Pi CM4/CM5-compatible Compute Module using ESP32-S3 instead of CPU

    116 parts1Apache-2.0
  • 2 layers34 × 28 mmHyperion, the printed circuit board in 3D

    Hyperion

    adamhrnciar/hyperion-controller

    Open-source controller for 150 g antweight combat robots: RP2354A, 2x DRV8231A, 2-4S, ELRS/CRSF/SBUS/iBUS/PPM input, IMU. KiCad 10, CERN-OHL-S-2.0.

    90 partsCERN-OHL-S-2.0
  • 4 layers64 × 64 mmEspion cam, the printed circuit board in 3D

    Espion cam

    azais-corentin/espion

    Multi-camera IR marker tracking: ESP32-P4/C5 firmware, Rust host, KiCad hardware

    188 partsApache-2.0
  • 2 layers70 × 70 mmLED, the printed circuit board in 3D

    LED

    evansj/ESP32-LED

    A Stargate thing...

    39 parts1GPL-3.0
  • 2 layers70 × 70 mmAccess, the printed circuit board in 3D

    Access

    sijinhui/SolarSystem

    Fork of codeberg.org/RevK/SolarSystem — adds ESP32-S3 N16R8 (octal PSRAM) build variant (branch n16r8-octal-psram)

    83 partsGPL-3.0

Questions

How big is the Servo PCB?

It measures 62 × 45 mm and has 4 copper layers, 1.61 mm thick.

What parts does the Servo use?

73 parts, built around the STM32G030F6P6, SIT3088EEUA, SRV05-4 and CL05B104KB54PNC. 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 Servo KiCad files?

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

Can I use the Servo design in my own project?

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