Skip to the content
2 layers48 × 65.9 mmESP, the printed circuit board in 3D

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

Size
48 × 65.9 mm
Copper layers
2
Thickness
1.6 mm
Parts
22
Nets
43
Pads
79
Tracks, vias
179, 0
Pours
1
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
1 Oct 2026
Updated
1 Oct 2026

Overview

ESP is an open-source printed circuit board by okarobo-cg, from the okarobo-cg/CatchRobo_2026 repository on GitHub. It is a 2-layer board of 48 × 65.9 mm with 22 parts on 43 nets, routed with 179 tracks and 0 vias.

Its parts include 7 resistors, 7 diodes, 3 connectors and 1 IC. It belongs with the ESP32 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

22
QtyValueFootprintReferences
7300RResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR1, R2, R3, R4, R5, R6, R7
4MountingHoleMountingHole:MountingHole_3.2mm_M3H1, H2, H3, H4
13V3Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJ3
15VConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJ1
1CANConnector_PinHeader_2.54mm:PinHeader_1x05_P2.54mm_VerticalJ2
1CAN_STATUSLED_THT:LED_D3.0mmD1
1CON_1LED_THT:LED_D3.0mmD5
1CON_2LED_THT:LED_D3.0mmD6
1ESP32_DevKitC-32EESP32_DevKitC_32E:ESP32_DevKitC_32EU1
1LOW_STATUSLED_THT:LED_D3.0mmD2
1RBMAS_SLED_THT:LED_D3.0mmD4
1STATUSLED_THT:LED_D3.0mmD7
1UP_STATUSLED_THT:LED_D3.0mmD3

Similar boards

  • 2 layers158 × 11 mmDaylight Matchstick, the printed circuit board in 3D

    Daylight Matchstick

    VoronDesign/Voron-Hardware

    Cool Hardware designed by the Voron Design group

    22 parts1.1kGPL-3.0
  • 2 layers57 × 65 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

    22 parts1kGPL-3.0
  • 2 layers81 × 57.2 mmRP2040-Macropad, the printed circuit board in 3D

    RP2040-Macropad

    hackclub/OnBoard

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

    22 parts915
  • 2 layers54.6 × 70.9 mmBeagleLogic Cape, the printed circuit board in 3D

    BeagleLogic Cape

    abhishek-kakkar/BeagleLogic

    A Software Suite that implements a logic analyzer with the PRU on the BeagleBone / BeagleBone Black.

    22 parts479GPL-3.0
  • 2 layers66.4 × 24.5 mmConnecting piece, the printed circuit board in 3D

    Connecting piece

    Chrismettal/flipper-zero-backpacks

    Backpack-style addon boards for the Flipper Zero!

    22 parts456
  • 2 layers51 × 70 mmDMG A04-01, the printed circuit board in 3D

    DMG A04-01

    HDR/NintendoPCBs

    Replacement pcb's for Nintendo games.

    22 parts321
  • 2 layers27.8 × 16 mmSpi 1v8 level shifter, the printed circuit board in 3D

    Spi 1v8 level shifter

    CRImier/MyKiCad

    My KiCad boards. Can't be bothered uploading individually anymore, so here you go.

    22 parts253GPL-3.0

Questions

How big is the ESP PCB?

It measures 48 × 65.9 mm and has 2 copper layers, 1.6 mm thick.

What parts does the ESP use?

22 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 ESP KiCad files?

From the okarobo-cg/CatchRobo_2026 repository on GitHub, at the commit this page was made from: the board is Kicad/ESP/ESP.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 ESP design in my own project?

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