From dfcb03418a17fe820b64ae8aaa9ae05af6384af8 Mon Sep 17 00:00:00 2001 From: hans-jurgen Date: Tue, 1 Oct 2024 23:59:46 +0200 Subject: [PATCH] =?UTF-8?q?2024-10-0101=20UB=20Messung=20=C3=BCberprift.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/mess_Ub_old.h | 7 +++---- src/main.cpp | 4 ++-- 2 files changed, 5 insertions(+), 6 deletions(-) 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);