Hi,
I'm working on a autonomous captor that is connected to a 9V battery. The battery is connected to the VIN Pin and the GND. I would like to calculate my battery percentage.
The problem is that when I get the Vcc by doing :
ADC_MODE(ADC_VCC);
ESP.getVcc();
I'm getting the internal voltage get by the ESP. I searched on google and a lot of people are getting the same issue, some are saying that you need to do an analogRead(A0) but this is generating a soft wdt reset on my board.. I would like to know if it's possible to get the voltage on the VIN pin.
Thanks a lot in advance.