diff --git a/arm-mitt-Body.stl b/arm-mitt-Body.stl new file mode 100644 index 0000000..9eb87a5 Binary files /dev/null and b/arm-mitt-Body.stl differ diff --git a/arm-mitt.FCStd b/arm-mitt.FCStd index e3e56c4..0599565 100644 Binary files a/arm-mitt.FCStd and b/arm-mitt.FCStd differ diff --git a/arm-untenV2-Body.stl b/arm-untenV2-Body.stl new file mode 100644 index 0000000..0194a42 Binary files /dev/null and b/arm-untenV2-Body.stl differ diff --git a/arm-untenV2.FCStd b/arm-untenV2.FCStd new file mode 100644 index 0000000..0e22389 Binary files /dev/null and b/arm-untenV2.FCStd differ diff --git a/ground.FCStd b/ground.FCStd new file mode 100644 index 0000000..c04abc2 Binary files /dev/null and b/ground.FCStd differ diff --git a/ground.stl b/ground.stl new file mode 100644 index 0000000..90724be Binary files /dev/null and b/ground.stl differ diff --git a/roboterarm/roboterarm.ino b/roboterarm/roboterarm.ino index 03fa574..2fd510d 100644 --- a/roboterarm/roboterarm.ino +++ b/roboterarm/roboterarm.ino @@ -17,8 +17,8 @@ void setup () { Serial.begin(9600); pinMode(SW_pin, INPUT); digitalWrite(SW_pin, HIGH); - pinMode(leftButton, INPUT_PULLUP); - pinMode(rightButton, INPUT_PULLUP); + pinMode(leftButton, INPUT); + pinMode(rightButton, INPUT); } @@ -42,10 +42,14 @@ int currentYState = ServoBase.read(); if (Y_State > 524) { int newYState = currentYState + 1; ServoBase.write(newYState); + Serial.print("arm base movement"); + Serial.print("\n"); delay(15); }else if (Y_State < 502) { int newYState = currentYState - 1; ServoBase.write(newYState); + Serial.print("arm base movement"); + Serial.print("\n"); delay(15); } @@ -58,11 +62,15 @@ int currentXState = ServoArmOne.read(); if (X_State > 524) { int newXState = currentXState + 1; ServoArmOne.write(newXState); + Serial.print("arm one movement"); + Serial.print("\n"); delay(15); }else if (X_State < 502) { int newXState = currentXState - 1; ServoArmOne.write(newXState); + Serial.print("arm one movement"); + Serial.print("\n"); delay(15); } @@ -72,10 +80,10 @@ int currentXState = ServoArmOne.read(); int currentStateLeftButton = digitalRead(leftButton); int currentStateRightButton = digitalRead(rightButton); int currentStateArmTwo = ServoArmTwo.read(); -Serial.print("button: "); +/*Serial.print("button: "); Serial.print(currentStateLeftButton); Serial.print(currentStateRightButton); -Serial.print("\n"); +Serial.print("\n");*/ if (currentStateLeftButton == HIGH) { Serial.print("test");