Issue:
AX-11A connects to PC and can be controlle through DYNAMIXEL wizard. But I cant control it through OPECM board and Openm exp board downloading the program through ARDUINO IDE i have the board configured and the port chosen but it doesnt work and when i ping it it gives error code 3 TIMEOUT. How can i fix it
DYNAMIXEL Servo:
AX-12A
DYNAMIXEL Controller:
OPENCM9.04 and OPENCM exp board.
Software Interface:
Arduino IDE
PING has not been working properly for me since 2022, so I do not rely on that Function anymore. Just use the needed Functions such as dxl.setGoalPosition() or dxl.getPresentPosition() directly.
Are you using Arduino IDE 2.3.6? For some reasons, the Arduino backend does not recognize the OpenCM904 properly anymore. See picture below:
Thus when you use the OpenCM-904 and 485-EXP boards, you have to explicitly define the DXL PORT and DIRECTIONAL PIN inside your code. See Lines 19 and 21 in the previous picture. HOWEVER for your case, using AX-12A connected to the 485-EXP board, you will need to use Serial3 and 22, i.e.:
#define DXL_SERIAL Serial3
const int DXL_DIR_PIN = 22;
In short, you cannot rely on the big chunk of if defined() etc… inside the ROBOTIS sample sketches to set the DXL_SERIAL and DXL_DIR_PIN properly for the user anymore (see picture below).
Also because you are using AX-12s, you need to specify DXL Protocol 1
const float DXL_PROTOCOL_VERSION = 1.0; (Line 24)
Your system should work with these settings, if not, just post your results/issues here again.