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

PiJuice compatibility with other 40-pin GPIO vendors #931

Open jimklimov opened 1 year ago

jimklimov commented 1 year ago

Hello, I understand that PiJuice HAT was designed for Raspberry Pi's; however my sample RPi 4B apparently kicked the bucket soon after I started playing with it (LED blinks 8 times which seems to mean RAM dead), and sourcing another RPi seems problematic over past many months... so I wondered if any of numerous alternative SBCs (BananaPi, RockPi, Rockchip... maybe even something RISCy) with same 40-pin GPIO connector can "just" use the battery and its board for power-lifecycle management out of the box or with moderate effort?

tvoverbeek commented 1 year ago

Hardware wise it should work, since the PiJuice only uses the I2C and power pins. Most (all?) 40-pin SBCs usea compatible pin-out. Software wise is a different story. It depends on how the OS works (e.g. python3, needed python modules, systemd setup etc.) Study the software implementation on Github. One thing to look at is the debian post-install script which sets up ownership and a few other things. See https://github.com/PiSupply/PiJuice/blob/master/Software/Source/debian-base/postinst and the other scripts in https://github.com/PiSupply/PiJuice/blob/master/Software/Source/debian-base/