Skip to the content
2 layers62 × 29.3 mmServo, the printed circuit board in 3D

回路のデータ,複数マイコンのプログラム一括管理

Size
62 × 29.3 mm
Copper layers
2
Thickness
1.6 mm
Parts
20
Nets
13
Pads
47
Tracks, vias
21, 0
Pours
3
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
11 Jul 2026
Updated
15 Sep 2026

Overview

Servo is an open-source printed circuit board by nyankowan, from the nyankowan/CatchRobo_2026 repository on GitHub. It is a 2-layer board of 62 × 29.3 mm with 20 parts on 13 nets, routed with 21 tracks and 0 vias.

Its parts include 7 connectors, 6 resistors, 2 capacitors and 1 diode. It belongs with the robots and motor control boards of this library.

README

README.md

CatchRobo_2026

キャチロボ2026で使用する回路データおよび複数マイコンのプログラムを一括管理するリポジトリ. Team: OBT

Directory structure

text
CatchRobo_2026/
├── common/                     ESP32/STM32が共有するプラットフォーム非依存コード
│   ├── arm/
│   │   └── アームの物理パラメータ・ホーミング関連定数・出場チーム(ROBOT_TEAM)
│   │
│   ├── can_protocol/
│   │   └── CAN IDとデータフォーマットの対応定義
│   │
│   └── coordinate/
│       └── 直交座標・極座標変換
│
├── ESP32/
│   └── controller/
│       └── Main Controller(プロコン入力の受信とCANによる各STM32への指令)
│
├── STM32/
│   ├── common/
│   │   └── can/
│   │       └── STM32 HAL CANを使ったCAN送信のラッパー
│   │
│   ├── robomas_controller/
│   │   └── 両アームのr軸・deg軸(Robomaster)制御.ホーミング処理の中枢
│   │
│   ├── lower_arm_servo/

各ディレクトリの詳細は,それぞれのREADMEを参照.

ディレクトリREADME
共有コードcommon/README.md
CAN通信仕様common/can_protocol/README.md
Main ControllerESP32/controller/README.md
STM32全体STM32/README.md
部品リストKicad/README.md

Hardware

Actuator

  • Robomaster M3508
  • DS3225 Servo

Sensor

  • リミットスイッチ(ホーミング用,robomas_controllerに接続)

Communication

  • CAN 1Mbps (ESP32 - STM32, STM32 - Robomaster)

CAN ID・データフォーマットの仕様は common/can_protocol/README.md を参照.

System overview

