Browse Source

fixed press timing and boiler temperature

master
Barb 4 days ago
parent
commit
2f5a0aa3cb
3 changed files with 1503 additions and 1325 deletions
  1. +4
    -6
      PyCoffeeNano/PyCoffeeNano.ino
  2. +750
    -660
      PyCoffeeNano/PyCoffeeNano.ino.eightanaloginputs.hex
  3. +749
    -659
      PyCoffeeNano/PyCoffeeNano.ino.with_bootloader.eightanaloginputs.hex

+ 4
- 6
PyCoffeeNano/PyCoffeeNano.ino View File

@ -1,5 +1,3 @@
// LAST UPDATE: NOVEMBER 2024
// Pinout configuration
const int grinderPin = 9, pumpPin = 8, boilerPin = 6, powderPin = 7, wheelPin = 10, invertWheelPin = 11, powderSensorPin = 2, vaporSensorPin = 5, tempSensorPin = A7, wheelStartSensorPin = 4, wheelEndSensorPin = 3, redLED = 13, greenLED = 12;
@ -204,7 +202,7 @@ void loop() {
// making steam:
while (digitalRead(vaporSensorPin) == HIGH) {
desiredTemp = 100;
desiredTemp = 110;
Serial.write("Vapor heating\n");
delay(500);
Heat(); // Heat the boiler to vapor temperature
@ -404,7 +402,7 @@ void Press() {
while (true) {
delay(milliseconds);
if (digitalRead(wheelEndSensorPin) == HIGH) {
delay(90); // extra delay added to compensate for slightly incorrect endstop placement after repair
delay(1200); // extra delay added to compensate for slightly incorrect endstop placement after repair
digitalWrite(wheelPin, LOW);
delay(100);
Serial.write("Pressed\n");
@ -486,7 +484,7 @@ void makeCoffee() {
// care must be taken to place these functions earlier in the code, or the compiler will rightfully freak out
while (true) {
desiredTemp = 80;
desiredTemp = 90;
Heat(); // First we pre-heat the boiler
if (unrecoverableErr == 1) {
break;
@ -557,7 +555,7 @@ void makeCoffee() {
if (dry == 0) {
//digitalWrite(boilerPin, HIGH);
delay(100);
desiredTemp = 95; // temperature to try and maintain while making coffee
desiredTemp = 100; // temperature to try and maintain while making coffee
Pump(); // Pump ratio (in seconds) will be read from serial input in final release
digitalWrite(boilerPin, LOW);
}


+ 750
- 660
PyCoffeeNano/PyCoffeeNano.ino.eightanaloginputs.hex
File diff suppressed because it is too large
View File


+ 749
- 659
PyCoffeeNano/PyCoffeeNano.ino.with_bootloader.eightanaloginputs.hex
File diff suppressed because it is too large
View File


Loading…
Cancel
Save