potMove

potMove

move mimicArm robot arm with buttons and potentiometer

Using the inputBox we can move the potentiometer.

Commands Used

robotActivate();

robotMove(x,y);

inputBoxActivate();

readPot();

potMove.ino


Cut and paste code:

#include <robot.h>
#include <inputBox.h>

void setup() {
  robotActivate();    //start communication with the robot
  inputBoxActivate(); //start communication with the inputBox

}

void loop() {
  robotMove(2, readPot());             //use pot to move in/out

}