Author: Yunki hong(05/2019), Myong Geon Kim(07/2019), Brandon Seo(Current) Email: [email protected]
Date: Last modified on <06/20/19>
Keywords: Tutorial, how to, step-by-step, dynamixel-sdk
This tutorial offers you the step-by-step method to control Dynamixel in Windows environment.
If you are not familiar with coding, you would better study basic concept of CPP language programming before you begin this project.
Even though if this is the first time for you to programming something, you don’t have to worry.
Because all we need to do is using open source library that had been already built by somebody.
So, focus on that point as you proceed this project.
And ROBOTIS, which is the company produce Dynamixel, posted a nice manual and quick start video about Dynamixel SDK on their website.
You also can learn a lot by following the manual and videos.
Therefore, lock and load your confidence! Let’s fire this up!
Readers of this tutorial assumes the reader has the following background and interests:
* Basic background of CPP
The rest of this tutorial is presented as follows:
0. Install Visual Studio
You can download visual studio on this website.
1. Install Dynamixel SDK. & Wizard
Download Dynamixel SDK.
In this web page, you can see Direct Download link of Dynamixel SDK.
Download it and unzip it to any folder you want.
And then, Let’s download ROBOPLUS
ROBOPLUS is the software for ROBOTIS products based on GUI.
It is integrated software of various functions. What are we specially going to use is Dynamixel Wizard.
It helps you to manage your Dynmaixel directly.
You can connect Dynamixels to PC with Dynamixel Wizard so you can check some information and status of your Dynamixels.
Click the link below
You would find RoboPlus tab. Choose OS version that matches to your PC.
Most of the case you may need 22.214.171.124 Windows Vista/7/8/10 (exe)
Device set up.
The easiest way to understand which part goes which is to watch this video and follow it.
And then, read this page carefully or just follow below shortcut.
Flip the switch to TTL because we are using MX-series Dynamixel when you are using USB2.
Library set up
Before practicing SDK sample code, we need to build the library we had downloaded.
follow the instruction in above URL.
Check the set up and practice SDK sample code
you need control table address for device checking and practice.
you can find it in this webpage.
You also need to change the value of following parameters via Dynamixel Wizard before you run the examples.
C++ read write protocol 1.0 (position control)
This example writes Goal Position to Dynamixel and reads Present Position of Dynamixel until it stops moving.
The functions that are related with the Read and the Write handle the number of items which are near each other in the Dynamixel control table, such as the goal position and the goal velocity.
(1) Run the project solution file (.sln)
in the [DynamixelSDK folder]/c/example/protocol1.0/read_write/win64(32)] directory.
(2) Change parameters like below image
You can check which port is being used on your controller in Device Manager.
(3) Click on the Local Windows Debugger button to run the program.
For questions, clarifications, etc, Email: [email protected]