Our own uninterruptible power source for the Raspberry Pi!
The UPS HAT is powerful enough to continuously deliver 3 Amps of current to the Raspberry Pi, with an Ultra lower power STM32 controller to make the Raspberry Pi last longer when powered with the battery. The Hat also includes a real time clock (DS3231), which can easily be accessed using the I²C pins on the Pi. It is compatible with models of the Raspberry Pi that have a 40 pin GPIO header, up to the Pi 4! Additional space and holes on the board can be used to secure the more powerful 18650 battery which offers longer run time. The whole assembly can easily fit inside our HighPi cases. Extra long headers are used to mount other hats on top of the UPS Hat.
The control code (see User Guide) powers the Pi down after a set number of minutes. Once power to the Pi is re-established, the Pi restarts automatically. Approximate run times for the the Included 450mAh battery: 10-30 minutes
Compatibility
- Raspberry Pi 3 & 4
WARNING: NOT compatible with Pi 5! - Only compatible with Li-Poly batteries having JST-XHP-2 connector (check the polarity!)
Included
- UPS Hat
- 3.7V 450mah Li-Ion rechargeable battery with XHP-2 connector
- 12mm brass standoff and screw set
Resources
A script to safe-shutdown the Pi is available, please follow the instructions in the User Guide for installation.
The GitHub repo is listed in the User Guide.
User Guide
https://www.pishop.us/raspberry-pi-ups-hat-guide/
Tech Tips
To power your Pi from external +5V using screw terminals: Stacking the Raspberry Pi UPS HAT and Prototyping Plate
3 Reviews Hide Reviews Show Reviews
-
Works with RPI 2 as well!
... and probably with RPI 1. The first 20 pins of the 40-pin header on the UPS Hat are in fact the same as the 20 pin header on the RPI 2. There are two ways to make this work (I tested both):
- Use an extender (like a couple of single-row wire-wrap pin/sockets) to jack the UPS Hat up above the yellow NTSC RCA video connector
- Or, if you're not going to use the NTSC video out (HDMI will still work) simply snip off the yellow connector. This allows the UPS Hat to sit right where it should.
I ended up using the second option and so far, everything works exactly as it should! -
Nice Hardware - Can Fit with Heatsinks
Nice hardware. Fits in case with CPU & GPU heat sinks with slight mods --
* Clip pins from top of UPS hat, use long standoffs and stacking header to raise UPS hat high enough to clear CPU & GPU heat sinks.
* GPIO Stacking Header for Pi – Extra-long 2×20 Pins
* Brass Standoffs, M2.5 x 15mm, Package of 4
Had to cut a small hole in case cover to allow battery connector "space". Also added a hole to access the button.
The script works, but the init process suggested is a mess. I eventually gave up on the init process and just added it to /etc/crontab:
@reboot root /root/ups && -
Needs Minor Improvements
I just received this UPS HAT and it will work to remove a battery pack and installs inside the RPi4B case very nicely. I had to remove my CPU heat sink because the board does not accommodate the high heat sink space and leans. The main improvement would be to provide battery capacity so that apps can inform users when power is running out of the battery. The Real Time Clock isn't as important as the battery capacity since most computers sync to online time protocols instead of a hardware clock. Regardless, when the battery does run out, all one needs to do is apply power again and the HAT starts the RPi up very smoothly. Now if they only had more in stock I would order another one!