diff --git a/include/mess_Ub_old.h b/include/mess_Ub_old.h index 5b54258..396ba42 100644 --- a/include/mess_Ub_old.h +++ b/include/mess_Ub_old.h @@ -1,8 +1,7 @@ #include -//const float MinimalSpannung = 2.85; -const float MinimalSpannung = 2.00; -float korectur = 0.8870; +const float MinimalSpannung = 3.60; +float korectur = 0.90021322; char floatString[15] = {0}; float AKKU; @@ -13,7 +12,7 @@ float getBattery(float kor = 1.000) return 3.05; #endif float valA0 = analogRead(A0); - valA0 = valA0 * 5.9; // (R1 + r1 + r2) / r2 + valA0 = valA0 * 5.4; // (R1 + r1 + r2) / r2 // r1 und r2 Spannungsteiler // r1 = 270k, r2 = 100k // Spannungsbereich = 5.2 Volt diff --git a/src/main.cpp b/src/main.cpp index e967d73..ce55251 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -176,7 +176,7 @@ void loop() { writeSystemStatus(); } else{ - Pause = interval -((endTime - startTime) * 1000); // Pause ca. 15 Minuten + Pause = interval -((endTime - startTime) * 1000); } if(Pause <=0){ Pause = 1; @@ -189,7 +189,7 @@ void loop() { ESP.deepSleep(10e6); #else writeSystemStatus(); - ESP.deepSleep(Pause); + ESP.deepSleep(Pause, WAKE_RF_DISABLED); #endif delay(100);