Raspberry Pi Battery Backup How-To @Raspberry_Pi #piday #raspberrypi
George shares how to make a battery backup circuit for your RPi via repairhub.co.uk:
This is a step by step instructions on how to make a battery backup circuit for your Raspberry Pi computer. For more information about Raspberry Pi visit the Foundation’s website.
First I’d like to explain a little bit about what I tried to achieve with this design and also pros and cons of this approach. I’m using my Raspberry Pi as a backup device with two hard drives connected to it, to back up various online servers that I administer. I use automated backup scripts based on Rsnapshot, and also I’m using this particular Pi as an Apple time machine server. Because Raspberry Pi is a very low power device, I thought it would be possible to design a cheap backup power supply using a 9V rechargeable battery, and this way prevent any abrupt shutdowns during power cuts or when someone accidentally unplugs it from the mains. As an added feature it also will provide a convenient way to safely power the device off without adding a hardware button or logging-in remotely and issuing a shutdown. But what this circuit doesn’t currently do is monitor battery levels, nor provide any kind of low voltage cut off, but there is a time limit/delay after which it will automatically power off and disconnect the battery.
The finished circuit does the following:
Trickle charge the battery while on mains power
Send a signal to Pi GPIO pin when mains power is disconnected
issue a shutdown after a few minutes if power haven’t returned (Done via software)
disconnect the battery from the circuit after shutdown is completed (this is to prevent discharging the battery below its limit)
keep a log file with all the time stamps and alerts for mains power, shutdowns and restarts of the Pi
Adafruit has had paid day off for voting for our team for years, if you need help getting that going for your organization, let us know – we can share how and why we did this as well as the good results. Here are some resources for voting by mail, voting in person, and some NY resources for our NY based teams as well. If there are additional resources to add, please let us know – adafruit.com/vote
Stop breadboarding and soldering – start making immediately! Adafruit’s Circuit Playground is jam-packed with LEDs, sensors, buttons, alligator clip pads and more. Build projects with Circuit Playground in a few minutes with the drag-and-drop MakeCode programming site, learn computer science using the CS Discoveries class on code.org, jump into CircuitPython to learn Python and hardware together, TinyGO, or even use the Arduino IDE. Circuit Playground Express is the newest and best Circuit Playground board, with support for CircuitPython, MakeCode, and Arduino. It has a powerful processor, 10 NeoPixels, mini speaker, InfraRed receive and transmit, two buttons, a switch, 14 alligator clip pads, and lots of sensors: capacitive touch, IR proximity, temperature, light, motion and sound. A whole wide world of electronics and coding is waiting for you, and it fits in the palm of your hand.