0

My goal is to add capacitors to the Raspberry Pi power-supply.

Currently I have my raspberry Pi plugged straight into a portable 5v battery, this works fine. However, I want to be able to swap from one battery to another battery (via a switch) without the Raspberry Pi turning off. I figured the easiest way to do this is with supercapacitors.

I've added two 25F 2.5v supercapacitors in series as shown in the picture. However, when I do this, the raspberry pi powers on for about 10 seconds (both red and green lights come on) but then it shuts down.

What am I doing wrong here? See image here: https://i.ibb.co/Pcc8RXw/capacitor.png

Fecor
  • 1
  • 1
  • 1

2 Answers2

4

You need the supercaps to be in parallel to the power supply, not in series. However, before fixing your circuit, mind a few things:

  • If you simply connect your supercaps between 0 and 5V, most power supplies / batteries will have trouble starting your system, since a discharged capacitor is essentially a short circuit. Most power supplies handle shorts gracefully, but a poor one or a bare battery can start a fire.

  • Connecting two caps in series without any voltage balancing will eventually result in one cap getting charged above the 2.7V limit. Again, this can start a fire.

  • supercaps lose voltage very quickly when discharging, much faster than batteries. Without a DC-DC boost they make a very poor UPS, and 25F is not that much to begin with. Unless you need a supply which only lasts a couple of seconds, you should generate stable 5V from whatever voltage the supercaps are charged to.

A very minimal UPS could look like this:

schematic

simulate this circuit – Schematic created using CircuitLab

Make sure to pick a boost converter which gracefully handles overvoltage on the output, and tune it to just below 5V, so that it is halted when an external power is provided to the Pi.

For a UPS which only lasts a few seconds, you can use smaller supercaps and/or replace the boost converter with a Schottky diode (anode to the supercaps, cathode to the Pi).

If you have no experience in electronics, consider buying an off-the-shelf UPS.

Dmitry Grigoryev
  • 28,277
  • 6
  • 54
  • 147
2

Putting two caps that are rated at 2.5V in series is NOT going to give you an equivalent 5V rated cap. You shouldn't do that. And think through the physics of holding up a (let's say) 5 Watt load with capacitors while you move wires around. There are better ways to do this:

Perhaps the simplest way to do what it sounds like you want to do is as follows:

schematic

simulate this circuit – Schematic created using CircuitLab

The diodes form a "wired-OR" power source that isolates one battery from the other. In this way, both batteries may be connected at the same time - effectively giving you a "make before break" power switch. The diodes are Schottky diodes chosen because they have a lower forward voltage drop than a p-n junction diode. In fact, you could extend this scheme to 3 or 4 or more batteries. This particular part (DSS 20-0015B) appears to have good availability & reasonable price.

One potential issue with this scheme is the batteries themselves, and the RPi's rather tight tolerances for input voltage. If these figures are still correct (4.75V - 5.25V), your batteries will need to be almost "spot on" to get reliable operation. If your application is "critical", all is not lost as we can still use the "wired-OR" scheme above with a slight twist:

schematic

simulate this circuit

Adding a buck regulator/converter will easily keep the RPi input voltage in the 4.75V - 5.25V range, using higher voltage batteries. And as before, the "wired-OR" configuration allows you to swap batteries without dropping power to the RPi. In this case, we don't need Schottky diodes, so a conventional diode/rectifier (e.g. 1N5626) may be used.

Buck regulators that meet your specs are readily available as ICs, but may require wiring up a few external components. If you prefer a more finished regulator, those are also available as an assembly from the usual sources. You should probably avoid linear regulators in this application as they are much less efficient than a switch-mode buck converter - but they'll certainly work.

Seamus
  • 23,558
  • 5
  • 42
  • 83