Skip to content

Arduino library for Dynamixel XL-320 servos

License

Notifications You must be signed in to change notification settings

RobotikUTT/XL320

 
 

Repository files navigation

Dynamixel XL-320

Dynamixel XL-320 servo library for Adruino

A Servo library for Arduino

Clone this repository into your Arduino libraries folder:

$ cd ~/Documents/Arduino/libraries/

Or download this repository as ZIP and add it from the Arduino app like this:

Sketch > Include Library > Add .ZIP Library...

Restart Arduino app. :-)

Open the example Arduino sketch to see how it works:

File > Examples > XL320 > XL320_servo_example

Hardware

DYNAMIXEL XL-320 servo manual including specifications and message sending addresses.

Wiring diagram

Looking from above, with the servo head at the top, wire the left plug of the servo to:

  • PIN1: GND
  • PIN2: 5 volts
  • PIN3: Serial TX

Dynamixel XL-320 wiring diagram

Setting the servo serial baud rate & servoID

We've included some example sketches to help test and setup your servos. Out of the box they're set to communicate via serial at 1Mbps, so you might want to set them down to something more managable by Arduino at 115200.

Follow the instructions in the sketch XL320_servo_set_baud_rate_or_id.ino and don't forget to power cycle the servos in between setting anything.

Note: when setting the ServoID, the servos default down to 9600 baud, so after you set the servoID you'll need to set the baud rate back up to 115200.

Acknowledgments

Thanks to Hackerspace Adelaide for doing this library.

About

Arduino library for Dynamixel XL-320 servos

Resources

License

Stars

Watchers

Forks

Languages

  • C++ 92.9%
  • C 7.1%