2025-12-1300

This commit is contained in:
2025-12-13 17:32:39 +01:00
parent 74c3176f2c
commit 7f3f8ff1d9
3 changed files with 11 additions and 9 deletions

View File

@@ -13,7 +13,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 * 3.7; // (R1 + r1 + r2) / r2
// r1 und r2 Spannungsteiler
// r1 = 270k, r2 = 100k
// Spannungsbereich = 5.2 Volt