Robotis Dynamixel MX-12W Servo Library

Dependents:   SpindleBot_1_5b Utilisatio_MX12_V4

/media/uploads/labmrd/mx12.jpg

This is my attempt to adapt Chris Styles's AX12 library to work with my Dynamixel MX12 servos. This library is still very much a work in progress, and it may have some/many errors in it, but hopefully I will keep improving it to bring it up to snuff.

Dynamixel aficionados should also check out This MX28 library for a completely separate library that provides very similar functionality, and I wish I had known it existed before I started my work...

minimal example

#include "mbed.h"
#include "MX12.h"

int main() {

  MX12 mymx12 (p9, p10, 1);           // ID=1

  while (1) {
      mymx12.Set_Goal_Position(0);    // go to 0 degrees
      wait (2.0);
      mymx12.Set_Goal_Position(300);  // go to 300 degrees
      wait (2.0);
  }
}

History

Now with buffer chip! default tip

2015-02-10, by labmrd [Tue, 10 Feb 2015 21:52:40 +0000] rev 5

Now with buffer chip!


More output on scan

2015-01-29, by labmrd [Thu, 29 Jan 2015 22:24:13 +0000] rev 4

More output on scan


More error checking

2015-01-29, by labmrd [Thu, 29 Jan 2015 22:23:20 +0000] rev 3

More error checking


Fixed typo

2015-01-26, by labmrd [Mon, 26 Jan 2015 04:24:10 +0000] rev 2

Fixed typo


Re-made to include all possible Object Dictionary entries

2015-01-26, by labmrd [Mon, 26 Jan 2015 04:02:37 +0000] rev 1

Re-made to include all possible Object Dictionary entries


Adapting AX12 library to include more MX12 commands

2014-11-25, by labmrd [Tue, 25 Nov 2014 03:07:36 +0000] rev 0

Adapting AX12 library to include more MX12 commands