pipetten erster test

This commit is contained in:
jens 2021-05-31 22:27:33 +02:00
parent b63f334298
commit d9d2b849df
7 changed files with 31 additions and 6 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -194,7 +194,7 @@ int locP_in_steps;
#ifdef jfs #ifdef jfs
int locX_max = 27000; int locX_max = 27000;
int locY_max = -31200; int locY_max = -31200;
int locZ_max = 4000; int locZ_max = 4400;
#endif #endif
// variables to hold LED data // variables to hold LED data
@ -593,7 +593,32 @@ void coordinateMove(){
Serial.print("Z Position "); Serial.print("Z Position ");
Serial.println( stepperZ.currentPosition()); Serial.println( stepperZ.currentPosition());
} }
else if (strcmp(mode, "JZ") == 0){
//Homing Z at min
stepperZ.setMaxSpeed(5000);
stepperZ.setAcceleration(2000);
int initial_homing = stepperZ.currentPosition();
homeZ = false;
while (homeZ == false){
initial_homing--;
stepperZ.moveTo(initial_homing);
stepperZ.run();
if (digitalRead(Z_LIMIT) != 1) {
delay(1);
if (digitalRead(Z_LIMIT) !=1){
homeZ = true;
}
}
}
stepperZ.setMaxSpeed(10000);
stepperZ.setAcceleration(5000);
stepperZ.setCurrentPosition(0);
stepperP.setCurrentPosition(0);
Serial.println("<Z Homed>");
}
//***** G28 - Homing Cycle ***** //***** G28 - Homing Cycle *****
// For this code to work as written the limit switches must be located at // For this code to work as written the limit switches must be located at
// X - Mininum // X - Mininum

View File

@ -1,10 +1,10 @@
int stepCounter; int stepCounter;
int steps = 2000; int steps = 2000;
#define X_STEP_PIN 54 #define X_STEP_PIN 26 // 54
#define X_DIR_PIN 55 #define X_DIR_PIN 28 // 55
#define X_EN_PIN 38 #define X_EN_PIN 24 // 38
#define X_CS_PIN 53 // EXP2_07_PIN #define X_CS_PIN 42 // EXP2_07_PIN
#define X_LIMIT 3 // X_MIN_PIN #define X_LIMIT 3 // X_MIN_PIN
void setup() void setup()