PiSupply / PiJuice

Resources for PiJuice HAT for Raspberry Pi - use your Pi Anywhere
https://www.pi-supply.com/product/pijuice-standard/
GNU General Public License v3.0
433 stars 102 forks source link

Problems with PiJuice overheating #1025

Closed sebastianpiccoli closed 5 months ago

sebastianpiccoli commented 8 months ago

Hi,

We have a Raspberry Pi3B+ 1GB RAM and a PiJuice HAT. The battery seems to constantly overheat to 42/43°C even when there is little processor usage (around 7%).

We tried to set a custom battery profile using pijuice_cli and pijuice_gui but the changes don't get saved and get back to default when we reboot the device.

We upgraded the firmware to the latest (v 1.6) but in the newer version the problem persists and we have another issue: the temperature shown is 24°C even when the battery is still around 42°C (this measured using the J2 pinouts).

So we have basically 3 issues:

Kind regards, Sebastian.

tvoverbeek commented 8 months ago

Are we talking about the PiJuice HAT or the PiJuice Zero? Only the Zero has a J2 battery connector. No way to measure the battery temperature directly, unless you process the NTC measurement yourself. How do you know profile changes are not saved? You can only save the custom profile and that is stored in non-volatie memory. This survives reboot since the custom profile is stored in non-volatile memory. Did you press the Apply button in the GUI after defining the custom profile. Also if you want to see the contents of the custom profile after selecting it you have to press the Refresh button.

sebastianpiccoli commented 8 months ago

This is a PiJuice HAT, picture attached: image

This is what we mean by J2 (image taken from here): image

Yes, of course we pressed appy in the GUI (and in the PiJuice Settings on graphic mode, since this issue is happening on both). When we reboot we see the default profile loaded, even when we have saved this: image

Kind regards, Sebastian.

sebastianpiccoli commented 7 months ago

Hello, do we have any answer for this?

tvoverbeek commented 7 months ago

Since you are using the 12000mAh battery. For the PiJuice 12000mAh battery (PIS-1129) you need different parameters in the custom profile. See https://github.com/PiSupply/PiJuice/blob/master/Software/Configs/Batteries/LIPO_12000_PIS-1129.JSON Note: charging current is not 550mA but 2.5A. Temperature limits are higher. Most important: the values for the nTC resistor are different, hence the temperature measurement will be different. Can you try these parameters and see how it goes.

sebastianpiccoli commented 7 months ago

I think you have not even read the issue! This is kind of annoying, a month without updates and then we get a answer that does not even remotely address the problem.

It does not matter which battery we use (we tried with 3 different models) the problem is that regardless of the settings you set on pijuice_cli they don't get SAVED and they go back to the default settings. So we cannot test any configuration because the changes are not saved.

I hope this time it is clearer.

Regards, Sebastian.

sebastianpiccoli commented 5 months ago

Any updates regarding this?

Regards, Sebastian.

sebastianpiccoli commented 5 months ago

Any updates regarding this?

Regards, Sebastian.

tvoverbeek commented 5 months ago

For me changing the battery profile works, also over reboots.

Starting with the default BP7X battery profile:

Screenshot 2024-02-01 at 20 30 29

Changing a few parameters: Warm and hot temperature and selecting Custom:

Screenshot 2024-02-01 at 20 36 13

Scrollling down and select Apply Settings:

Screenshot 2024-02-01 at 20 36 50

Confirmation screen:

Screenshot 2024-02-01 at 20 37 15

Then reselecting Battery Profile:

Screenshot 2024-02-01 at 20 38 36

Profile name is now Custom.

Restarting pijuice_cli still shows battery profile Custom (with the changed BP7X values). Same after reboot. Same after shutting down, removing the HAT, remounting the HAT and booting.

So I do not understand why your custom profile is not saved.

sebastianpiccoli commented 5 months ago

We change the profile to custom, apply it. We exit pijuice_cli and run it again. Everything works fine and we see the custom profile being set: 1

When we reboot it, the profile has been set to default again: 2

One thing worth mentioning is that we cannot run pijuice_cli as root, it errors out when we go to "Battery profile". We can set the values only running pijuice_cli with user pi: 3

sebastianpiccoli commented 5 months ago

Hi,

We have finally found the root of our problem. We found a script called "wakeup" which was resetting the battery profile on startup. We can now close this issue. Thanks for your support.

Sebastian.