tarpn_logo
 home    builders    Search

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 ($70-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 $12 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 for $12 on Amazon. The description is
"CC Buck Converter, DROK DC-DC Constant Current & Voltage Regulator Board 5V-36V 24V to 1.25V-32V 17V 12V 5V Step Down Transformer 5A 75W High Power LED CC Driver Module Battery Charge for Solar Panels"
Here is a link to the device with plastic box which was available in early June 2018:

ISBN=B01EMYHOC6

Hopefully the vendors don't go renaming and renumbering the product. There were several listings of this on Amazon with and without the plastic box. Make sure the unit you are looking at has the two sets of blue connections and the USB connector output.

KC3IBN and KA2DEW are using these with great success. The display can show input volage, or output voltage. If the input is on the left and output on the right, the left hand of the 2 blue multi-turn potentiometers controls the output voltage.
Warning.. Adjust the volage to 5.2v before plugging in the Raspberry PI.
This device is capable of outputting 13v and it would go badly for the Raspberry PI and TNC-PI.
cc_buck_converter_pi_supply

The USB supply is multi-purpose and we only need it as a power supply. The right hand multi-turn pot is used to limit the current output. You'd use the current limit if running the device in the capacity of a battery charger. The multi-purpose display can show the current and, I think, the charge current limit. In our application we do not use the right hand blue power terminals. Plug the Raspberry PI into the USB socket on the buck converter device.

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 unless you can't help it. In that case, make sure the power conductor in the cable is 24 gauge or under (smaller is bigger). Otherwise you'll lose too much voltage and the Raspberry PI won't like it. If you see a lightning bolt during boot, you are under-volts.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 47 Ohm 10W Resistor Wire Wound 5% Tolerance -- Part # 016-47
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



Schematic of the robust power supply

backup_power_diodes600


Drawing and photos showing method of constructing the robust power supply.

Parts list:

  1. Gel Cel battery
  2. DROK DC-DC power device for 5.1V adjustable output
  3. velcro to DROK regulator to battery
  4. 50ohm (+/- 10% on value) 5 or 10 watt resistor -- the photos below show a 56 ohm 5watt resistor.
  5. Bridge Rectifier.
  6. (2) female Crimp-on lugs for Gel Cel
  7. (4) 30 amp power pole pins
  8. (1) red/black bonded power pole shell
  9. (2) orange power pole shells
  10. 3-foot of 16 gauge red/black zipcord
  11. black tape
  12. 6 or 7 inch short micro USB cable - Amazon has some 7inch and .5foot cables
wiring_diagram_for_robust_raspberry_pi_supply

Click to Embiggen
2018_07_robust_power_harness_5152x700

Click to Embiggen
2018_07_robust_power_harness_5154x700

Below is shown with a short micro USB cable attached.
Make sure you adjust the output voltage to 5.2 or so before plugging in the Raspberry PI. You'll power up the system by attaching the red/black powerpole to the 13.8v source, then click the right and left buttons on the DROK until it shows the 13.8 and the right red LED near the button closest to the output terminals is on telling you that you are measuring the output voltage. Now adjust the multi-turn pot closer to the INPUT terminals counterclockwise about 8 turns maybe. The voltage won't drop for several turns and then it moves quickly.
Now you should be able to put a current meter across the orange powerpole pins and watch the current flow into the battery. If you then unplug the main supply you should see power coming from the battery.
Click to Embiggen
2018_07_robust_power_harness_5155x700

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