Current Surge Capacitor Calculator

In summary, the Raspberry Pi runs off of 3 AAA batteries for about 15-20 minutes, and can be powered by an AC/DC adapter or by using LiPo batteries. Yoda, a character from "The Empire Strikes Back," uses a motor, speaker, and Raspberry Pi processor all at once, and the Raspberry Pi reboots if the power supply peaks are short in duration.
  • #1
Freddythunder
48
1
Hello friends...

I'll jump right into the deal here.. I pranked a friend by putting a raspberry pi into a yoda head like the one on his desk. There's an intro video: and the prank itself: if you are intrigued.

Everything in the head runs off 3 AAA batteries. 1 raspberry pi zero w, 1 small amplifier, 1 motor control board & dc motor. I can't tell you how much current it really uses; but I can tell you 3 AAA works well for about 15 to 20 minutes.

Now that the prank has ended I want to run yoda off of an AC/DC adapter instead of the batteries. When building I was able to use a 12V AC/DC adapter (~4 amps I think) through a 5VDC regulator and everything ran fine then. I found a 2A, 5VDC AC/DC adapter and hooked that in place of the batteries. Everything works until you make Yoda talk (uses motor, speaker, pi processor all at once) and the raspberry pi reboots.

I'm thinking that there isn't enough current to keep voltage up and the pi basically powers down and back up again. I don't know much about electric engineering, but a friend at work said to put a capacitor inline with the power but couldn't tell me what size.

I've googled quite a bit to find a calculator to figure out what I may need, but can't find anything. Any ideas? Thanks. Sorry for the long post.
 
Engineering news on Phys.org
  • #2
Unless the power peaks are very short in duration, a capacitor won't help. You probably need just a bigger power supply.

If you tell us the exact model of raspberry pi you have, we could look up the power requirements.
 
  • #3
Capacitance = Charge / Voltage; C=Q/V.
Charge = Current * time; Q=I*t.
So; C = I * t / V.

If you need 0.5 amp for 1 second and cannot have the voltage drop by more than 2 volts then you need at least;
C = 0.5 amp * 1 sec / 2 volts = 0.25 farad.

That capacitance must be on the unregulated supply before the voltage regulator.
 
  • #4
@anorlunda This is a great guide to show approximate current draws of the raspberry pi, but it's way more than that. The motor is pulling the most current, probably then followed by the audio amplifier, then by the h bridge to run the motor in two different directions. A larger power supply would be great but it's pretty hard to find a small one with more than 2A. Maybe I can find an old printer one that has multiple voltages with one being +5... Hmm.

@Baluncore Thank you for the formulas, I will soak those in and put them next to ohm's law in my head. I'm guessing since one AAA battery could produce 1-2 amps, I would need 6 amps (that seems wrong right off the bat), I'd say 5 seconds @ 5 volts... 6 farad - isn't that one of those giant ones you use in car stereo applications? Maybe a cap is not the right way to go...
 
  • Like
Likes Tom.G
  • #5
Adding more caps is not the right way to go. You should check the power consumption of the motor and also: do some software tweaking to allow some kind of soft-start for the motor.
The high current draw at 0 RPM will just deplete any (sane sized) cap anyway and bring the input voltage below the starting level of the CPU board.

Alternative is to use a 12V 2A PSU and put the motor on a separate regulator. The power stored in a cap grows with U2, so you would have ~ six times of power to start the motor in a 12V cap.

Ui.: it is also a possible solution to put a diode on the power in of the Pi and add caps after the diode. That would keep up the voltage on the module while the motor starts up. But you have to check the undervoltage threshold of the module first.
 
Last edited:
  • #6
3 AAA won't give 5 V, so you start with voltage under specification, any load and voltage will drop even further, no wonder it reboots (actually I am rather surprised it starts at all).

If memory serves me well Zero W needs a bit over 1 A. I would think about going LiPo and switcher (capable of delivering several amps) route. 2S LiPo gives 8.4 V when freshly charged, can be safely used down to about 6.6 V, so 2S should be enough.
 

1. What is a current surge capacitor calculator?

A current surge capacitor calculator is a tool used to determine the necessary size and specifications of a capacitor for a specific application. It takes into account factors such as voltage, frequency, and current to calculate the capacitance and other parameters needed for the capacitor to effectively handle surges in current.

2. When is a current surge capacitor calculator used?

A current surge capacitor calculator is used when designing electrical systems that may experience sudden surges in current, such as in power distribution networks, electronic equipment, and motor control circuits. It is also used in troubleshooting and maintenance to ensure that the correct capacitor is being used for the task at hand.

3. How does a current surge capacitor calculator work?

A current surge capacitor calculator uses mathematical equations and algorithms to determine the capacitance, voltage rating, and other parameters needed for a capacitor to handle current surges. It takes into account the specific characteristics of the electrical system and the desired level of protection against surges.

4. What are the benefits of using a current surge capacitor calculator?

Using a current surge capacitor calculator can help ensure the safety and reliability of electrical systems by properly sizing and selecting capacitors. It can also save time and money by avoiding the use of inadequate or oversized capacitors, which can lead to equipment failure or unnecessary expenses.

5. Are there any limitations to using a current surge capacitor calculator?

While a current surge capacitor calculator can provide accurate results, it is important to note that it is only a tool and should be used in conjunction with proper knowledge and understanding of electrical systems. It may not account for all variables and factors, so it is important to double check the calculated results and make adjustments as necessary.

Similar threads

Replies
10
Views
1K
  • Electrical Engineering
Replies
5
Views
1K
  • Electrical Engineering
Replies
7
Views
1K
Replies
16
Views
2K
  • Electrical Engineering
Replies
3
Views
1K
  • Electrical Engineering
Replies
15
Views
3K
Replies
6
Views
3K
Replies
8
Views
988
  • Electrical Engineering
Replies
15
Views
3K
  • Electrical Engineering
Replies
7
Views
2K
Back
Top