Skip to the content
2 layers80 × 90 mmRobot controller, the printed circuit board in 3D

docker pull microros/microrosstaticlibrarybuilder:foxy docker run -it --rm -v $(pwd):/project --env MICROROSLIBRARYFOLDER=extras microros/microrosstaticlibrarybuilder:foxy -p teensy4 ※2022/05/08…

Size
80 × 90 mm
Copper layers
2
Thickness
1.6 mm
Parts
102
Nets
100
Pads
365
Tracks, vias
866, 305
Pours
13
Routed
Yes
KiCad
KiCad 5 (file 20171130)
Created
2 May 2022
Updated
6 Nov 2026

Overview

Robot controller is an open-source printed circuit board by Moryu-Io, from the Moryu-Io/Roboken-FMSKF-robot-controller repository on GitHub. It is a 2-layer board of 80 × 90 mm with 102 parts on 100 nets, routed with 866 tracks and 305 vias.

It is built around the 74LVC2G125DP,125-JSM, TLT9251VLEXUMA1 and TEENSY 4.1, with the ISO1540D, PMEG6010CEGWJ and 2SC4116 among its other parts. Its parts include 30 resistors, 22 capacitors, 20 connectors, 12 diodes and 11 ICs. It belongs with the robots and motor control boards and the NXP (LPC, Kinetis, i.MX RT) boards of this library.

Main components

7

README

README.md

Roboken-FMSKF-robot-controller

概要

Teensy4.1を使用した新ROBO-剣出場ロボットQuinqueのHW制御統括マイコンFW
主な役割は以下

  • Ethernet経由Micro-ROSで、ロボット全体を統括する上位LinuxPCと情報をやり取りする
  • 5軸ロボットアームへの指示、情報収集
  • 4輪メカナムホイールモータの速度制御
  • 距離センサを用いて床や相手ロボットの検知を簡易的に行う
  • 相手ロボット認識用のカメラをPan/Tiltさせるサーボモータを制御

SW構成(src内)

すべてFreeRTOSのタスクベースでフォルダ分け

フォルダ名説明
RobotManagerEthernet経由Micro-ROSで、上位のLinuxPCと情報をやり取りしながらHW行動を決定するモジュール
ArmDrive5軸ロボットアームの制御を行う。各関節ごとにドライバ内で位置/トルク制御を行うため、このモジュールでは指示を統括
VehicleDrive4輪メカナムホイールのモータ制御を行う。こちらはDJIのM2006,C610を使用しており、ドライバ内でのトルク制御を行うため、モータの速度制御から上位の指示/制御を統括
FloorDetect競技エリアから落ちないように距離センサで床面をセンシングするモジュール
CameraGimbalカメラをPan/Tiltさせる汎用サーボモータの制御モジュール
LoggerPrint文をSDカードに保存するためのDebug用モジュール
DebugDebugPrintやRTOSのリソース状況を出力するDebug用モジュール
Utility汎用モジュール。自作の計算処理など

使用ライブラリ

フォルダ名説明
FreeRTOS-Teensy4RTOS
micro_ros_arduinoMicro-ROS Quinque用のカスタムメッセージを含めてビルドしたものを同梱
IcsClass_V210一部使用している近藤科学製サーボモータ制御用
TsyDMASPIIMU用SPIだが現状ほぼ未使用

雑多なメモ

新規Msgの追加方法

msgファイルの作成

micro_ros_arduino\extras\library_generation\extra_packages直下にmsgフォルダを作る

公式チュートリアルに従って、.msgファイルの作成とCMakeLists.txtへの登録を行う

ここには記載がないが、package.xml末尾に以下を追加する必要もある

text
  <build_depend>rosidl_default_generators</build_depend>
  <exec_depend>rosidl_default_runtime</exec_depend>
  <member_of_group>rosidl_interface_packages</member_of_group>

micro_ros_arduinoライブラリを作成する

wsl2にて以下のコマンドを発行

text
sudo service docker start

docker pull microros/micro_ros_static_library_builder:foxy
docker run -it --rm -v $(pwd):/project --env MICROROS_LIBRARY_FOLDER=extras microros/micro_ros_static_library_builder:foxy -p teensy4

※2022/05/08 wsl2で上記コマンドでdocker使用時に名前解決ができなくなっていた。原因不明。

このサイトに従って、/etc/resolv.confに記載のDNSサーバーを変更する

PC側での準備

通信するPC側では同様のmsg定義フォルダを作成

text
colcon build --symlink-install --packages-up-to interfaces
. install/local_setup.bash
ros2 run micro_ros_agent micro_ros_agent udp4 -p 9999

Micro-ROSテスト方法memo

  • topic
text
ros2 topic echo /VehicleInfo
  • service
text
ros2 service call /ProcStatus interfaces/srv/ProcStatus "{id: 1}"

FreeRTOS

こちらのリポジトリをベースに、libフォルダに格納 https://github.com/juliandesvignes/FreeRTOS-Teensy4

変更点

  • heap3からheap4に
    • heap3はC言語のmallocなどのラッパだが、Teensyduinoではmallocで確保されるのは通常RAM。
    • heap4でucHeapをTCMに配置することで高速性を担保
  • 別途configファイルを設定

