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>
//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

View File

@ -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);