I am working on a project that requires a pi with a camera and a small pressure sensor board to run for up to 20 hours. I am on a budget and need a UPS for my pi model 1 B+. Any answer will be helpful.

  • Yes - it's straightforward. Here's a recent answer to a question along the same lines.
    – Seamus
    Commented May 13, 2020 at 23:29
  • Yes you can use a power bank. I would recommend a pi 0 because it takes less power. Commented May 18, 2020 at 21:19

2 Answers 2


Short answer: yes, you can use a battery pack. The RPi recommends a power supply of 500mA and most good battery packs can supply more current than that. As for the 20 hours of operation, you would have to consider how many processes the RPi is running (more code being executed, more power and thus current) and the size of the battery. Just make sure your battery is rated for an output of 5v and at least 500mA with a sizable capacity. I'm using a myCharge USB-C battery pack outputting 5v at 3A max for 88.8Wh, which can run my RPi for a considerable amount of time (I haven't tested exactly the 20 hour mark).


I have been using a 20500mh powerbank with a Pi3 B+ taking time lapse images during my working days and it has consumed only 1/4 of the powerbank charge in a 9 hour session. I believe that you can even turn off the HDMI ports if not in use and the wifi to save further power use. Hope this helps.

  • I just used one 8000mh to no available, works for few seconds then stops.
    – pierre
    Commented Mar 8, 2021 at 21:24
  • The power bank was not working then I bought a battery bank at Canadian Tire, 'woods' for $10, the same price as the power bank and it is working great. 4 AA batteries. I tested it for the last 24h with no problem. This battery bank did not come with its own cable.
    – pierre
    Commented Mar 10, 2021 at 15:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.