jackwilsdon wrote:... however it only lasts one hour on 2500mAh NiCad batteries.
So either 1) your curcuitry - Pi, keyboard, WiPi - are using 2500mA
Or 2) the batteries are lying
The Pi takes in the region of 700mA, the keyboard maybe 100mA, and the WiPi who knows? though probably less than 500mA
So we conclude your batteries aren't providing their full 2500mAh
Reasons for this:
1) they're old and weak
2) they've still got life in them, just not enough volts to drive the Pi after the 7805 has taken its minimum - it could need a volt of headroom to give out its 5v, meaning the batteries have to provide >6v for you to get 5v to the Pi
3) when you first started this, the batteries did their best. But having been discharged so low that the volts reached 6v, one or more of them went flat, then the rest drove it / them reverse-biased, a condition almost guaranteed to destroy nicads. After that they're old and weak
Use a switch-mode supply - boost or buck.
Boost has the advantage that all the cells will be in parallel, so share the current . that means individually they're not as stressed. Also, they can never get reverse-biased.