How to add a UPS to your Raspberry Pi projects (and do it on the cheap)

Raspberry Pi fitted with a UPS Adrian Kingsley-Hughes/ZDNET The Raspberry Pi wants little introduction. This single-board pc has change into a vital device for tinkerers, tech fans, and programmers. However what occurs when the ability goes out? Additionally: The very best transportable energy stations you should buy I had a venture the place I wanted a Raspberry Pi … The post How to add a UPS to your Raspberry Pi projects (and do it on the cheap) appeared first on Ferdja.

Apr 30, 2023 - 22:05
 5
How to add a UPS to your Raspberry Pi projects (and do it on the cheap)
Raspberry Pi fitted with a UPS

Raspberry Pi fitted with a UPS

Adrian Kingsley-Hughes/ZDNET

The Raspberry Pi wants little introduction. This single-board pc has change into a vital device for tinkerers, tech fans, and programmers.

However what occurs when the ability goes out?

Additionally: The very best transportable 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 potential. 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 ability goes out.

This is the UPS I opted for: a Waveshare UPS HAT (B).

Waveshare UPS HAT (B) kit

ZDNET RECOMMENDS

Waveshare UPS HAT (B) kit

The UPS HAT allows you to use two 18650 rechargeable batteries as a backup power supply for your Raspberry Pi. No soldering is required and you can still use the GPIO pins on the top of the Pi.

Waveshare UPS HAT (B) specs

  • Suitable 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 guide
  • Requires 2x 18650 batteries (not included)

Additionally: Discovering Raspberry Pi: The place to purchase the newest mannequin and its options

Be aware: I’ve additionally used the GeeekPi UPS HAT, which presents related performance however makes use of micro USB, which costs at a slower charge than the Waveshare board at an analogous value.

The Waveshare UPS HAT (B) suits onto the underside of the Raspberry Pi.

OK, obtained all of the bits, so I am able to go.

All the bits I needed to fit a UPS

All of the bits I wanted to suit a UPS

Adrian Kingsley-Hughes/ZDNET

And I am not going to be postpone by the typo on the battery charger!

Typo on charger reads "Batter charger"
Adrian Kingsley-Hughes/ZDNET

The HAT connects to the Raspberry Pi utilizing pogo pins that press onto the underside of the GPIO pins.

Pogo pins connect the HAT to the Raspberry Pi

Pogo pins join the HAT to the Raspberry Pi

Adrian Kingsley-Hughes/ZDNET

OK, listed here are the meeting directions.

Huge 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 in opposition to the underside of the GPIO pins. The benefit? Not solely is not any soldering required, however you possibly can 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.

Making my screwdriver bit magnetic makes fitting the screws a lot easier!

Making my screwdriver bit magnetic makes becoming the screws so much simpler!

Adrian Kingsley-Hughes/ZDNET

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 accomplished, examine the alignment of the pogo pins in opposition to the GPIO pins.

Check the alignment of the pogo pins against the GPIO pins
Adrian Kingsley-Hughes/ZDNET

Make certain to get the polarity proper.

I used the domed screws to carry the duvet in place. This prevents metallic bits from falling into the battery compartment and probably shorting issues out.

Do not need to use HAT? This is one other method

OK, whereas a HAT is probably the most handy and dependable approach to arrange a UPS for a Raspberry Pi, there’s another choice: use an influence financial institution.

You should use the ability financial institution to energy the Raspberry Pi, and join the ability financial institution to a charger to maintain it topped up.

Additionally: These are my 3 must-have Raspberry Pi equipment

Sadly, you possibly can’t use simply any energy financial institution. The ability financial institution has to assist a characteristic known as pass-through charging. That is the characteristic that enables the ability financial institution to be concurrently charged whereas charging a tool.

Not all energy banks assist this, however energy banks from Zendure, Goal Zero, Omni, and Renology assist this characteristic, and provide a lot better backup capability than two 18650 rechargeable batteries can present.

Additionally: The 5 greatest transportable energy banks: Preserve your units juiced on the go

One other different is to make use of an influence station, from makers akin to Jackery or Bluetti. All energy stations I’ve examined assist pass-through charging.

The post How to add a UPS to your Raspberry Pi projects (and do it on the cheap) appeared first on Ferdja.