From 31fea5a2ae613d61d902b8efc0cbda35d0060b0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Baran=20Sch=C3=B6neberg?= Date: Sun, 13 Oct 2024 16:32:50 +0200 Subject: [PATCH] Battery Monitoring aktualisiert --- Battery-Monitoring.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Battery-Monitoring.md b/Battery-Monitoring.md index 1e6a834..9ada496 100644 --- a/Battery-Monitoring.md +++ b/Battery-Monitoring.md @@ -62,13 +62,13 @@ void loop() { * Analog Read: The analogRead(analogPin) function reads the voltage at the ADC pin and returns a value between 0 and 1023. -Voltage Calculation: +* Voltage Calculation: The actual voltage at the ADC pin is calculated by scaling the ADC value to the reference voltage (1V). -Battery Voltage Calculation: +* Battery Voltage Calculation: The battery voltage is then calculated using the voltage divider ratio. -Threshold Check: +* Threshold Check: The code checks if the battery voltage is below a certain threshold (e.g., 6.0V) and prints a warning message if it is. By using this setup, you can continuously monitor the battery voltage and take appropriate actions (e.g., sending alerts, shutting down the system) when the battery is running low. \ No newline at end of file