Wemos LOLIN32: Unterschied zwischen den Versionen
Reox (Diskussion | Beiträge) |
Reox (Diskussion | Beiträge) |
||
Zeile 56: | Zeile 56: | ||
GND | GND | ||
Now you can measure the voltage on the battery using the ADC. As the ADC is 12bit, you can get the actual voltage by multiplying the reading by ((27+100)/100) * 3.3 / 2**12 | Now you can measure the voltage on the battery using the ADC. As the ADC is 12bit, you can get the actual voltage by multiplying the reading by ((27+100)/100) * 3.3 / 2**12, or in more general terms: ((R1 + R2) * V_ref) / (R2 * 2**Resolution). | ||
== Example Projects == | == Example Projects == | ||
* Temperature and Humidity measurement using collectd as datalogger: [https://github.com/reox/esp32_sht21_collectd ESP32_SHT21_collectd] | * Temperature and Humidity measurement using collectd as datalogger: [https://github.com/reox/esp32_sht21_collectd ESP32_SHT21_collectd] |