Edit on GitHub


DYNAMIXEL Shield was created to use RC100 and DYNAMIXEL on arduino board. We provide dynamixel library for DYNAMIXEL Shield, it can help you to use DYNAMIXEL easily.

This product does not contain Arduino Uno. Arduino Uno should be purchased separately.


Item Details
Operating Voltage 7.4V (XL-320) ~ 24V (PRO / X Series)
Maximum Current 1A(Arduino), 10A(Terminal Connector)


DYNAMIXEL Series          
AX AX-12W AX-12+/12A AX-18F/18A    
RX 1 RX-10 RX-24F RX-28 RX-64  
DX 1 DX-113 DX-116 DX-117    
EX 1 EX-106+        
MX MX-12W MX-28, MX-28(2.0) MX-64, MX-64(2.0) MX-106, MX-106(2.0)  
XL XL320 XL430-W250      
XM XM430-W210 XM430-W350 XM540-W150 XM540-W270  
XH XH430-W210
PRO H H42-20-S300-R H54-100-S500-R H54-200-S500-R    
PRO M M42-10-S260-R M54-40-S250-R M54-60-S250-R    
PRO L 1 L42-10-S300-R L54-30-S500-R L54-30-S400-R L54-50-S500-R L54-50-S290-R
PRO H(A) H42-20-S300-R(A) H54-100-S500-R(A) H54-200-S500-R(A)    
PRO M(A) M42-10-S260-R(A) M54-40-S250-R(A) M54-60-S250-R(A)    
PH PH42-020-S300-R PH54-100-S500-R PH54-100-S500-R    
PM PM54-060-S250-R PM54-040-S250-R PM42-010-S260-R    

1 RX, DX, EX, PRO L series require additional configuration in the source code.


Pin No. Pin Name Description
7 SW UART RX Caution2 SoftwareSerial
8 SW UART TX Caution2 SoftwareSerial
Item Description Note
DYNAMIXEL Port TTL, TTL(XL-320), RS485 Caution3
Power Switch Power SW (DYNAMIXEL Port Power Switch) -
UART Switch UART SW (Upload or DYNAMIXEL Select Switch) Caution1
Jumper Cap Power Source Selection Read ‘Connecting Power’

Caution1 When uploading firmware using USB port, you should switch the UART SW(SW_2) to Upload mode. When you select the UART SW (SW_2) to DYNAMIXEL mode, you can use DYNAMIXEL but USB port.
Caution2 If you are using a board that does not support SoftwareSerial(like SAMD, etc..), you cannot use pins 7 and 8 for UART purposes.
Caution3 TTL, TTL (XL-320) and RS485 connectors are all connected in parallel in one serial.

Connecting Power

Connect VIN Disconnect VIN


Upload Switch

DYNAMIXEL Power Switch

DYNAMIXEL Shield Libraries


Install Library

There are three ways to add libraries to the Arduino IDE.

Each way is described in detail in the Arduino Official Guide, so please refer to it if necessary.
Below is an example of using the Library Manager.

In order to use DYNAMIXEL Shield library(v0.1.0 or above), DYNAMIXEL2Arduino library must be installed.

If you have successfully installed the library, you’ll be able to find several examples of DynamixelShield in the examples.

Library API

DYNAMIXELShield(v0.1.0 or above)

WARNING : In order to use DYNAMIXEL Shield library(v0.1.0 or above), DYNAMIXEL2Arduino library must be installed.

Dynamixel2Arduino Class

Master Class

Dynamixel2Arduino class inherits below public functions from the Master class.

RobotisRemoteController Class


WARNING : This version of API is deprecated.

bool begin(uint32_t baud_rate = 57600, uint8_t protocol_version = DXL_PACKET_VER_2_0);

bool scan(void);
bool ping(uint8_t id = DXL_GLOBAL_ID);
bool addMotor(uint8_t id, uint8_t model);
bool setProtocolVersion(uint8_t version);
bool write(uint8_t id, uint16_t addr, uint8_t *p_data, uint16_t length, uint32_t timeout);
bool read(uint8_t id, uint16_t addr, uint8_t *p_data, uint16_t length, uint32_t timeout);

uint8_t getDxlCount(void);
uint8_t getDxlID(uint8_t index);
uint32_t getErr(void);
void clearErr(void);

bool reboot(uint8_t id);
bool reset(uint8_t id);

bool setID(uint8_t id, uint8_t new_id);
bool setBaud(uint8_t id, uint32_t new_baud);

bool ledOn(uint8_t id);
bool ledOff(uint8_t id);

bool torqueOn(uint8_t id);
bool torqueOff(uint8_t id);

bool setJointMode(uint8_t id);
bool setWheelMode(uint8_t id);

bool    setGoalPosition(uint8_t id, uint32_t position);
int32_t getGoalPosition(uint8_t id);
int32_t getCurPosition(uint8_t id);

bool    setGoalSpeed(uint8_t id, int32_t speed);
int32_t getGoalSpeed(uint8_t id);   
int32_t getCurSpeed(uint8_t id);  

bool    setGoalAngle(uint8_t id, int32_t angle);
int32_t getGoalAngle(uint8_t id);
int32_t getCurAngle(uint8_t id);

bool syncWriteBegin(void);
bool syncWriteEnd(void);