From ce3041ffc65f19bafe7aa2049a7d0cbdf5b350d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Baran=20Sch=C3=B6neberg?= Date: Sun, 13 Oct 2024 16:33:28 +0200 Subject: [PATCH] Battery Monitoring aktualisiert --- Battery-Monitoring.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Battery-Monitoring.md b/Battery-Monitoring.md index 9ada496..d0a20bb 100644 --- a/Battery-Monitoring.md +++ b/Battery-Monitoring.md @@ -15,9 +15,13 @@ Use the ADC pin (A0) to read the scaled-down voltage. The ADC on the ESP-8266 can read voltages from 0V to 1V. You need to scale down the battery voltage (up to 8.4V) to this range. -Use two resistors, R1 and R2, to create a voltage divider. The output voltage ( V_{out} ) is given by: [ V_{out} = V_{in} \times \frac{R2}{R1 + R2} ] +Use two resistors, R1 and R2, to create a voltage divider. -For example, if ( V_{in} ) is 8.4V, and you want ( V_{out} ) to be 1V: [ \frac{R2}{R1 + R2} = \frac{1}{8.4} ] Choose R1 = 7.4kΩ and R2 = 1kΩ (or any other ratio that satisfies the equation). +The output voltage ( V_{out} ) is given by: [ V_{out} = V_{in} \times \frac{R2}{R1 + R2} ] + +For example, if ( V_{in} ) is 8.4V, and you want ( V_{out} ) to be 1V: [ \frac{R2}{R1 + R2} = \frac{1}{8.4} ] + +Choose R1 = 7.4kΩ and R2 = 1kΩ (or any other ratio that satisfies the equation). * Connect the Voltage Divider: