1. Download RoboPlus
- http://www.robotis.com/xe/1132559
- 561MB
- Installation is straightforward. But it requires some patience..
- Perhaps... we may not need this.
2. Download 'usb2dynamixel'
3. Addpath SDK API in MATLAB
- http://support.robotis.com/ko/software/dynamixel_sdk/usb2dynamixel/windows/matlab.htm
4. Use following codes
%
% DYNAMIXEL AX-18A
%
addpath(genpath('usb2dynamixel'))
clc;
clear;
close all;
%% INITIALIZE
global_vars;
loadlibrary('dynamixel', 'dynamixel.h');
loadlibrary('dynamixel','dxl_matlab.h');
libfunctions('dynamixel');
%% CONNECT
DEFAULT_PORTNUM = 13; % COM PORT ID
DEFAULT_BAUDNUM = 1; % 1Mbps
res = connectDXL(DEFAULT_PORTNUM, DEFAULT_BAUDNUM);
%% DEFAULT SETTING
default_Vel = 100; % 0 for maximum torque
default_Pos = 0;
setVel_all(default_Vel);
setPos_all(default_Pos);
%% SET POSITION
setPos_one(1, 150);
setPos_one(2, 150);
%% DISCONNECT
disconnectDXL();
'Enginius > Hardware' 카테고리의 다른 글
Intel Up Board for Robotics (0) | 2018.06.26 |
---|---|
A3950 - Full-Bridge Motor Driver (0) | 2012.05.11 |
Anti-drop sensor module spec (4) | 2012.05.09 |
mini Pic Board and F/W (0) | 2012.03.29 |
I2C와 SMbus의 차이 (0) | 2010.05.20 |