user32771: I want to controll two dynamixel ax-12 servos using a arduino mega and I don`t know the commands that I should send to them using Serial.
Could anyone help me with this?
(And please keep in mind that I don`t want any more hardware. Just arduino board)

user31542: With Dynamixel library you can use servo this easily:
#include <DynamixelSerial.h>

void setup(){
   Dynamixel.begin(1000000,2);  // Inicialize the servo at 1Mbps and Pin Control 2
}

void loop(){
    Dynamixel.move(1,0);
    delay(2000);
    Dynamixel.move(1,500);
    delay(2000);
    Dynamixel.move(1,1000);
    delay(2000);
}

Example moves servo and makes pauses of 2 sec.
Installation is easy:

Installation:
Copy the files from DynamixeSerial to your IDE libraries folder.

DynamixelSerial folder can be found here: https://sourceforge.net/projects/dynamixelforarduino/files/?source=navbar

32771: <p>I want to controll two dynamixel ax-12 servos using a arduino mega and I don`t know the commands that I should send to them using Serial.</p>

<p>Could anyone help me with this?
(And please keep in mind that I don`t want any more hardware. Just arduino board)</p>
 31542: <p>With <a href="http://savageelectronics.blogspot.fi/2011/08/actualizacion-biblioteca-dynamixel.html" rel="nofollow noreferrer">Dynamixel library</a> you can use servo this easily:</p>
<pre><code>#include &lt;DynamixelSerial.h&gt;

void setup(){
   Dynamixel.begin(1000000,2);  // Inicialize the servo at 1Mbps and Pin Control 2
}

void loop(){
    Dynamixel.move(1,0);
    delay(2000);
    Dynamixel.move(1,500);
    delay(2000);
    Dynamixel.move(1,1000);
    delay(2000);
}
</code></pre>
<p>Example moves servo and makes pauses of 2 sec.</p>
<p>Installation is easy:</p>
<blockquote>
<p>Installation:</p>
<p>Copy the files from DynamixeSerial to your IDE libraries folder.</p>
</blockquote>
<p>DynamixelSerial folder can be found here: <a href="https://sourceforge.net/projects/dynamixelforarduino/files/?source=navbar" rel="nofollow noreferrer">https://sourceforge.net/projects/dynamixelforarduino/files/?source=navbar</a></p>
