Unable to rotate AX-12A motor with Arduino UNO and Dynamixelshield

Dynamixel Model : AX-12A

Control environment :

  1. Arduino UNO, Dynamixel shield, 12V SMPS & AX-12A
  2. Arduino Leonardo, Dynamixel shield, 12V SMPS & AX-12A
  3. Arduino UNO, 12V SMPS & AX-12A

Library Used :
a. GitHub - ROBOTIS-GIT/DynamixelShield: DynamixelShield Library for Arduino
b. GitHub - ROBOTIS-GIT/Dynamixel2Arduino: DYNAMIXEL protocol library for Arduino
c. GitHub - jumejume1/AX-12A-servo-library

Issue Description

1. Arduino UNO & Dynamixel shield

We are facing issue while trying to rotate motor through dynamixel shield and Arduino UNO. All recommended libraries are installed. when we are uploading ping example code, not getting any value. you can refer the below Screenshot.


when we upload scan_dynamixel code motor is not able to communicate with dynamixel shield. you can refer the attached video link -
https://drive.google.com/file/d/1zqOrHTAfDPqGQ-b6yLJfgY1-dRUElVuE/view?usp=sharing

2. Arduino Leonardo & Dynamixel shield

As we are not able get serial data from arduino UNO, we used Arduino Leonardo. With the help Leonardo we are getting serial data but still motor is not able to communicating with shield. you can refer the below screenshot.


when we upload scan_dynamixel code motor is not able to communicate with dynamixel shield in Leonardo also. you can refer the attached video link -https://drive.google.com/file/d/1vxdqjKEZ0BfCczaY1_hRWr7HW6__7lpA/view?usp=sharing

3. Only Arduino UNO

With only arduino we are not getting serial data but motor is running. We used this library (GitHub - jumejume1/AX-12A-servo-library) in code. you can refer the below image.


also you can refer the attached video link -
https://drive.google.com/file/d/1zqOrHTAfDPqGQ-b6yLJfgY1-dRUElVuE/view?usp=sharing

What should I do now to establish communication between dynamixel shield and AX-12A?

In your first screenshot, as well as in the video showing the Arduino Leonardo, the code for the ping example appears to be modified.

Can you run the ping example again with a completely unmodified copy of the default ping example sketch?

The library used for number 3 is not an official ROBOTIS library, and we cannot provide support for it.

As per your suggestion I uploaded the ping example code in Arduino Leonardo with only change of protocol version as AX-12A motor supports Protocol 1.0, still getting the same issue. Below screenshot is for your reference.

In the screenshot you shared the Arduino IDE is showing some errors and warnings that are cut off by the end of the window. Can you share the full text of those messages?

Additionally, running the scan example (no modification is needed, it will scan both protocols and all available baudrates and settings) should allow us to confirm that we can detect any connected DYNAMXIEL actuator at all.

Screenshots of ping code and serial output are attached.


Screenshots of scan dynamixel code and serial monitor data are attached .