Zeni241 wrote:
Has any body any experience of using fuel gauge,like MAX17044, MAX17048 or any other, with ESP-IDF?
Or using ADC reading is the only choice to get LiPo battery condition?
Both MAX17044 and MAX17048 have I2C interfaces. It shouldn't be hard to whip up some code to read the two chips using ESP-IDF I2C driver. Take a look at the
esp-iot-solutions repo as it contains a bunch of examples on talking to different sensors over I2C.
Using the ESP32's internal ADC is also an option (which requires less hardware and probably saves costs). But the downside to using the internal ADC is having to deal with calibrating the ADC and your circuit to get an accurate reading of the battery voltage.