Save the user-defined robot action frames (i.e. positions[] array) to the specified file.



  • servoFrame: Variable of the AIServoFrame type.
  • filename: the name of the file. Please note that the file can only be saved to the root directory of the SD card. If you do not have an SD card in your 86Duino, saving will fail.


  • true: File was saved successfully.
  • false: File saving failed.


#include <AIServo86.h>
AIServoPort(ROBOTIS, AX12) bus;
AIServoFrame myframe;
void setup()
   bus.begin(Serial1, 1000000);
   myframe.positions[0] = 180; // set Frame content
   myframe. positions[1] = 130;
   myframe. positions[2] = 200;"frm0.txt"); // save the action frame to "frm0.txt" in the root directory of SD card
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 *