A library to control MX28 servos. It could also be used with the rest of the MX series servos.

Dependents:   IDcheck

Fork of MX28 by Georgios Petrou

This library is based on Robotis documentation regarding the dynamixel and MX28 protocols

It is part of a bigger project involving seven mbeds to control a hexapod robot.

I have not tried to control other MX series servos, but it should be possible to use this library with minor modifications.

Files at this revision

API Documentation at this revision

Comitter:
GIPetrou
Date:
Wed Apr 03 16:44:50 2013 +0000
Parent:
1:5f537df9dca8
Commit message:
Updated code to work with latest mbed version

Changed in this revision

MX28.h Show annotated file Show diff for this revision Revisions of this file
Protocol.h Show annotated file Show diff for this revision Revisions of this file
Utilities.h Show annotated file Show diff for this revision Revisions of this file
--- a/MX28.h	Wed Sep 12 15:59:54 2012 +0000
+++ b/MX28.h	Wed Apr 03 16:44:50 2013 +0000
@@ -1,5 +1,5 @@
 /* Dynamixel MX28 servo library
- * Copyright (c) 2012 Georgios Petrou, MIT License
+ * Copyright (c) 2012-2013 Georgios Petrou, MIT License
  *
  * Permission is hereby granted, free of charge, to any person obtaining a copy of this software 
  * and associated documentation files (the "Software"), to deal in the Software without restriction, 
@@ -21,6 +21,7 @@
 #define MX28_H
 
 #include "mbed.h"
+#include "SerialHalfDuplex.h"
 #include "Protocol.h"
 #include "Utilities.h"
 
--- a/Protocol.h	Wed Sep 12 15:59:54 2012 +0000
+++ b/Protocol.h	Wed Apr 03 16:44:50 2013 +0000
@@ -17,8 +17,8 @@
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  */
  
-#ifndef PROTOCOL_H
-#define PROTOCOL_H
+#ifndef MX28_PROTOCOL_H
+#define MX28_PROTOCOL_H
 
 #include "mbed.h"
 
@@ -121,4 +121,4 @@
     WAIT_ON_CHECK_SUM
 };
 
-#endif // PROTOCOL_H 
\ No newline at end of file
+#endif // MX28_PROTOCOL_H 
\ No newline at end of file
--- a/Utilities.h	Wed Sep 12 15:59:54 2012 +0000
+++ b/Utilities.h	Wed Apr 03 16:44:50 2013 +0000
@@ -16,8 +16,8 @@
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  */
  
-#ifndef UTILITIES_H
-#define UTILITIES_H
+#ifndef MX28_UTILITIES_H
+#define MX28_UTILITIES_H
 
 #include "mbed.h"
 
@@ -84,5 +84,5 @@
         static int32_t ConvertUInt8ArrayToInt32(uint8_t* data);
 };
 
-#endif // UTILITIES_H 
+#endif // MX28_UTILITIES_H