Wemos LOLIN32: Unterschied zwischen den Versionen
Reox (Diskussion | Beiträge) |
Katze (Diskussion | Beiträge) K added categories |
||
(Eine dazwischenliegende Version von einem anderen Benutzer wird nicht angezeigt) | |||
Zeile 58: | Zeile 58: | ||
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)/27) * 1.1 / 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)/27) * 1.1 / 2**12, or in more general terms: ((R1 + R2) * V_ref) / (R2 * 2**Resolution). | ||
Super nice would be charge monitoring. The TL4054 can do this, you need to hookup to the PRG pin. But this results in nasty bodges on the SOT23 chip... | |||
== Battery == | == Battery == | ||
Zeile 71: | Zeile 73: | ||
* [http://esp32.net/ esp32.net] | * [http://esp32.net/ esp32.net] | ||
[[Kategorie:English]] | |||
[[Kategorie:Interessensgebiete]] |