

Robot controller
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
774LVC2G125DP,125-JSM
TSSOP-8-40℃~+125℃ 1 1.65V~5.5V 4uA 50mA 50mA 6.9ns@3.3V,50pF 74LVC Tri-State Unidirectional TSSOP-8 Buffers, Drivers, Receivers, Transceivers ROHSJSMSEMIBuffers, Drivers, Receivers, TransceiversTLT9251VLEXUMA1
TSON-8-40℃~+150℃ 15uA 38mA 4.5V~5.5V 5Mbps CAN FD Transceiver TSON-8 CAN Transceivers ROHSInfineon TechnologiesCAN TransceiversTEENSY 4.1
Development Boards & Kits - ARM ModuleSparkFun ElectronicsUncategorisedISO1540D
SOIC-8-40℃~+125℃ 2500 50kV/us Bidirectional Bidirectional automatic direction、Open-drain buffer output SOIC-8 I2C Isolators ROHSTexas InstrumentsI2C IsolatorsPMEG6010CEGWJ
SOD-1231 Independent 1A 50uA@60V 60V 660mV@1A 9A SOD-123 Schottky Diodes ROHSNexperiaSchottky Diodes2SC4116
SOT-323Bipolar (BJT)Jiangsu Changjing Electronics Technology (CJ)IRLML6402
SOT-23-55℃~+150℃ 1 P-Channel 1.3W 110pF 12nC 145pF 20V 3.7A 400mV 633pF 65mΩ@4.5V P-Channel SOT-23 MOSFETs ROHSGuangdong HottechMOSFETs
README
README.mdRoboken-FMSKF-robot-controller
概要
Teensy4.1を使用した新ROBO-剣出場ロボットQuinqueのHW制御統括マイコンFW
主な役割は以下
- Ethernet経由Micro-ROSで、ロボット全体を統括する上位LinuxPCと情報をやり取りする
- 5軸ロボットアームへの指示、情報収集
- 4輪メカナムホイールモータの速度制御
- 距離センサを用いて床や相手ロボットの検知を簡易的に行う
- 相手ロボット認識用のカメラをPan/Tiltさせるサーボモータを制御
SW構成(src内)
すべてFreeRTOSのタスクベースでフォルダ分け
| フォルダ名 | 説明 |
|---|---|
| RobotManager | Ethernet経由Micro-ROSで、上位のLinuxPCと情報をやり取りしながらHW行動を決定するモジュール |
| ArmDrive | 5軸ロボットアームの制御を行う。各関節ごとにドライバ内で位置/トルク制御を行うため、このモジュールでは指示を統括 |
| VehicleDrive | 4輪メカナムホイールのモータ制御を行う。こちらはDJIのM2006,C610を使用しており、ドライバ内でのトルク制御を行うため、モータの速度制御から上位の指示/制御を統括 |
| FloorDetect | 競技エリアから落ちないように距離センサで床面をセンシングするモジュール |
| CameraGimbal | カメラをPan/Tiltさせる汎用サーボモータの制御モジュール |
| Logger | Print文をSDカードに保存するためのDebug用モジュール |
| Debug | DebugPrintやRTOSのリソース状況を出力するDebug用モジュール |
| Utility | 汎用モジュール。自作の計算処理など |
使用ライブラリ
| フォルダ名 | 説明 |
|---|---|
| FreeRTOS-Teensy4 | RTOS |
| micro_ros_arduino | Micro-ROS Quinque用のカスタムメッセージを含めてビルドしたものを同梱 |
| IcsClass_V210 | 一部使用している近藤科学製サーボモータ制御用 |
| TsyDMASPI | IMU用SPIだが現状ほぼ未使用 |
雑多なメモ
新規Msgの追加方法
msgファイルの作成
micro_ros_arduino\extras\library_generation\extra_packages直下にmsgフォルダを作る
公式チュートリアルに従って、.msgファイルの作成とCMakeLists.txtへの登録を行う
ここには記載がないが、package.xml末尾に以下を追加する必要もある
<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にて以下のコマンドを発行
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定義フォルダを作成
colcon build --symlink-install --packages-up-to interfaces
. install/local_setup.bash
ros2 run micro_ros_agent micro_ros_agent udp4 -p 9999Micro-ROSテスト方法memo
- topic
ros2 topic echo /VehicleInfo- service
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| Qty | Value | Footprint | References |
|---|---|---|---|
| 11 | 0.1u | Capacitor_SMD:C_0402_1005Metric | C2, C4, C8, C11, C12, C13, C14, C15, C16, C18, C20 |
| 11 | 10k | Resistor_SMD:R_0402_1005Metric | R1, R10, R12, R14, R23, R24, R27, R28, R31, R36, R37 |
| 8 | Conn_01x03 | Connector_JST:JST_XH_B3B-XH-A_1x03_P2.50mm_Vertical | J5, J6, J7, J8, J9, J10, J11, J12 |
| 7 | 0 | Resistor_SMD:R_0402_1005Metric | R4, R6, R8, R9, R25, R26, R33 |
| 6 | 1k | Resistor_SMD:R_0402_1005Metric | R3, R16, R22, R38, R39, R40 |
| 6 | LED | LED_SMD:LED_0603_1608Metric | D2, D4, D6, D13, D14, D15 |
| 5 | 1u | Capacitor_SMD:C_0603_1608Metric | C1, C3, C17, C19, C21 |
| 4 | 10u | Capacitor_SMD:C_0603_1608Metric | C5, C6, C7, C22 |
| 4 | 60 | Resistor_SMD:R_0402_1005Metric | R7, R29, R30, R35 |
| 4 | Conn_01x04 | Connector_JST:JST_EH_S4B-EH_1x04_P2.50mm_Horizontal | J13, J15, J17, J18 |
| 4 | MountingHole | MountingHole:MountingHole_3.2mm_M3 | H1, H2, H3, H4 |
| 3 | ISO1044BDR | SamacSys_Parts:SOIC127P600X175-8N | IC1, IC2, IC5 |
| 3 | PMEG6010CEGWJ | Diode_SMD:D_SOD-123 | D1, D7, D11 |
| 3 | RB5105SM-40T | Diode_SMD:D_SOD-523 | D5, D9, D12 |
| 2 | 47u | Capacitor_THT:CP_Radial_D5.0mm_P2.00mm | C24, C25 |
| 2 | 5.1k | Resistor_SMD:R_0402_1005Metric | R2, R5 |
| 2 | 74LVC2G125DP,125 | SamacSys_Parts:SOP65P400X110-8N | IC3, IC4 |
| 2 | Conn_01x02 | Connector_JST:JST_EH_S2B-EH_1x02_P2.50mm_Horizontal | J16, J20 |
| 2 | Conn_01x03 | Connector_JST:JST_EH_S3B-EH_1x03_P2.50mm_Horizontal | J19, J21 |
| 2 | Conn_01x06 | Connector_JST:JST_XH_B6B-XH-A_1x06_P2.50mm_Vertical | J2, J4 |
| 1 | 2SC4116 | Package_TO_SOT_SMD:SOT-323_SC-70 | Q2 |
| 1 | AZ1117-3.3 | Package_TO_SOT_SMD:SOT-223 | U2 |
| 1 | IRLML6402 | Package_TO_SOT_SMD:SOT-23 | Q4 |
| 1 | ISO1540 | Package_SO:SOIC-8_3.9x4.9mm_P1.27mm | U3 |
| 1 | LD1117S50TR_SOT223 | Package_TO_SOT_SMD:SOT-223-3_TabPin2 | U5 |
| 1 | NCP718xSN500 | Package_TO_SOT_SMD:SOT-23-5 | U4 |
| 1 | RJ45_LED | SamacSys_Parts:J1B1211CCD | J3 |
| 1 | SW_SPST | Button_Switch_SMD:SW_Push_1P1T_NO_CK_KMR2 | SW1 |
| 1 | TLT9251VLEXUMA1 | SamacSys_Parts:SON65P300X300X110-9N | IC6 |
| 1 | Teensy4.1 | teensy_FP:Teensy41simple_onlyeth | U1 |
| 1 | USB_C_Receptacle_USB2.0 | Connector_USB:USB_C_Receptacle_GCT_USB4085 | J1 |
Similar boards
- 4 layers

- 2 layers87.5 × 72 mm

- 2 layers94.5 × 92.5 mm

Funcdecoder tomix pcb 0773 0507 rev0 panelize 94 5mm 92 5mm
ytsurui/dcc-funcdecoder-pcb-t0507d
NMRA DCC Decoder Circuit Diagram / PCB Design Data for TOMIX 0507/0773
735 partsMIT - 2 layers94 × 97 mm

Funcdecoder tomix pcb 8919 rev0 panelize 94mm 97mm
ytsurui/dcc-funcdecoder-pcb-t8919d
NMRA DCC Decoder Circuit Diagram / PCB Design Data for TOMIX 8919
576 partsMIT - 2 layers158 × 85 mm

- 4 layers60 × 60 mm

- 2 layers142.9 × 97.8 mm

WheelwriterInterfaceBoard
jkua/wheelwriter-interface
Low-level IBM Wheelwriter interface
27 parts15BSD-3-Clause - 4 layers100 × 50 mm

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.