

回路のデータ,複数マイコンのプログラム一括管理
- 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.mdCatchRobo_2026
キャチロボ2026で使用する回路データおよび複数マイコンのプログラムを一括管理するリポジトリ. Team: OBT
Directory structure
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 Controller | ESP32/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
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
Build
idf.py buildFlash
idf.py flashSTM32
Setup
Qiita: STM32の開発をVSCodeで行う @tanutanup(tanutanu p)様
Build
各プロジェクト(STM32/lower_arm_servo, STM32/upper_arm_servo, STM32/robomas_controller, STM32/assemble_servo)のディレクトリで実行する.
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.yml | ESP32/controller をESP-IDF v5.5.4でビルド |
stm32-build.yml | STM32の4プロジェクトをcmake --preset Releaseでビルド |
ESP-IDFのバージョンとSTM32のツールチェーンは,上記「Development environment」およびDev Containerの設定と揃えること.
Dev Container (Docker)
ESP-IDF拡張とSTM32系拡張は同じVS Codeウィンドウで有効になっていると干渉するため,用途別にDev Container(Docker)を分けている.必要な拡張機能だけがコンテナ内にインストールされるので,都度手動で拡張をオン/オフする必要がない.
| フォルダを開く | 使うコンテナ | 有効になる拡張 |
|---|---|---|
ESP32/controller | ESP32/controller/.devcontainer | ESP-IDF |
STM32 | STM32/.devcontainer | clangd, 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| Qty | Value | Footprint | References |
|---|---|---|---|
| 5 | 220Ω | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal | R1, R2, R3, R4, R5 |
| 1 | 0.1μF | Capacitor_THT:C_Disc_D5.0mm_W2.5mm_P5.00mm | C2 |
| 1 | 1000μF | Capacitor_THT:CP_Radial_D12.5mm_P5.00mm | C1 |
| 1 | 1k | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal | R6 |
| 1 | LED | LED_THT:LED_D3.0mm | D1 |
| 1 | XT30 | Connector_AMASS:AMASS_XT30PW-M_1x02_P2.50mm_Horizontal | P1 |
| 1 | pwm | Connector_PinHeader_2.54mm:PinHeader_1x06_P2.54mm_Vertical | J1 |
| 1 | servo1 | Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_Vertical | J2 |
| 1 | servo2 | Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_Vertical | J3 |
| 1 | servo3 | Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_Vertical | J4 |
| 1 | servo4 | Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_Vertical | J5 |
| 1 | servo5 | Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_Vertical | J6 |
The 16 most common of 20 parts.
More from nyankowan/CatchRobo_2026
2- 2 layers100 × 100 mm

- 2 layers46.5 × 50.5 mm

Similar boards
- 2 layers66.9 × 74.5 mm

- 2 layers86.4 × 64.8 mm

- 2 layers36.2 × 26.8 mm

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 mm

Sweep compact ble
davidphilipbarr/Sweep
Sweep - a small promicro based keyboard inspired by the Ferris.
20 parts2.1k - 2 layers26 × 15.9 mm

TPS54340 Buck Regulator
rusefi/rusefi
rusefi - GPL internal combustion engine control unit
20 parts1.2k - 2 layers67.6 × 30.5 mm

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 mm

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 mm

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.