this is a good thread. I would like to run a picaxe circuit off 4 x 1.5V rechargeable AA batteries, using the LED-series resistor trick as a good enough guide when the batteries were getting tired. The whole circuit would have a USB socket allowing it to draw 500mA from a laptop's USB scoket.
What I wanted to do was, when the batteries get to say 2.5V, to allow 5V from the laptop to charge the AA batteries. From what I've heard tho, you want slowish charging - maybe only 100mA per hour. Not sure how I would limit this without getting fancy, extra ICs. I can measure the battery voltage rising OK, as the LED-series resistor value feeding into the ADC pin on the picaxe will of course rise. When the batt supply voltage hits around the 5V mark, turn off the charging bit.
(I thought a picaxe OUT pin could switch on a small transistor connected to the USB 5V, as the piacxe pins can only handle 20mA from memory)
I'm a bit loathe to just throw 5V @ 500mA at the 4 AA batteries, in case they fry...
All comments gratefully received!