STM32-H743ZI2 and Dynamixel Servo interaction
Hello, I am looking for some help with operating a Dynamixel XM540-W270-R servo actuator from a Nucleo-H743ZI2 Development board. I have used CubeMX to initialize all of my peripherals and am using CubeIDE for development. I have 2 basic objectives: 1) be able to write various position 2) be able to read the data off of the servo. I have gone through many of the Robotis references and believe I have constructed the required packets to be sent to the servo correctly over UART but when transmitted and received I get nothing. I am unsure where my error is whether it be physical or software and am very novice to this so please bear with me. Ihave wired a UART Rx and Tx line to the rs485 socket on the dynamixel starter kit. Below is the link to the Dynamixel SDK references that I have been using, I am using C protocol 2 specifically:
https://emanual.robotis.com/docs/en/software/dynamixel/dynamixel_sdk/overview/
Here are some figures and explanations that may help expand and be a little more specific to what I am doing:
Figure 1: This is an example of how I’ve constructed the packets. What’s shown is just the enable and part of the disable torque commands but I also have a status packet, temperature read packet, and goal position packet. I’ve initialized them as int arrays and used the hex format.
Figure 2: this is my procedure and how I am transmitting over the UART lines. I have used an oscilloscope to see that these lines are transmitting and they are but I cannot say definitively that it is correct. Same goes for the actual sequence of events.
Figure 3: This is CubeMX where I have initialized the tx and rx line with rs485 hardware flow control. If there is anything not in the picture that you need me to expand on I’m happy to do so.
Figure 4: This is my wiring setup.
PD5 (Brown Wire) UART TX-> pin 4 Starter kit
PD6 (Yellow Wire) UART RX-> pin 3 Starter kit
USB-> Laptop
Dynamixel → RS485 Socket on Starter kit
Please let me know if any of this is not clear or expanded on enough and I’ll get right on it.
Thank you!