I have purchased the AX-12A and MX-12W motors for my project and I tried to control them using OpenCM 9.04 C type combined with the expansion board 485. I also powered the Exp board with 12V, 5A SMPS connection. But when I try to program it using the Arduino IDE, it doesnt seem to work. I have checked with the port and followed youtube videos from ROBOTIS Customer Support. Can you please let me know how should I proceed?
Could you show me which youtube video did you refer to?
And please let me know which Arduino example did you upload to test your DYNAMIXEL.
Please note that if you have connected DYNAMIXEL to OpenCM9.04 EXP without ID configuration, each DYNAMIXEL is configured to ID 1 which will cause digital communication collision problem.
When configuring DYNAMIXEL for the first time, please connect only one at a time.
If you have installed DYNAMIXEL2Arduino library on your Arduino IDE, you can run below code that I modified from "position_mode" example of DYNAMIXEL2Arduino with a single AX-12A.
Thank you so much for the code. It worked. I think there was some problem with the coding part.
By the way, this was the video I had followed: https://www.youtube.com/watch?v=OvmGwDDrdu0
The hardware part worked fine but the code did not work.
Thanks a lot again :)
Can you please guide me on how to configure the IDs?
You can use DYNAMIXEL Wizard 2.0 to configure the DYNAMIXEL.
It is recommended to use U2D2 for managing DYNAMIXEL, but if you don't have one, you can use OpenCM9.04 after recovering the OpenCM9.04 firmware from R+Manager 2.0.
I tried to use the R+Manager and I am getting the following error. I don't have a U2D2. I am using the cable provided with the OpenCM9.04. Is there any tutorial I can follow? Can you send me the link to download R+Manager 2.0?
I tried another method of changing the ID. I used the Dynamixel2Arduino library and used the SetID function to change one of motor's ID. It worked.
Some of the questions I have are:
1. How do I control the motors simultaneously? With the above program I am able to move one motor at a time.
2. How to control the speed of the motors?
3. The motors rotate in counterclockwise direction when I give the position in degree value. How do I make them turn in clockwise direction?
Sorry about the confusion.
The OpenCM9.04 does not fully support AX or MX as it is originally designed for X series.
R+Manager 2.0 only supports product with Protocol 1.0 and does not support AX or MX series, therefore, please use DYNAMIXEL Wizard 2.0.
If you need to recover or update the firmware the AX and MX series, please use U2D2 and DYNAMIXEL Wizard 2.0
You can use DYNAMIXEL2Arduino examples in order to configure your AX or MX series.
1. You can add additional DYNAMIXEL to the basic example to run multiple DYNAMIXEL at the same time, but each DYNAMIXEL must have different IDs.
2. MX-12W and AX-12A has a data that controls Moving Speed(32). You can write to this address to control the speed. Please refer to eManual of each product for more details.
This can be done with DYNAMIXEL2Arduino, but it is much easier to test with U2D2 and DYNAMIXEL Wizard 2.0.