Rechargeable Battery for TWINE2
It seems that with most products going to Li-ion or Li-po batteries, it would be wise to integrate it with TWINE too. After all, a perfectly good charge socket is already there (Micro USB), and there's still plenty of room on the PCB to include a charge chip. A Li-ion battery of a similar size to 2xAAA's would have oodles of power to run it for a considerable length of time.
Whether to have the battery permanent or changeable is the question though. Permanent is simpler, cheaper and could be more powerful for its size, but it has the difficulty that you will need to charge it where it's located which could be awkward for some people. However changeable allows a user to go and swap the battery at an instant when it's getting low.
I might have a look at testing the idea anyway, a simple charge circuit would be easy to incorporate into it from the USB socket, and as long as TWINE doesn't get upset at having 4.2v at its battery terminals, it should work just fine.
[Edit] Just found out recently that most of the chips are rated up to 3.6v, so there may be issues going up to 4.2 at full charge.
Answers
Ok I've had a play and found my TWINE worked fine at up to 4.4v on the battery terminals, I didn't take it any higher as it wasn't necessary. The LED got really bright at this voltage, so I've changed it's resistor from 75ohm to 560ohm, this will alleviate the going blind problem, save some current draw and generally be easier to look at, even at normal battery voltage.
There was no noticeable increase in current draw, so I'm making the assumption that I'm not stressing the components unduly.
This means once my components come in (eBay + Christmas could slow it down), It should be no problem to have a charger IC, 3 other components around it, and 2x 600mAh 3.7v Li-Ion AAA's in parallel running my TWINE. Initially I'll probably run a single battery, and bypass the second battery position with a link. Later I'll swap the lower battery terminals to match the upper ones, re-label the orientation on the PCB, and make the appropriate track changes underneath (1 track cut and 2 links).
I'll solder the IC (BQ24080) to a small piece of brass about the same size as the Wi-Fi module to be used as a heatsink, and mount it above using foam double sided tape. Only 3 wires are necessary to connect it to the TWINE, +in (on the input side of FB1), GND (on the -Batt terminal), and +Battery (on the + Batt terminal of course). I'm hoping to keep the current set resistor tucked away between pins 6 & 7. Decoupling capacitors aren't likely to be needed, as the TWINE has these already. I'll set the charge current at 300mA to start with to limit heat production, extend battery life, and aid compatibility with any USB plug pack, but the IC can go up to 1A.
The issues I see that could come up are...
a) Low battery voltage warning will not be correct, so by the time it sends the email, it's basically already flat. Li-Ion's end of life is about 3.0v.
b) Extra heat created by the charging circuit may perhaps send the temperature measurement higher than ambient during charging, however this is a short term issue, 3-5 hours should be the maximum charging time needed. This should settle within 30 minutes after charging is complete.
c) Warranty - of course this would likely void any warranty I may have.
Further reports will come when I've played more.