In this guide, we learn. How to build your own Raspberry Pi UPS for pc using Simple hardware even You can use this method to Power a Raspberry Pi 3 And any separate Pi.

What You ‘ll Need

Here’s everything you need to complete guide

1.Raspberry Pi

2.PiJuice

Why do we need a Raspberry Pi UPS?

Uninterruptible power supply through minor power Fluctuation, power outages, even the occasional bumped AC adapter.

Use SD card corruption.

Raspberry Pi is not getting shut down properly, for example.

Like any Pc, merely pulling the plug on your Pi can be dire, but most of the computer, Raspberry Pi does not have a native power button. you have to use commands for safely shut down or reboot your Pi

We will now see which commands are used for this process, but one more thing is that these commands must be run in the command line.

⦁ Shutdown

⦁ sudo halt

⦁ sudo shutdown -h now

An explanation you have to give

⦁ sudo – run the command

⦁ -h – halt after shutting down your computer

⦁ now – do this now time

2.Reboot command

⦁ sure reboot

⦁ sudo shutdown -r now

⦁ sudo – run the command as user

⦁ shutdown – shut down the pi -r – reboot the pi after shutting down your computer

⦁ now – do this now time

3.Power Button

Now you can also safely down the Pi by adding a Pi power button!

But you risk corrupting your Pi SD card, sort of like yanking the cord out of your desktop computer every time you want to shut it down.

You have to put all time of your Project.

if you are using the camera, data collection, complex scripts streaming so don’t need to restart on boot just run continuously, a UPS will help the integrity of your Project

A Pi-hole, OctoPrint is ideal for UPS, even the Wide range of other custom Projects.

The right UPS setup can even send a safe shutdown command to the Raspberry Pi, but only if the UPS battery gets too low.

Raspberry Pi UPS options

Even there are a few more options for building your Pi UPS.

Power bank

You have to plug your Pi into an output power bank, mainly a juiced-up version of what you are charging your phone while camping. The battery gets plugged into the wall, and the Pi gets connected into the battery pack.

but there a few steps to consider with this approach:

discharge/Simultaneous charge

Your Power needs to be able to concurrently charge and discharge.

Most power banks do not have this focus as it requires extra circuitry and is an edge case for most users.

Power output

A power bank should be charged up to output at least 2A for the Raspberry Pi 3, 2.5A for the Raspberry Pi 3 B+. or even for the Raspberry Pi Zero. a power bank that draws Power

Unfortunately, Portable power banks should meet these requirements that are hard to find and expensive. If Pi can’t detect that it’s on battery power, a safe shutdown is impossible.

The hardware

For power management, you have to use the PiJuice, which will work in this Project. If you are building a Raspberry Pi UPS, you can JuiceBox Zero, Which is a little cheaper.

But PiJuice provides truly portable Power to your Pi project; it takes 15 min to set up.

What’s the UPS runtime

PiJuice’s onboard BP7X 1820mAh off-the-shelf LiPo/Li-Ion battery to run your Pi for up to a day. Exact UPS runtime depends on Which Raspberry Pi you’re using should perform external hardware powering. See the PiJuice battery discharge calculator to calculate the precise runtime for your Project.

  • How you can Install Raspbian & configure Raspberry Pi
  • but Pi is already running some software, but if you will scratch
  • check out our guide on setting up a new Raspberry Pi.

 

Shut down your Pi

  • I have told you already on top of same Paragraph commands are given
  • Connect the PiJuice hardware to Pi
  • connect your PiJuice on your Pi’s GPIO header. Then screws the plastic standoffs to secure it to your Pi.

Attach the PiJuice case

  • It is easy to connect the PiJuice. With Raspberry Pi, you need to leave the top of the case of Raspberry Pi then carefully slide Pi into a place.
  • Connect a power source and Power on the Pi
  • Connect the Raspberry Pi with PiJuice’s Micro USB port
  • Turn on your Pi and Press button labeled ‘SW1’ next to the flashing LED. With the case installed. Now you need a pin to press the button.
  • Press and hold the button at least 20 seconds.

Install the PiJuice software

  • PiJuice is the power management software in Github
  • Let’s install it
  • You can install either the GUI or the headless version. But update your Pi first.
  • commends
  • update commend >
  • sudo apt-get update && Sudo apt-get upgrade –yes
  • Install GUI commend>
  • sudo apt-get install juice-GUI
  • Automatically shut down if the Raspberry Pi UPS battery is low
  • To change this option from the Raspbian GUI, use a keyboard or VNC to navigate to
  • menu>Preferences>PiJuice Settings
  • After this search, ‘System task’ and check the minimum charge box and enter 1 in a text input.
  • And click ‘Apply.’
  • Now your Raspberry Pi is ready
  • congratulations

Leave a Reply

Your email address will not be published. Required fields are marked *