Hi, I successfully run a sketch derived from your example to measure battery power (https://github.com/HelTecAutomation/Heltec_ESP32/blob/master/examples/ESP32/ADC_Read_Voltage/Battery_power/Battery_power.ino).
I have some questions about this:
-
I measure port 36 (Vin about 150 to 170 mV ) and 37 (Vbat, between 2000 and 2800 mV). Vbat is the battery voltage. But what is Vin on port 36?
-
In the documentation it is mentioned that GPIO 21 controls the battery voltage towards pin 37 and Vext. In the sketch I do not see code to set or reset GPIO 21. Why is that?
Thanks,
Fred