The circuit below will trickle charge a four cell pack of AA or AAA NiMH batteries. The circuit draws current from the +5v available a USB connection and pumps about 70ma of current into the battery.