2024-10-0101 UB Messung überprift.

This commit is contained in:
hans-jurgen 2024-10-01 23:59:46 +02:00
parent 68a61690bf
commit dfcb03418a
2 changed files with 5 additions and 6 deletions

View File

@ -1,8 +1,7 @@
#include <Arduino.h> #include <Arduino.h>
//const float MinimalSpannung = 2.85; const float MinimalSpannung = 3.60;
const float MinimalSpannung = 2.00; float korectur = 0.90021322;
float korectur = 0.8870;
char floatString[15] = {0}; char floatString[15] = {0};
float AKKU; float AKKU;
@ -13,7 +12,7 @@ float getBattery(float kor = 1.000)
return 3.05; return 3.05;
#endif #endif
float valA0 = analogRead(A0); 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 und r2 Spannungsteiler
// r1 = 270k, r2 = 100k // r1 = 270k, r2 = 100k
// Spannungsbereich = 5.2 Volt // Spannungsbereich = 5.2 Volt

View File

@ -176,7 +176,7 @@ void loop() {
writeSystemStatus(); writeSystemStatus();
} }
else{ else{
Pause = interval -((endTime - startTime) * 1000); // Pause ca. 15 Minuten Pause = interval -((endTime - startTime) * 1000);
} }
if(Pause <=0){ if(Pause <=0){
Pause = 1; Pause = 1;
@ -189,7 +189,7 @@ void loop() {
ESP.deepSleep(10e6); ESP.deepSleep(10e6);
#else #else
writeSystemStatus(); writeSystemStatus();
ESP.deepSleep(Pause); ESP.deepSleep(Pause, WAKE_RF_DISABLED);
#endif #endif
delay(100); delay(100);