Movement live controller and Arduino export documentation
Documentation

Live controller

  • You can start the Live controller by pressing the Record with live controller button in the Movement library
  • Live controller works with a mobile touch device or Web browser
  • Live controller is an experimental demo version currently. It sends all movements to all connected devices.
  • Contact info@gigabrain.io if you want to try out live controlling

Recording a movement for Arduino

  • With the Live controller click on Zoom Control to record a movement for Arduino device or other devices as well.
  • Configure reverse, offset and links for controllers
  • Fill Recording name field and press Record
  • Move the control circles the way you want the servos to move
  • Press record again to stop the recording
  • Press Save button next to the recording to save it to the Movement library

Exporting movement for Arduino

  • In movement library choose a movement and press the Export / Arduino button
  • Download starts automatically and saves the .ino file to your local computer
  • Open the .ino file with Arduino IDE
  • Update your Arduino board's pins that are connected to servos to the array servopins.
  • Example if you have 4 servos to control with left and right side controllers.
  • Left side X controller l1 to pin 3, left side Y controller l2 to pin 5, right side X controller r1 to pin 6, right side Y controller r2 to pin 7.
  • Replace this line in your code
  • int servopins[] = {6,7,-1,-1,-1,-1,-1,-1,-1,3,5,-1,-1,-1,-1,-1,-1,-1,-1 };
    										
  • If you want the movement to repeat replace the following line
  • char repeat = 1;
    										
  • Then upload the file to your Arduino board and the movement sequence starts
  • If you have an error when uploading
  • Sketch uses 7866 bytes (25%) of program storage space. Maximum is 30720 bytes.
    
    Global variables use 4444 bytes (216%) of dynamic memory, leaving -2396 bytes for local variables. Maximum is 2048 bytes.
    Not enough memory; see http://www.arduino.cc/en/Guide/Troubleshooting#size for tips on reducing your footprint.
    Error compiling for board Arduino Duemilanove or Diecimila.
    										
  • Then your Arduino is a model that does not have enough memory for the full movement.
  • Then in the Movement list choose an option from the dropdown Arduino compressed high.
  • This downloads every 5th movement sequence to the Arduino script if you have a long movement this will reduce the amount of space.
  • You can also manually set the compress parameter to the Arduino file download URL.