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
440 stars 104 forks source link

Unable to get Pi4 to run off Pijuice. #1057

Open cassius- opened 10 months ago

cassius- commented 10 months ago

Hello, I'm having a great deal of difficulty getting this PiJuice to power this Pi 4.

Pi Unit: Raspberry Pi 4 Model B 2019 Quad Core 64 Bit WiFi Bluetooth (4GB)

Raspberry OS: image

Storage: 32GB micro usb PiJuice Battery Model: BP7X

Steps:

Looks as expected: image

I remove usb c corded power and ~ 1 minute 15 seconds later the Pi 4 shuts down and ssh drops. If I try no cord power and turn on the Pi 4 via SW1 button; the Pi 4 powers on for 10 seconds than crashes.

I've tried a couple different OS (32/64) and a fresh SD card.

Any advice?

If I Repowered via usbc corded power

sudo apt install xrdp

RDP in; yet no PiJuice Icon (lenny has been added to I2c and pijuice) image

Service status seems to be ok: image

I can see PiJuice Settings:

image

Any advice is appreciated.

Thank you, Dan

tvoverbeek commented 10 months ago

i suppose you have disabled Wayland and swirched to X11 and openbox via the Advanced settings in raspi-config. Without this pijuice_gui does not work. It uses Tk which is not supported on Wayland (Wayland is the default on a bookworm installation in Pi4) Correct? What are your settings on the System Events and System Task tabs? Is your BP7X battery new? Or already used a few years? The symptoms you describe smell like a bat battery at the end-of-life.

cassius- commented 10 months ago

No, I did not! Thank you for pointing that out. I have now:

image

I tried to reboot after switching to X11; still no PiJuice I tried removing PiJuice and reinstalling; still no PiJuice.

Battery and PiJuice are new (christmas present)

What are your settings on the System Events and System Task tabs?

Could you please advise how I can check that?

tvoverbeek commented 10 months ago

On your lenny screenshot below the line "Ï can see PiJuice Settings:" pijuice_gui is running. The current install script only works on a 64-bit system.So the pijuice_gui screenshot must be made on a 64-bit system. On thescreenshit you see the 'SYstem Task' and 'System Events' tabs. Make screenshots after selecting each tab.

cassius- commented 10 months ago

I understand, thank you

image image
cassius- commented 10 months ago

I created another sd card using this OS so I wouldn't have the wayland issue: image

Same issue: here is the "i2cdetect =y 1" print out, which I think is correct image

tvoverbeek commented 10 months ago

What I understand about RDP is that evey time you connect you get your own desktop, not a mirror of the main X desktop. this might be why you do not get to see the PiJuice icon in the top-level menu-bar. Since you are now using the legacy os, try to use the vnc server and a vnc client. RealVNC has a free window client (VNC Viewer) which works fine with the RealVNC server on the Pi. This is what I use, since mot of my Pis do not have a monitor. The i2cdetect output is what I expect it to be.

cassius- commented 10 months ago

RealVNC has much less hoops than the RDP route. Thanks.

I VNC'd into the Pi and was able to get the settings and status bar icon This was the screen before I removed power:

image

After Power Removed: image

The Pi Crashes ~3/4 mins later. Is there a pijuice log somewhere? Maybe it is the battery? It is hard to see but the battery dropped from 68% to 63% in 4 minutes. image

tvoverbeek commented 10 months ago

something is using power when on battery. Any USB peripherals?

ETE-Design commented 10 months ago

@tvoverbeek Will there be an update to support Wayland on Bookworm?

cassius- commented 10 months ago

Just to follow up on this.

I returned the PiJuice and received another one. The "new" PiJuice does not seem to properly power up when either the Pi or PiJuice are plugged into power. (No Leds are lit up and after the GUI is installed "Comuncation Error" is displayed).

Beware buying from Amazon, or I'm an idiot and messed up a step....do whatever you want. I'm a post not a cop.

Is there a preferred marketplace for PiJuices? I still want one.

arjanvlek commented 8 months ago

@cassius- Sorry if it is a bit late. But I hope you were able to return your 2nd one or got it going.

Regarding why your pi shut off with the 1st one everytime: in your 2nd screenshot, the battery was showing 3.204v at 63% charge when unplugged. That is way to low: a good battery would have been fully drained to 0% (and the pi safely shut off) before it reached such a low voltage. So your battery was bad and a replacement would have fixed your problems.