2025-12-1900 UB-korectur geändert

This commit is contained in:
2025-12-19 17:27:46 +01:00
parent 618e9c849b
commit 8768893eb8
2 changed files with 3 additions and 3 deletions

View File

@@ -2,7 +2,7 @@
float MinimalSpannung = MinimalSpannungAkku;
float korectur = 0.8870;
float korectur = 0.987572260573;
char floatString[15] = {0};
float AKKU;
@@ -18,6 +18,7 @@ float getBattery(float kor = 1.000)
// r1 = 270k, r2 = 100k
// Spannungsbereich = 5.2 Volt
valA0= valA0 / 1024;
Serial.printf("Batterie:\t\t %f V\n", valA0);
valA0 = valA0 * kor;
dtostrf(valA0,7,2,floatString);
Serial.printf("Batterie:\t\t %s V\n", floatString);

View File

@@ -105,8 +105,7 @@ void setup() {
#endif
if (!F_ADS1115 == true){
AKKU = getBattery(korectur); // ca. 170 ms
Serial.println("ALTE UB MESSUNG:");
Serial.println(AKKU);
Serial.printf("ALTE UB MESSUNG:\t\t%2.2f \n", AKKU);
}
else{
MessungADS();