tarpn_logo
 home    builders  

buildersPower Supply and Backup ➜ Robust power for Raspberry PI

Robust Power for Raspberry PI

This page discusses a very inexpensive system for using a GelCel to back-up the main supply for the Raspberry PI.
W4RFQ and KA2DEW are working on a much more expensive system ($40-ish) which will also support controlling power to the Raspberry PI on-demand, as well as automatic shutdown of the Raspberry PI in a power outage, and restoring the power when the power recovers. That device is called PWRMAN and is linked here: PWRMAN

Low cost power switchover device
Total parts cost is about $6 for the circuit with switcher supply and $20 for a gel-cel battery.

This schematic at the bottom of this page shows a simple battery floater circuit and switchover to power a USB power supply. The purpose of this is to keep the Raspberry PI up through power drop-outs and while moving the network cabinet. A 4 amp gel cell should run the raspberry PI for several hours or more. With my circuit it would take a day or more to recover the battery after a couple of hours of outage. That's ok because I don't expect to be on battery very often.

The resistor should be such that even if the battery was a dead short, it wouldn't draw enough power to hurt anything. I figured about 200 ohms was good. Anything above 200 up to 1k is probably adequate but 200 is a good lower limit. 200 ohms will get you about 70mA of current flow even if the battery were shorted. 70mA at 14v is about 1 watt of power so you need at least 1 watt of resistor rating. I took several 3.3Kohm 1/4watt resistors and used them in parallel. Larger resistor values will cause the gel cel to charge slower but will also generate less heat.

My later implementation uses a 50 ohm power-resistor with 10 watts rating.

The schematic needed 3 diodes. The nice thing about the bridge rectifier is that it gave me the diodes I needed in a single package and it had a screw mounting hole. I mounted the bridge to the wooden wall of my cabinet. If you get a bridge rectifier with 1 amp diodes or larger, this is fine.

This 12v to USB supply device is available on ebay from multiple vendors:
usb_power_supply
http://www.ebay.com/itm/181008007744 was the source of the USB power supply image.
Search for competitive sources I have bought 50 of these and they have all worked so far.

These power sources output to a USB socket. You will need a USB A to micro-B cable to connect from the USB socket to your Raspberry PI. I recommend a very short cable if you can get away with it. 6 inches is a good length if it fits in your chassis. Stay away from 3 foot and 6 foot cables. You'll lose too much voltage and the Raspberry PI won't like it. If you see a lightning bolt during boot, there's your sign!under_volt

The Bridge rectifiers come from Parts-Express and are 400V 6A Bridge Rectifier -- Part # 050-030
bridge_rectifier

The resistors come from Parts-Express and are 56 Ohm 10W Resistor Wire Wound 5% Tolerance -- Part # 016-56
resistor

The gel cells I've used so far run from 2 to 4.5 amp-hour. Here is my favorite model because it fits in the housings we've been using:
Parts Express has Power-Sonic PS-1220 Sealed Lead Acid Battery 12V 2.5Ah -- Part # 140-360
PS_1220_gelcel

Here are two different construction techniques for the supply:

tarpn_usb_and_charger The 13V supply on the schematic is off image (click image to enlarge) to the left but the power from that supply comes into the picture on the thick black and red zip-cord wire.
To the schematic below, I added a fuse in between the 13v power supply and the loads which are taken off of the terminal block. One of those loads is a feed to the charger circuit.
The USB socket for the Raspberry PI is on the little board with the red light.
The big grey and black block on the back side of the little wooden bar is a coax antenna tri-plexer and has nothing to do with the power supply.

Below is another construction method involving mounting components onto a 1/4" lexan panel.
Click either image to enlarge.
lexan_charger_05169

backup_power_diodes500

© Tadd Torborg, 2014↝2017 -- all rights reserved