Browse Source

recalibrated wheel sensor times

master
Barb 1 month ago
parent
commit
0c3df47b74
1 changed files with 6 additions and 6 deletions
  1. +6
    -6
      PyCoffeeNano/PyCoffeeNano.ino

+ 6
- 6
PyCoffeeNano/PyCoffeeNano.ino View File

@ -372,7 +372,7 @@ void Press() {
// Reset Press before every coffee
digitalWrite(invertWheelPin, HIGH);
delay(1000);
delay(100);
digitalWrite(invertWheelPin, LOW);
digitalWrite(wheelPin, HIGH);
@ -381,7 +381,7 @@ void Press() {
while (true) {
delay(milliseconds);
if (digitalRead(wheelEndSensorPin) == HIGH) {
delay(900); // extra delay added to compensate for slightly incorrect endstop placement after repair
delay(90); // extra delay added to compensate for slightly incorrect endstop placement after repair
digitalWrite(wheelPin, LOW);
delay(100);
Serial.write("Pressed\n");
@ -391,7 +391,7 @@ void Press() {
delay(100);
Serial.write("p-end of pressing not detected\n");
digitalWrite(wheelPin, LOW);
unrecoverableErr = 1;
unrecoverableErr = 1; //temporarily disabled because of failing sensor(s)
break;
}
}
@ -406,7 +406,7 @@ void unPress() {
// Reset Press before every coffee
digitalWrite(wheelPin, HIGH);
delay(1500);
delay(150);
digitalWrite(wheelPin, LOW);
digitalWrite(invertWheelPin, HIGH);
@ -415,7 +415,7 @@ void unPress() {
while (true) {
delay(milliseconds);
if (digitalRead(wheelStartSensorPin) == HIGH) {
delay(1500);
delay(1000);
digitalWrite(invertWheelPin, LOW);
delay(100);
Serial.write("UnPressed\n");
@ -425,7 +425,7 @@ void unPress() {
delay(100);
Serial.write("u-end of unPressing not detected\n");
digitalWrite(invertWheelPin, LOW);
unrecoverableErr = 1;
//unrecoverableErr = 1; //temporarily disabled because of failing sensor(s)
break;
}
}


Loading…
Cancel
Save