PiJuice HAT for battery-powered Pi Zero

Out in Space

© Lead Image © Anton Brand,123RF.com

© Lead Image © Anton Brand,123RF.com

Article from Issue 287/2024
Author(s):

The Raspberry Pi Zero is a frugal little computer. But without a power socket, you might be surprised how quickly it can drain a battery. Active power management is the order of the day.

A Raspberry Pi Zero (W) can require upwards of 100mA – depending on what it is doing. This may not sound like much at first, but given a standard industrial LiPo cell rated at 2,200mAh, that computer won't even last a day. This makes it all the more important to use the battery's energy sparingly. HATs (Hardware Attached on Top) by PiJuice, which have been around for some time, have the circuitry to help you do this. In this article, we take a look at the PiJuice Zero [1], a pHAT that is optimized for the Raspberry Pi Zero (Figure 1).

Use Cases

But first, let's take a brief look at potential application scenarios for a power management HAT: A Raspberry Pi that is connected to a power outlet but needs to run continuously requires UPS protection (UPS being an uninterruptible power supply). If worst comes to worst, the back-up battery can step in at lightning speed and bridge the gap until the power grid is available again.

A second use case is in normal battery-based operation, for example when the Pi is running far away from civilization. The HAT must supply the board with a stable voltage, even if the battery voltage gradually drops. Ideally, the HAT also measures the charge status and reports it to the Pi. A monitoring program can then shut down the computer in good time, which in turn protects the battery from deep discharge. In both examples, there is also a requirement for sophisticated charging management. Instead of replacing the battery, in the second case a solar panel typically recharges the battery, while the UPS uses the power grid for this task.

[...]

Use Express-Checkout link below to read the full article (PDF).

Buy this article as PDF

Express-Checkout as PDF
Price $2.95
(incl. VAT)

Buy Linux Magazine

SINGLE ISSUES
 
SUBSCRIPTIONS
 
TABLET & SMARTPHONE APPS
Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

  • Wildlife Photo Trap

    Armed with no more than a Raspberry Pi photo trap, you can discover who pays a visit to your garden at night.

  • Saltwater Battery

    Rechargeable lithium batteries are expensive, and manufacturing them damages the environment. Saltwater batteries offer a cheaper and greener approach to storing energy.

  • Pico Sleep Mode

    The Raspberry Pi Pico's high-performance chip is trimmed for I/O and does not try to save power. However, a few tricks in battery mode can keep it running longer.

  • ACPI Tools

    Linux offers some useful command-line tools that leverage the ACPI power management framework to display detailed data on the status of a laptop battery.

  • Perl: Uninterruptible Power Supply

    An uninterruptible power supply can help get you through a short power outage without losing data or damaging hardware. A Nagios script written in Perl checks UPS health and initiates a controlled powerdown if the unit exhausts its battery capacity.

comments powered by Disqus
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters

Support Our Work

Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.

Learn More

News