AIServoFrameRobotis constructor



Initialize the AIServoFrameRobotis class.

AIServoFrameRobotis is inherited from the AIServoFrame class and you can call the function members inside the AIServoFrame class such as positions[], setPositions(), playPositions(), save() to set, save or play the Frame directly.


AIServoFrameRobotis myframe
AIServoFrameRobotis myframe(filename, motionname, step)


  • filename: The name of the .mtn file generated by the RoboPlus Motion editor. When a filename is specified, the specified file will be loaded during the initialization of the AIServoFrameRobotis class. Please note that currently only the root directory of the SD card is supported for downloading files. If your 86Duino does not have an SD card on it or if the SD card does not contain the specified file, loading will fail.
  • motionname: the name of the Motion you want to load into the .mtn file.
  • step: the Step number of the Motion you want to read.


#include <AIServo86.h>
AIServoPort(ROBOTIS, AX12) bus;
AIServo myservo0;
AIServo myservo1;
AIServo myservo2;
AIServoFrameRobotis myframe("", "abc", 1); // Read Step 1 of abc in file
void setup()
   bus.begin(Serial1, 1000000);
   myservo0. attach(bus, 21);
   myservo1. attach(bus, 23);
   myservo2. attach(bus, 25);
   myframe.playPositions(myservo0, myservo1, myservo2); // play action
void loop() {}

See also

Libraries Reference Home

The text of the 86Duino reference is a modification of the Arduino reference and is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.

Leave a Comment

Your email address will not be published. Required fields are marked *