Repository Summary

Checkout URI https://github.com/analogdevicesinc/tmcl_ros2.git
VCS Type git
VCS Version humble
Last Updated 2025-04-07
Dev Status MAINTAINED
CI status No Continuous Integration
Released RELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Packages

Name Version
adi_tmcl 2.0.3

README

adi_tmcl

adi_tmcl (previously tmcl_ros2) is the official ROS2 Driver for ADI Trinamic Motor Controllers (TMC) that uses Trinamic Motion Control Language (TMCL) protocol.

Background

:memo: Note: Tested boards are marked with asterisk(*), PD stands for PanDrive, which combines the motor and the Trinamic board in a single package. TMCM files in this ROS package should also be compatible with the PD version of the hardware. Contact the Developers for any issues encountered.

Hardware

For the tested TMCM-1636 setup, the following are used:

Also the following:

  • PWR/GND from board to external 24V power supply
  • 5-pin Motor connector (Hall) (see Note below)
  • 5-pin Motor connector (Encoder) (see Note below)
  • 40 pin Molex connectors

:memo: Note: Check Section 4 of QBL4208-x-1k Datasheet for motor wiring references.

The image below shows the connection diagram of the setup (with labels): TMCM-1636 Connections

The image below shows the actual setup used (for reference): TMCM-1636 Actual Setup

Software

Software Architecture

Software Architecture Diagram

Software Dependencies

Assumptions before building this package:

  • Installed ROS2 Humble. If not, follow these steps.
  • Setup workspace (with workspace folder named as “ros2_ws”). If not, follow these steps.

Clone

In the website:

  1. Make sure that the branch dropdown is set to “humble”.
  2. Click the “Clone” or “Code” button, then copy the SSH or HTTPS link (eg, “*.git”).

In a terminal, do the following:

$ cd ~/ros2_ws/src
$ git clone <copied SSH o HTTPS link here> adi_tmcl  #clones repo to "adi_tmcl" directory name

Build

```bash ########## [TERMINAL 1] ##########

Do proper exports first:

$ source /opt/ros//setup.bash

$ source /opt/ros/humble/setup.bash

Resolve any dependencies

$ cd ~/ros2_ws $ rosdep install -i –from-path src –rosdistro humble -y

File truncated at 100 lines see the full file