diff --git a/src/main.cpp b/src/main.cpp index 09f739e..a2a0664 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -27,7 +27,7 @@ unsigned long lastWebSocket = 0; const unsigned long WS_INTERVAL = 500; float temperature = 0; -float targetTemp = 460; +float targetTemp = 370.0f; // default target temp for preheating, adjustable via UI unsigned long lastSwitch = 0; float pwmSwitchDelayOn = 2000; // 2s @@ -35,8 +35,8 @@ float pwmSwitchDelayOff = 4000; // 4s float power = 100; -float kp = 0.6; -float ki = 0.1; +float kp = 0.55; +float ki = 0.005; float kd = 0.0; // Heating modes. PREHEAT, PAUSE and BAKING are all PI-regulated and only @@ -402,12 +402,13 @@ void setup() { Serial.begin(9600); pinMode(relay, OUTPUT); - digitalWrite(relay, LOW); // boot with heating OFF; the PI loop drives the relay initWiFi(); initLittleFS(); initWebSocket(); + digitalWrite(relay, LOW); // boot with heating OFF; the PI loop drives the relay + // Web Server Root URL server.on("/", HTTP_GET, [](AsyncWebServerRequest *request) { request->send(LittleFS, "/index.html", "text/html"); }); diff --git a/static/oven.png b/static/oven.png deleted file mode 100644 index cd85248..0000000 Binary files a/static/oven.png and /dev/null differ