1. Install Python
installation is very straightforward.
2. Download SDK files
Click "Clone or Donwload" and "Download ZIP"
3. Install SDK
Extract the zip file we downloaded
open the python folder
Copy (Control + C) the path (the path may different to yours)
Open "Command Prompt" (in start menu, type 'cmd' and this icon will be appeared)
type cd and paste the path, press enter
type "python setup.py install" and done!
4. Check Your Com Port
Plug your "USB2Dynamixel" to your PC
Open "Device Manager" to check your Com Port
![]() |
![]() |
| In my case, it was COM4 |
5. Modify Com Port in the source code (.\python\tests\protocol1_0\ping.py)
# Default setting
DXL_ID = 1
BAUDRATE = 1000000
DEVICENAME = 'COM4'
6. Test (ping.py)
7. Run motor "read_write.py"
We also need to change here because AX12 returns only 2 Bytes.
Because the control table address was different. So, we need to change address.
Let's play with this code!
Conclusion
Personally, I hope there is more detailed information for the series. Robotis has a lot of Dynamixel series. I have to make a instruction table for AX12 in order to use every features of AX12. Next time, I will share you some more code for AX12.


















No comments:
Post a Comment