1 battery for powering arduino, motors, and raspberry pi

jombo:
Dear all,

I am working on my own robot.
It has:
2 DC motors which are connected to 5 AA bateries.
a raspberry pi which is connected to a 5v miniusb phonecharcher
an Arduino, which is connected to/powered by a USB port of the raspberry pi
a servo which is connected to the same 5 AA bateries as the 2 DC motors.
a microsonic distance sensor which gets its power from the aruino.

The idea is to have the whole setup running on 1 power source consisting of one or more rechargeable batteries.

At the moment de motors slow down if i use the servo.(because they are on the same 5 aa batteries.)

How can I prevent that with the new powersource which will also power the raspberry pi and the arduino?

You could replace your phone charger with something like this: 5v usb boost for sale | eBay

Connect it across three of the AA batteries (five is too much input). It should adapt to the power drops.

Be sure to add decoupling capacitors on the output from that board - at least a .1uF ceramic and a bigger electrolytic (for speed+capacity).