

Servo
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
12STM32G030F6P6
TSSOP-20-40℃~+85℃ 12bit 17 2V~3.6V 32 Bit 32KB 64MHz 8KB ARM Cortex-M0+ Built-in+External FLASH TSSOP-20 Microcontrollers (MCU/MPU/SOC) ROHSSTMicroelectronicsMicrocontrollers (MCU/MPU/SOC)SIT3088EEUA
MSOP-8-40℃~+125℃ 1 1 14Mbps 256 3V~5.5V 750uA Enable shutdown、Overcurrent Protection、Low-power mode、Tx/Rx enable Half-Duplex Transceiver ±15kV MSOP-8 RS-485 / RS-422 ICs ROHSSITRS-485 / RS-422 ICsSRV05-4
SOT-23-6L-55℃~+150℃ 15V 1pF 4A 5V 5uA 6V 80W ESD Four channels IEC 61000-4-2、IEC 61000-4-5 Unidirectional SOT-23-6L ESD and Surge Protection (TVS/ESD) ROHShongjiachengESD And Surge Protection (TVS/ESD)CL05B104KB54PNC
0402100nF 50V X7R ±10% 0402 Multilayer Ceramic Capacitors MLCC - SMD/SMT ROHSSamsung Electro-MechanicsMultilayer Ceramic Capacitors MLCC - SMD/SMTB3B-PH-K-S(LF)(SN)
插件,P=2mm-25℃~+85℃ 1 100V 1x3P 2A 2mm 3 3P 4.5mm 6mm 7.9mm Brass K Pin PA66 PH Through Hole Tin UL94V-0 White 插件,P=2mm Wire To Board Connector ROHSJSTWire To Board ConnectorCC0603KRX7R0BB104
0603100V 100nF X7R ±10% 0603 Multilayer Ceramic Capacitors MLCC - SMD/SMT ROHSYAGEOMultilayer Ceramic Capacitors MLCC - SMD/SMTCL21A106KAYNNNE
080510uF 25V X5R ±10% 0805 Multilayer Ceramic Capacitors MLCC - SMD/SMT ROHSSamsung Electro-MechanicsMultilayer Ceramic Capacitors MLCC - SMD/SMTCL31B225KCHSNNE
1206100V 2.2uF X7R ±10% 1206 Multilayer Ceramic Capacitors MLCC - SMD/SMT ROHSSamsung Electro-MechanicsMultilayer Ceramic Capacitors MLCC - SMD/SMTS4B-XH-A(LF)(SN)
弯插,P=2.5mm-25℃~+85℃ 1 11.5mm 12.4mm 1x4P 2.5mm 250V 3A 4 4P 6.1mm Brass K Pin PA66 Right Angle Tin UL94V-0 White XH 弯插,P=2.5mm Wire To Board Connector ROHSJSTWire To Board ConnectorSS36
SMA(DO-214AC)-55℃~+125℃ 3A 500uA@60V 60V 700mV@3A Independent SMA(DO-214AC) Schottky Diodes ROHSMDDSchottky DiodesLVS404018-101M-N
SMD,4x4mm1.5Ω 100uH 340mA 460mA Magnetic Shielded Inductor ±20% SMD,4x4mm Power Inductors ROHSChilisin ElectronicsPower InductorsFNR4030S100MT
SMD,4x4mm1.6A 10uH 130mΩ 2.4A Magnetic Shielded Inductor ±20% SMD,4x4mm Power Inductors ROHScjiangPower Inductors
README
README.mdTsumikoro
Open-source motor controller projects based on STM32G0 microcontrollers with ESP32 network bridge.
Projects
| Project | Description | MCU | Flash/RAM | Framework | Status |
|---|---|---|---|---|---|
| tsumikoro-servo | 6-channel servo + H-bridge motor controller | STM32G030F6P6TR | 32KB/8KB | STM32 LL | ✅ Functional (PR #9) |
| tsumikoro-ministepper | Mini stepper motor controller | STM32G071G8U6 | 64KB/36KB | STM32 HAL + FreeRTOS | 🚧 In Development |
| tsumikoro-bridge | WiFi/Network bridge (RS-485 bus) | ESP32/ESP32-S3 | 4MB+ | ESPHome | ✅ Functional (Merged) |
| nucleo-g071rb | Development firmware (bare-metal) | STM32G071RBT6 | 128KB/36KB | STM32 HAL | ✅ Development Tool (PR #11) |
| nucleo-g071rb-freertos | Development firmware (FreeRTOS) | STM32G071RBT6 | 128KB/36KB | STM32 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
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 informationQuick 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
# 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 helpIndividual Project Builds
Servo Controller (STM32G030):
cd firmware
make servo-g030
make flash-servo-g030 # Flash using st-flash
# Output: build/servo-g030/tsumikoro-servo.binMinistepper (STM32G071):
cd firmware
make ministepper-g071
make flash-ministepper-g071
# Output: build/ministepper-g071/tsumikoro-ministepper.binNUCLEO-G071RB Development Boards:
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 resetESP32 Bridge:
# 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 uploadKey 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 commands0x3000-0x3FFF: Servo motor commands0x4000-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| Qty | Value | Footprint | References |
|---|---|---|---|
| 12 | 10k | Resistor_SMD:R_0402_1005Metric | R_BOOT0, R3, R8, R9, R10, R11, R12, R13, R14, R20, R24, R25 |
| 6 | 100nF | Capacitor_SMD:C_0402_1005Metric | C7, C8, C9, C10, C13, C27 |
| 4 | 100R | Resistor_SMD:R_0402_1005Metric | R16, R17, R18, R19 |
| 4 | Conn_01x03 | Connector_JST:JST_PH_B3B-PH-K_1x03_P2.00mm_Vertical | JSERVO0, JSERVO1, JSERVO2, JSERVO3 |
| 4 | MountingHole | MountingHole:MountingHole_3.2mm_M3_Pad_TopBottom | H2, H3, H4, H5 |
| 3 | SolderJumper_3_Bridged12 | Jumper:SolderJumper-3_P1.3mm_Bridged12_RoundedPad1.0x1.5mm | JP2, JP3, JP4 |
| 2 | 100nF | Capacitor_SMD:C_0603_1608Metric | C2, C26 |
| 2 | 10uF | Capacitor_SMD:C_0805_2012Metric | C28, C29 |
| 2 | 10uF | Capacitor_SMD:C_0402_1005Metric | C4, C14 |
| 2 | 2.2uF | Capacitor_SMD:C_1206_3216Metric | C1, C25 |
| 2 | Conn_01x04_XH | Connector_JST:JST_XH_S4B-XH-A_1x04_P2.50mm_Horizontal | JBUS1, JBUS2 |
| 2 | SS36 | Diode_SMD:D_SMA | D2, D3 |
| 1 | 100k | Resistor_SMD:R_0402_1005Metric | R22 |
| 1 | 100uH | Inductor_SMD:L_Sunlord_SWPA4018S | L1 |
| 1 | 10nF | Capacitor_SMD:C_0402_1005Metric | C3 |
| 1 | 10uH | Inductor_SMD:L_Changjiang_FNR4030S | L2 |
| 1 | 120R | Resistor_SMD:R_1206_3216Metric | R21 |
| 1 | 143k | Resistor_SMD:R_0402_1005Metric | R1 |
| 1 | 1k | Resistor_SMD:R_0402_1005Metric | R15 |
| 1 | 220uF/50V | Capacitor_SMD:CP_Elec_10x10.5 | C12 |
| 1 | 22nF | Capacitor_SMD:C_0402_1005Metric | C11 |
| 1 | 26.1k | Resistor_SMD:R_0402_1005Metric | R4 |
| 1 | 31.6k | Resistor_SMD:R_0402_1005Metric | R2 |
| 1 | 33pF | Capacitor_SMD:C_0402_1005Metric | C6 |
| 1 | 4.7nF | Capacitor_SMD:C_0402_1005Metric | C5 |
| 1 | 40.2k | Resistor_SMD:R_0402_1005Metric | R23 |
| 1 | BOOT | Jumper:SolderJumper-2_P1.3mm_Open_Pad1.0x1.5mm | JPBOOT2 |
| 1 | Conn_01x02_XH | Connector_JST:JST_XH_S2B-XH-A_1x02_P2.50mm_Horizontal | JPWR2 |
| 1 | Conn_01x04 | Connector_JST:JST_PH_B4B-PH-K_1x04_P2.00mm_Vertical | JI2C1 |
| 1 | Conn_ARM_SWD_TagConnect_TC2030-NL | Connector:Tag-Connect_TC2030-IDC-NL_2x03_P1.27mm_Vertical | J2 |
| 1 | DRV8876PWPR | Package_SO:HTSSOP-16-1EP_4.4x5mm_P0.65mm_EP3.4x5mm | U3 |
| 1 | LED_R | LED_SMD:LED_0603_1608Metric | D1 |
| 1 | LMR38020SDDAR | Package_SO:SOIC-8-1EP_3.9x4.9mm_P1.27mm_EP2.29x3mm | U7 |
| 1 | Limit | Connector_JST:JST_PH_B2B-PH-K_1x02_P2.00mm_Vertical | JLIM2 |
| 1 | Motor | Connector_JST:JST_PH_B2B-PH-K_1x02_P2.00mm_Vertical | JMOTOR2 |
| 1 | SIT3088EEUA | Package_SO:MSOP-8_3x3mm_P0.65mm | U5 |
| 1 | SRV05-4 | Package_TO_SOT_SMD:SOT-23-6 | U6 |
| 1 | STM32G030F6P6 | Package_SO:TSSOP-20_4.4x6.5mm_P0.65mm | U4 |
| 1 | TERM | Jumper:SolderJumper-2_P1.3mm_Open_Pad1.0x1.5mm | JPTERM2 |
| 1 | TPS54061DRBT | Package_SON:Texas_S-PVSON-N8 | U2 |
More from theatrus/tsumikoro
2- 4 layers

- 4 layers

Similar boards
- 6 layers133 × 102 mm

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 mm

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 layers150.2 × 127 mm

- 2 layers110.1 × 110.4 mm

Mini
makerspet/oomwoo-esp32s3-cm
Pi CM4/CM5-compatible Compute Module using ESP32-S3 instead of CPU
116 parts1Apache-2.0 - 2 layers34 × 28 mm

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 mm

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 mm

- 2 layers70 × 70 mm

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.