Keyestudio 4DOF Manual page 101

Robot arm kit
Hide thumbs Also See for 4DOF:
Table of Contents

Advertisement

z2 = digitalRead(left_key); // read the value of left Z
Serial.print("right_X = "); // on the serial monitor, print out right_X =
Serial.println(x1 ,DEC); // print out the value of right X and line wrap
Serial.print("right_Y = ");
Serial.println(y1 ,DEC);
//Serial.print("right_key = ");
//Serial.println(z1 ,DEC);
// Serial.println("**********right**********");
/*Serial.print("left_X = ");
Serial.println(x2 ,DEC);
Serial.print("left_Y = ");
Serial.println(y2 ,DEC);
Serial.print("left_key = ");
Serial.println(z2 ,DEC);
Serial.println("*********left***********");*/
delay(200);
}
**************************************************************************************
Test Result:
Hook it up and upload well the code. Connect the V4.0 to
computer using a USB cable, then open the serial monitor and
98

Advertisement

Table of Contents
loading

Table of Contents