I have created a small program that moves the arm but the robot will not do all of the program. It will calibrate then just wait, if i open a console sometimes the robot will go back thru calibration. Below is code.
#include <EEPROM.h>
#include <Wire.h>
#include <Servo.h>
#include <Servo.h>
#include “uarm_calibration.h”
#include “uarm_library.h” //name of uArm Library
const int value = 0; // value is the data recevied
void setup() {
Wire.begin(); // join i2c bus (address optional for master)
calib.calibrations();
delay(5000);
}
void loop() {
uarm.moveTo(80, -20, 20, 45, 4); //move uArm end effect to coordinate x=0, y=-20, z=20 from current location
delay(4000);
uarm.moveTo(-80, -40, 20, 45, 4); //move uArm end effect to coordinate x=0, y=-20, z=20 from current location
delay(4000);
// pulse one
uarm.moveTo(80, -20, 20, 45, 4); //move uArm end effect to coordinate x=0, y=-20, z=20 from current location
delay(4000);
uarm.moveTo(-80, -40, 20, 45, 4); //move uArm end effect to coordinate x=0, y=-20, z=20 from current location
delay(4000);
// pulse two
uarm.moveTo(80, -20, 20, 45, 4); //move uArm end effect to coordinate x=0, y=-20, z=20 from current location
delay(4000);
uarm.moveTo(-80, -40, 20, 45, 4); //move uArm end effect to coordinate x=0, y=-20, z=20 from current location
delay(4000);
// pulse three
uarm.moveTo(80, -20, 20, 45, 4); //move uArm end effect to coordinate x=0, y=-20, z=20 from current location
delay(4000);
uarm.moveTo(-80, -40, 20, 45, 4); //move uArm end effect to coordinate x=0, y=-20, z=20 from current location
delay(4000);
// pulse four
// now want a delay of 696 seconds
delay(695000);
// now do it all over again
}