Zum Inhalt springen

Wemos LOLIN32: Unterschied zwischen den Versionen

Reox (Diskussion | Beiträge)
Keine Bearbeitungszusammenfassung
Reox (Diskussion | Beiträge)
Zeile 41: Zeile 41:
  i2c.scan()
  i2c.scan()


== Open Questions ==
== Battery Monitoring ==


* Can you monitor the battery voltage? Schematic says no...
Unfortunately, no direct method of battery voltage measurement is built into the system.
But it should be quite easy to implement such a thing: Use a voltage divider on the battery to get a 3.3V max. For a 4.2V cell, this can be achieved using a 27k and 100k resistor.
 
  ^  V_bat
  |
  R1 = 27k
  |
  +----o ADC
  |
  R2 = 100k
  |
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


== 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]