PiSupply / PiJuice

Resources for PiJuice HAT for Raspberry Pi - use your Pi Anywhere
https://uk.pi-supply.com/collections/pijuice/products/pijuice-portable-power-raspberry-pi
GNU General Public License v3.0
436 stars 104 forks source link

12000mAh battery show irrelevant temperature in Pijuice #982

Open OhSoGood opened 1 year ago

OhSoGood commented 1 year ago

Hi

I have a problem with Pijuice and 12.000mAh battery: Pijuice show much higher values for temperature than in reality, which slows down or prevent battery charging as soon as the real temperature is going up.

I have dozens of Pijuice (firmware 1.6) with the 12.000mAh battery. With the help of the manufacturer, I've checked that the battery resistance is actually 10.000 ohms (10.600 to be precise), so I use the built-in profile with NTC resistance = 10.000 and NTC B =3550 (real value seems to be 3380 according to manufacturer, but that has no or limited influence on result).

With the battery charged at 97-99%, when I power on the Pijuice and the Raspberry and go to pijuice_cli,

The biggest issue is that, if the ambient temperature goes up, the temperature returned by Pijuice goes up also, reaching 55, 60, 65 °C, and so charging is halved at 49° and stops at 60°C.

I have had a look in pijuice.py and in fuel_gauge_lc709203f.c, but with no real findings. fuel_gauge_lc709203f.c is really an horrible peace of code - unbelievable to see that horror.

Are you facing the same problem? Do you have any idea how to solve this? Can I simply change the battery profile - and what in it: the temperature threshold? The NTC B or ressitance?

Thanks for your help!

OhSoGood commented 1 year ago

@shawaj : I would appreciate support on this, please. I have 100+ PiJuice facing the same issue