buildcraft pipes should work
EDIT:
yep it works a pipe or hopper on top of the machine to input empty batteries
and a wooden pipe it works best if you use a autarctic gate set to output on a fully charged item on the side to pull them out into a chest