esp32C6 , GPIO0 battery level reading lower than expected now... why?

userHead pippo.pluto 2025-11-25 05:38:49 292 Views1 Replies

I have been using since many months the GPIO0 to read the battery values of the lipo connected to my Firebeetle 2 esp32c6 (mini and not, SKU : DFR1075 rev 1.0 & SKU : DFR1117 rev. 1.1); everything worked well but now, recompiling the sketchs in Arduino IDE with the latest updates I start sistematically to see a much lower reading ( i.e. raw of  1505  instead of the previous 2040 when charging @about 4.1V). Has something changed in the core or in the recent libraries that has a nug in the reading…????

The same device, programmed in ESPHOME , reads correctly on GPIO0 the 4,1V …..

 

Does it happen only to me..?

 

Thanks a lot.

F

2025-11-25 06:42:14

I could find the reason: the ESP32 library ( I was using 3.3.4) from espressif introduces a low reading bug ( i guess also on other ADC.. ) from rev. 3.0.3. I downgraded to 3.0.2 and everything works well again now.. GPIO0 reads accurately like before.. ;-)

userHeadPic pippo.pluto