Wemos LOLIN32: Unterschied zwischen den Versionen
Reox (Diskussion | Beiträge) |
Reox (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
||
Zeile 57: | Zeile 57: | ||
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). | 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). | ||
== Battery == | |||
The battery can be connected via a JST PH2 connector. | |||
They can be bought also from Conrad: [https://www.conrad.at/de/buchsengehaeuse-kabel-phr-polzahl-gesamt-2-jst-phr-2-rastermass-2-mm-1-st-740547.html ArtNr. 740547]. | |||
== 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] |