

PiShop Raspberry Pi UPS HAT - Our own uninterruptible power source for RPi 4 & RPi 3!
Keep your Raspberry Pi online during power loss with the PiShop UPS HAT.
This UPS Pi battery HAT delivers up to 3A output, includes a Li-Ion rechargeable battery, adds safe shutdown control, and features a built-in real-time clock. Designed for Raspberry Pi 4 & Pi 3, it’s a reliable battery backup add-on that keeps your projects safe and running.
Features
- 3A continuous output for Pi 3/4
- Includes rechargeable 450mAh Li-Ion battery (10–30 min runtime)
- Safe shutdown & auto-restart scripts & Real-time clock (DS3231) via I²C
- Stackable design with extra-long headers
- Pair with our RS232 HAT for reliable serial device power in industrial setups. Contact us for volume orders!
- And of course, it fits very nicely inside our HighPi cases!
Compatibility
-
Works with Raspberry Pi 4 & Pi 3
⚠️ Not compatible with Raspberry Pi 5, not yet. -
Requires Li-Poly battery with JST-XHP-2 connector.
⚡Always check the polarity!⚡
Includes
- PiShop Raspberry Pi UPS HAT
- 3.7V 450mAh Li-Ion rechargeable battery with XHP-2 connector
- 12mm brass standoff and screw set
Resources
- User Guide - with a script for a safe shutdown
- GitHub
- Stacking the Raspberry Pi UPS HAT and Prototyping Plate
FAQ
Q: What is a Raspberry Pi UPS HAT?
A: It’s an uninterruptible power supply HAT for RPi that keeps your board running during power loss. The PiShop UPS HAT provides 3A output, battery backup, and safe shutdown control for Pi 3 and Pi 4.
Q: Does this UPS HAT include a battery?
A: Yes. The kit ships with a 3.7V 450mAh Li-Ion battery (JST-XHP-2 connector) for 10–30 minutes of backup time. If you're lucky, you may even get a 750mAh! It can also be paired with larger 18650 batteries for extended runtime.
Q: Is the PiShop UPS HAT compatible with Raspberry Pi 5?
A: No. This RPi UPS HAT works only with Raspberry Pi 3 and Pi 4 models with a 40-pin GPIO header.
Q: Can I stack other HATs on top of this UPS HAT?
A: Yes. The board uses extra-long headers so you can mount an extra HAT or add-on board on top.
Q: Does it support safe shutdown and restart?
A: Yes. A control script available in the User Guide allows the Pi to power down safely when the battery runs low, and restart automatically when power is restored.
Q: Does this UPS HAT also work as a Raspberry Pi battery HAT?
A: Exactly. With its included Li-Ion cell and 18650 support, the PiShop UPS HAT is both a battery HAT and a full Raspberry Pi UPS solution.
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!