I've been messing around with a robot kit from Parallax (the BOE Shield Kit), which has a 5xAA (7.2V?) power source. The BOE Shield includes its own 5V regulator, which is used to control servos that in turn spin the wheels of the robot. The regulator is rated for up to 1A of regulated power.
Now for the fun part: I want to also power a Raspberry Pi from this same circuit. I've been able to successfully power the RPi via the Arduino's own 5V output (not through the BOE regulator) and the GPIO pins. The RPi has a single USB peripheral - a wifi adapter. When the servos are not running, or when they're running steadily, there's no problem, and the whole system, including the Pi, chugs along happily. When the RPi isn't doing anything over wifi, turning the servos off and on also has no effect on the Pi's operation.
However, when the RPi is using wifi heavily (I ran 'apt-get update' as a PoC) and I start turning the servos, the Pi resets. I'm assuming it detected an undervolt and rebooted to protect itself.
Would a decoupling capacitor across the RPi's inputs work to overcome these periods of "startup" servo load? Something like this:
If so, what type and size of capacitor should I use for this? Does it make a difference how far from the RPi the capacitor is placed (I don't really want to solder one directly to the Pi)?
(Yes, I know, I used a relay symbol to depict the servo in the CircuitLab diagram, but they didn't have a "servo" block. Just imagine it as "thing that draws a lot of current for a very short time".)