I'm developing a CCTV system out of a pi 2 modal b and everything is on track using noIR camera and stuff. Since a CCTV should work for few hours without power, I'm in need of a backup power source when the mains are off.

Is there any circuit where I could plugin my regular power source an if that is out, a backup battery would get activated. I've seen USB batteries which is usable in this scenario but, that would need manually to switch the power source.

  • 1
    Buy an UPS (Uninterruptible Power Supply),
    – joan
    Commented Nov 13, 2015 at 9:25
  • That's too costly for me! any simple solutions? Commented Nov 13, 2015 at 9:28
  • 3
    That is the simple solution!
    – joan
    Commented Nov 13, 2015 at 11:15
  • 1
    There's no getting around buying additional hardware here, since you need 1) An alternative power source, 2) An intermediate circuit for "uninterruptedly" switching the supply when mains fail.
    – goldilocks
    Commented Nov 13, 2015 at 11:54

2 Answers 2


Uninterruptible Power Supply UPS

(Just as joan suggested in the comments). There are numerous solutions available - ranging from simple to expensive.



I bought it directly from manufacturer www.pimodules.com

Works very good, supply up to 2A + many extras.

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.