mermaid
graph LR
    Pad1[Gamepad1] <-->|Bluetooth| ESP32[ESP32<br>中央制御]
    Pad2[Gamepad2] <-->|Bluetooth| ESP32

    ESP32 --- CAN[CAN BUS]

    CAN --- STM1[STM32 #1<br>robomas_controller]
    CAN --- STM2[STM32 #2<br>lower_arm_servo]
    CAN --- STM3[STM32 #3<br>upper_arm_servo]
    CAN --- STM4[STM32 #4<br>assemble_servo]

    STM1 <-->|CAN| Motor[Robomaster Motor<br>M3508]
    Limit[リミットスイッチ] -->|GPIO| STM1
    STM2 -->|PWM| Servo1[DS3225<br>Left/Middle/Right/Expand/Shaft]
    STM3 -->|PWM| Servo2[DS3225<br>Shaft/Z]
    STM4 -->|PWM| Servo3[DS3225<br>Assemble]

Development environment

ESP32

Hardware
  • ESP32-DevKitC-32E
Software
  • ESP-IDF v5.5.4
  • VS Code + ESP-IDF Extension

STM32

Hardware
  • STM32 NUCLEO-F303K8
  • STM32 NUCLEO-F446RE
Software
  • STM32CubeMX
  • CMake
  • VS Code + STM32CubeIDE Extension

KiCad

Software
  • KiCad 10.0

Build

ESP32

Setup

ESP-IDF環境構築手順(Windows)

ESP-IDF環境構築手順(Linux)

Build
bash
idf.py build
Flash
bash
idf.py flash

STM32

Setup

Qiita: STM32の開発をVSCodeで行う @tanutanup(tanutanu p)様

Build

各プロジェクト(STM32/lower_arm_servo, STM32/upper_arm_servo, STM32/robomas_controller, STM32/assemble_servo)のディレクトリで実行する.

bash
cmake --preset Release
cmake --build --preset Release

出場チーム(ROBOT_TEAM)の設定

赤/青チームはフィールドが鏡合わせで,整理機構を左右逆側に取り付けるため,DEG軸のホーミング原点やShaftサーボの回転方向をチームごとに切り替える必要がある.

出場チームは common/arm/inc/arm.h の ROBOT_TEAM(ROBOT_TEAM_RED / ROBOT_TEAM_BLUE)としてビルド時の定数で持たせている.緊急停止スイッチでESP32/STM32が再起動しても値を保持する必要があるため,実行時に切り替える方式にはしていない.

出場チームに応じてarm.hのこの値を書き換えた後は,arm.hを使う全ファームウェア(ESP32 Main Controller,STM32のrobomas_controller / lower_arm_servo / upper_arm_servo)を必ずビルド・書き込みし直すこと. 値がずれると,DEG軸のホーミングで検出するリミットスイッチと回転方向が基板間で食い違い,可動域の反対側の固定端に衝突する恐れがある.

詳細は STM32/robomas_controller/README.md を参照.

CI

.github/workflows/ でpush/pull request時に全ファームウェアのビルドを確認している.

Workflow内容
esp32-build.ymlESP32/controller をESP-IDF v5.5.4でビルド
stm32-build.ymlSTM32の4プロジェクトをcmake --preset Releaseでビルド

ESP-IDFのバージョンとSTM32のツールチェーンは,上記「Development environment」およびDev Containerの設定と揃えること.

Dev Container (Docker)

ESP-IDF拡張とSTM32系拡張は同じVS Codeウィンドウで有効になっていると干渉するため,用途別にDev Container(Docker)を分けている.必要な拡張機能だけがコンテナ内にインストールされるので,都度手動で拡張をオン/オフする必要がない.

フォルダを開く使うコンテナ有効になる拡張
ESP32/controllerESP32/controller/.devcontainerESP-IDF
STM32STM32/.devcontainerclangd, CMake Tools, Cortex-Debug

使い方: 対象のフォルダ(リポジトリ全体ではなく上表のフォルダ)をFile > Open Folder...で開き,コマンドパレットからDev Containers: Reopen in Containerを実行する.どちらのコンテナも各プロジェクトが参照するcommon/(リポジトリ直下)を含むリポジトリ全体をマウントしたうえで,開いたフォルダをエディタ上のワークスペースフォルダとして表示する.

STM32/.devcontainerはlower_arm_servo/upper_arm_servo/robomas_controller/assemble_servoの4プロジェクト共通で,どのプロジェクトも同じコンテナ内でビルドできる(各プロジェクトのディレクトリにcdして上記のcmake --presetコマンドを実行).

ESP32/controller/.devcontainerはコンテナ作成時にcomponents/proconが依存するBluepad32/BTstack(~/.espressif/bluepad32)を自動で取得する(esp32-build.ymlと同じ手順).取得結果はDockerボリュームにキャッシュされるため,コンテナを再作成しても毎回cloneし直すことはない.

ST-Link/シリアルポート経由でのフラッシュ・デバッグにはUSBデバイスをコンテナに渡す必要があり,Linuxホスト以外(Windows/macOS)では別途パススルー設定が必要な場合がある.

Parts

20
QtyValueFootprintReferences
5220ΩResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR1, R2, R3, R4, R5
10.1μFCapacitor_THT:C_Disc_D5.0mm_W2.5mm_P5.00mmC2
11000μFCapacitor_THT:CP_Radial_D12.5mm_P5.00mmC1
11kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR6
1LEDLED_THT:LED_D3.0mmD1
1XT30Connector_AMASS:AMASS_XT30PW-M_1x02_P2.50mm_HorizontalP1
1pwmConnector_PinHeader_2.54mm:PinHeader_1x06_P2.54mm_VerticalJ1
1servo1Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJ2
1servo2Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJ3
1servo3Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJ4
1servo4Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJ5
1servo5Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJ6

The 16 most common of 20 parts.

More from nyankowan/CatchRobo_2026

2
  • 2 layers100 × 100 mmSTM32F446RE robomas controller, the printed circuit board in 3D

    STM32F446RE robomas controller

    nyankowan/CatchRobo_2026

    回路のデータ,複数マイコンのプログラム一括管理

    16 parts
  • 2 layers46.5 × 50.5 mmSTM32F303K8 lower arm servo, the printed circuit board in 3D

    STM32F303K8 lower arm servo

    nyankowan/CatchRobo_2026

    回路のデータ,複数マイコンのプログラム一括管理

    9 parts

Similar boards

  • 2 layers66.9 × 74.5 mmDeskHop Rev1, the printed circuit board in 3D

    DeskHop Rev1

    hrvach/deskhop

    Fast Desktop Switching Device

    20 parts7.9kGPL-3.0
  • 2 layers86.4 × 64.8 mmSlot machine, the printed circuit board in 3D

    Slot machine

    google/google-ctf

    Google CTF

    20 parts5.1kApache-2.0
  • 2 layers36.2 × 26.8 mmEsp32 minimal, the printed circuit board in 3D

    Esp32 minimal

    atopile/atopile

    Design circuit boards with code! ✨ Get software-like design reuse 🚀, validation, version control and collaboration in hardware; starting with electronics ⚡️

    20 parts4kMIT
  • 2 layers108.1 × 393.8 mmSweep compact ble, the printed circuit board in 3D

    Sweep compact ble

    davidphilipbarr/Sweep

    Sweep - a small promicro based keyboard inspired by the Ferris.

    20 parts2.1k
  • 2 layers26 × 15.9 mmTPS54340 Buck Regulator, the printed circuit board in 3D

    TPS54340 Buck Regulator

    rusefi/rusefi

    rusefi - GPL internal combustion engine control unit

    20 parts1.2k
  • 2 layers67.6 × 30.5 mmRgb to hdmi, the printed circuit board in 3D

    Rgb to hdmi

    hoglet67/RGBtoHDMI

    Bare-metal Raspberry Pi project that provides pixel-perfect sampling of Retro Computer RGB/YUV video and conversion to HDMI

    20 parts1kGPL-3.0
  • 2 layers44.3 × 28.7 mmLin bus adapter esp32, the printed circuit board in 3D

    Lin bus adapter esp32

    hackclub/OnBoard

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

    20 parts915
  • 2 layers89.5 × 61.6 mmFreeDeck TH 2020-02, the printed circuit board in 3D

    FreeDeck TH 2020-02

    FreeYourStream/freedeck-hardware

    all the stuff you need to build your own FreeDeck

    20 parts772

Questions

How big is the Servo PCB?

It measures 62 × 29.3 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Servo use?

20 parts. 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 nyankowan/CatchRobo_2026 repository on GitHub, at the commit this page was made from: the board is Kicad/servo/servo.kicad_pcb and its schematic Kicad/ESP/ESP.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 nyankowan before reusing the design.