How one can add a UPS to your Raspberry Pi tasks (and do it on a budget)
The Raspberry Pi wants little introduction. This single-board pc has develop into a vital instrument for tinkerers, tech fanatics, and programmers.
However what occurs when the facility goes out?
Additionally: The very best moveable energy stations you should buy
I had a venture the place I wanted a Raspberry Pi to run 24/7/365 with as excessive a stage of uptime as attainable. Whereas energy cuts are uncommon in my neck of the woods, they will occur. I wanted to make my Pi proof against such outages. I wanted a UPS — quick for uninterruptible energy provide — a battery backup mechanism that kicks in when the facility goes out.
This is the UPS I opted for: a Waveshare UPS HAT (B).
Waveshare UPS HAT (B) package
The UPS HAT means that you can use two 18650 rechargeable batteries as a backup energy provide in your Raspberry Pi. No soldering is required and you may nonetheless use the GPIO pins on the highest of the Pi.
Waveshare UPS HAT (B) specs
- Appropriate with Raspberry Pi 3, 3B+, and 4B
- Helps real-time monitoring of the battery voltage, present, energy, and remaining capability
- Multi-battery safety circuits providing overcharge/discharge safety, over present safety, quick circuit safety, and reverse safety
- Onboard 5V regulator permitting for as much as 5A steady output
- 5V USB output
- Battery warning indicators
- Consists of improvement assets and handbook
- Requires 2x 18650 batteries (not included)
Additionally: Discovering Raspberry Pi: The place to purchase the newest mannequin and its options
Observe: I’ve additionally used the GeeekPi UPS HAT, which gives comparable performance however makes use of micro USB, which prices at a slower price than the Waveshare board at the same value.
The Waveshare UPS HAT (B) suits onto the underside of the Raspberry Pi.
OK, bought all of the bits, so I am able to go.
And I am not going to be postpone by the typo on the battery charger!
The HAT connects to the Raspberry Pi utilizing pogo pins that press onto the underside of the GPIO pins.
OK, listed below are the meeting directions.
Large spacers go on the battery aspect, shorter ones on the aspect that can face the Raspberry Pi.
4 flat-headed screws connect the Raspberry Pi to the HAT.
Discover how the pogo pins match towards the underside of the GPIO pins. The benefit? Not solely isn’t any soldering required, however you may nonetheless use the GPIO pins on the highest of the Pi.
It is so much simpler to tighten the screws when you’ve got a magnetized screwdriver. I used a magnetizer/demagnetizer to make my screwdriver tip magnetic.
Tighten the screws holding the HAT down a bit bit at a time, do not simply crank down on one screw then go to a different as a result of that can misalign the pogo pins.
When completed, test the alignment of the pogo pins towards the GPIO pins.
Make certain to get the polarity proper.
I used the domed screws to carry the duvet in place. This prevents steel bits from falling into the battery compartment and probably shorting issues out.
Do not need to use HAT? This is one other manner
OK, whereas a HAT is essentially the most handy and dependable approach to arrange a UPS for a Raspberry Pi, there may be another choice: use an influence financial institution.
You should use the facility financial institution to energy the Raspberry Pi, and join the facility financial institution to a charger to maintain it topped up.
Additionally: These are my 3 must-have Raspberry Pi equipment
Sadly, you may’t use simply any energy financial institution. The ability financial institution has to help a characteristic referred to as pass-through charging. That is the characteristic that permits the facility financial institution to be concurrently charged whereas charging a tool.
Not all energy banks help this, however energy banks from Zendure, Aim Zero, Omni, and Renology help this characteristic, and supply a lot larger backup capability than two 18650 rechargeable batteries can present.
Additionally: The 5 greatest moveable energy banks: Preserve your gadgets juiced on the go
One other different is to make use of an influence station, from makers equivalent to Jackery or Bluetti. All energy stations I’ve examined help pass-through charging.