Parts

102
QtyValueFootprintReferences
110.1uCapacitor_SMD:C_0402_1005MetricC2, C4, C8, C11, C12, C13, C14, C15, C16, C18, C20
1110kResistor_SMD:R_0402_1005MetricR1, R10, R12, R14, R23, R24, R27, R28, R31, R36, R37
8Conn_01x03Connector_JST:JST_XH_B3B-XH-A_1x03_P2.50mm_VerticalJ5, J6, J7, J8, J9, J10, J11, J12
70Resistor_SMD:R_0402_1005MetricR4, R6, R8, R9, R25, R26, R33
61kResistor_SMD:R_0402_1005MetricR3, R16, R22, R38, R39, R40
6LEDLED_SMD:LED_0603_1608MetricD2, D4, D6, D13, D14, D15
51uCapacitor_SMD:C_0603_1608MetricC1, C3, C17, C19, C21
410uCapacitor_SMD:C_0603_1608MetricC5, C6, C7, C22
460Resistor_SMD:R_0402_1005MetricR7, R29, R30, R35
4Conn_01x04Connector_JST:JST_EH_S4B-EH_1x04_P2.50mm_HorizontalJ13, J15, J17, J18
4MountingHoleMountingHole:MountingHole_3.2mm_M3H1, H2, H3, H4
3ISO1044BDRSamacSys_Parts:SOIC127P600X175-8NIC1, IC2, IC5
3PMEG6010CEGWJDiode_SMD:D_SOD-123D1, D7, D11
3RB5105SM-40TDiode_SMD:D_SOD-523D5, D9, D12
247uCapacitor_THT:CP_Radial_D5.0mm_P2.00mmC24, C25
25.1kResistor_SMD:R_0402_1005MetricR2, R5
274LVC2G125DP,125SamacSys_Parts:SOP65P400X110-8NIC3, IC4
2Conn_01x02Connector_JST:JST_EH_S2B-EH_1x02_P2.50mm_HorizontalJ16, J20
2Conn_01x03Connector_JST:JST_EH_S3B-EH_1x03_P2.50mm_HorizontalJ19, J21
2Conn_01x06Connector_JST:JST_XH_B6B-XH-A_1x06_P2.50mm_VerticalJ2, J4
12SC4116Package_TO_SOT_SMD:SOT-323_SC-70Q2
1AZ1117-3.3Package_TO_SOT_SMD:SOT-223U2
1IRLML6402Package_TO_SOT_SMD:SOT-23Q4
1ISO1540Package_SO:SOIC-8_3.9x4.9mm_P1.27mmU3
1LD1117S50TR_SOT223Package_TO_SOT_SMD:SOT-223-3_TabPin2U5
1NCP718xSN500Package_TO_SOT_SMD:SOT-23-5U4
1RJ45_LEDSamacSys_Parts:J1B1211CCDJ3
1SW_SPSTButton_Switch_SMD:SW_Push_1P1T_NO_CK_KMR2SW1
1TLT9251VLEXUMA1SamacSys_Parts:SON65P300X300X110-9NIC6
1Teensy4.1teensy_FP:Teensy41simple_onlyethU1
1USB_C_Receptacle_USB2.0Connector_USB:USB_C_Receptacle_GCT_USB4085J1

Similar boards

  • 2 layers87.5 × 72 mmSwitchdecoder3, the printed circuit board in 3D

    Switchdecoder3

    ytsurui/SwitchDecoder3

    NMRA DCC Compatible Accessory Decoder

    1,296 parts1MIT
  • 2 layers158 × 85 mmPiPLC Mainboard, the printed circuit board in 3D

    PiPLC Mainboard

    Chrismettal/PiPLC

    Glorified breakout board + DIN rail case for Pis

    154 parts19
  • 4 layers60 × 60 mmASPECT2, the printed circuit board in 3D

    ASPECT2

    xboxoneresearch/ASPECT2-PCB

    Facet2 FabA PCB Clone

    132 parts18
  • 2 layers142.9 × 97.8 mmWheelwriterInterfaceBoard, the printed circuit board in 3D

    WheelwriterInterfaceBoard

    jkua/wheelwriter-interface

    Low-level IBM Wheelwriter interface

    27 parts15BSD-3-Clause
  • 4 layers100 × 50 mmPsu ext, the printed circuit board in 3D

    Psu ext

    PSU-Ext-Org/psu-ext-hardware

    A repository to store PSU-EXT hardware design assets, schematics, circuit diagrams, CAD files and manufacturing data.

    137 parts9CERN-OHL-S-2.0

Questions

How big is the Robot controller PCB?

It measures 80 × 90 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Robot controller use?

102 parts, built around the 74LVC2G125DP,125-JSM, TLT9251VLEXUMA1, TEENSY 4.1 and ISO1540D. 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 Robot controller KiCad files?

From the Moryu-Io/Roboken-FMSKF-robot-controller repository on GitHub, at the commit this page was made from: the board is sch/robot_controller.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the Robot controller design in my own project?

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