Hey guys I am using max17043 lipo fuel guage at (SparkFun LiPo Fuel Gauge - TOL-20680 - SparkFun Electronics) with esp32 on arduino. But it is not giving me good results. Some are not stable, and some are showing me less battery capacity and there is a drop of 0.1V in voltage when we compared to multimeter. I think there is a problem with i2C of esp32. I am using 21 and 22 pins and there is a library at (SparkfunTechSupport · GitHub ... /TOL-10617), which I am using and is mentioned by sparkfun.
What I am saying is that it is not giving me results. It is not stable, means if it shows 60 %, next time it shows 58 % and after 15-20 mins it shows 51 %.
There is one idea that if I can be able to get voltage correctly through the module. So if I use a map function of arduino to map 3.5 to 4.2 into 0-100 %. Would it be correct, as I know 18650 cells can go down to 3.5V, and I can also afford to go down to 3.5V because I am using 3.3V buck converter. So I think this approach is good?