From d5bc0b5feea114b6a2c77bac326ce1a544b25a59 Mon Sep 17 00:00:00 2001 From: Simon Zeyer Date: Wed, 5 Aug 2020 18:54:49 +0000 Subject: [PATCH 1/3] Update logging in Steuerung_Truhen.ino add Truhenname in logs, empty line after one mess --- Steuerung_Truhen.ino | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Steuerung_Truhen.ino b/Steuerung_Truhen.ino index 3153a83..c0604d0 100644 --- a/Steuerung_Truhen.ino +++ b/Steuerung_Truhen.ino @@ -38,9 +38,8 @@ class Truhe { void log(File logfile) { //Serial.println(String(_name) + " log()"); - String logdata = String(0) + "\t\t" + String(_cur_temp) + "\t" + String(_stat); + String logdata = String(_name) + "\t" + String(_cur_temp) + "\t" + String(_stat); logfile.println(logdata); - logfile.println(); } void updateLCD(int row) { @@ -107,7 +106,7 @@ class Truhe { // measurements from the sensor. In the case of the DHT22, // this value is of 2 seconds [1]. static const unsigned long MESS_REFRESH_INTERVAL = 10000; // ms getMinimumSamplingPeriod == 2 sec -static const unsigned long SCHALT_REFRESH_INTERVAL = 60000; // ms +static const unsigned long SCHALT_REFRESH_INTERVAL = 10000; // ms static const unsigned long LCD_REFRESH_INTERVAL = 500; // ms const int uT = 1; //Abschalt-Temperatur in °C const int oT = 6; //Einschalt-Temperatur in °C @@ -179,6 +178,7 @@ void loop() { truhen[i].log(logfile); logfile.close(); } + logfile.println(); } //Serial.println("Schaltintervall: "+ String(millis() - last_schalt_time) + " " + String(SCHALT_REFRESH_INTERVAL)); if(millis() - last_schalt_time >= SCHALT_REFRESH_INTERVAL || last_schalt_time == 0) From c1e3c26ba8771024215fce55a0e038ac307fd815 Mon Sep 17 00:00:00 2001 From: Simon Zeyer Date: Wed, 5 Aug 2020 18:56:38 +0000 Subject: [PATCH 2/3] Update watchdog in Steuerung_Truhen.ino watchdog 5S is not available in standard arduino uno class --- Steuerung_Truhen.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Steuerung_Truhen.ino b/Steuerung_Truhen.ino index c0604d0..7c8abb2 100644 --- a/Steuerung_Truhen.ino +++ b/Steuerung_Truhen.ino @@ -161,7 +161,7 @@ void setup() { logfile.close(); lcd.clear(); - wdt_enable(WDTO_5S); // Watchdog auf 1 s stellen + wdt_enable(WDTO_1S); // Watchdog auf 1 s stellen Serial.println("Setup fi"); } From 812537cf606f36bff80bd764326bf584c511e8b5 Mon Sep 17 00:00:00 2001 From: Simon Zeyer Date: Wed, 5 Aug 2020 18:57:52 +0000 Subject: [PATCH 3/3] Update einschalttemperatur in Steuerung_Truhen.ino MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit das bier muss kühler sein --- Steuerung_Truhen.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Steuerung_Truhen.ino b/Steuerung_Truhen.ino index 7c8abb2..6a5836b 100644 --- a/Steuerung_Truhen.ino +++ b/Steuerung_Truhen.ino @@ -109,7 +109,7 @@ static const unsigned long MESS_REFRESH_INTERVAL = 10000; // ms getMinimumSampli static const unsigned long SCHALT_REFRESH_INTERVAL = 10000; // ms static const unsigned long LCD_REFRESH_INTERVAL = 500; // ms const int uT = 1; //Abschalt-Temperatur in °C -const int oT = 6; //Einschalt-Temperatur in °C +const int oT = 4; //Einschalt-Temperatur in °C Truhe truhen[] = { Truhe("Truhe 1", 2, 8, 0),