2024-10-0101 UB Messung überprift.
This commit is contained in:
parent
68a61690bf
commit
dfcb03418a
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user