Hello!
One thing allways bugged me when building something portable, the circuit needs electricity.
I am a bit tired of 9V blocks or Li* cells with a LDO, 12V AA series battery packs, 2-3 AA battery packs and so forth.
I would like a single solution, all in one, neat and tidy.
Over the years i have come to like LiIon cells, and early last year i discovered the 18650 and 14500 formfactor as something reliably available and mostly cheap.
So... for the past weeks i have been working on a small board, it should to this:
Charge the Cell with a selectable current from 100mA to 1A if the cell allows it.
Use either a USB-Port or Phone charger as the power source with a µUSB connector.
Protect the Cell from over charge and over discharge because i do not want to rely on protected cells.
Keep loosely track of the charge and discharge state with a fuel gauge.
Monitor the cell voltage.
Provide 3.3V at 500mA over the whole discharge cycle with a low Iq.
Provide 5V at 500mA over the whole discharge cycle with a low Iq.
Provide 12V at 50mA over the whole discharge cycle with a low Iq.
Provide a clear and meaningfull interface to show the charge or discharge state,
not just one LED that lights up when charging.
The minium load should be around 100µA, and the current consumption of the circuit should be around the same.
One rail should allways be available for the logic and the others can be switched on demand.
For example ATMega 328P in power down mode and a DS3231 RTC on the 3.3V rail will draw around 200µA, on top of that 100µA for the "battery circuit".
That is still a lot standby current but something that is acceptable.
The µC can wake it self to perform a task, for example measure the ambient temperature and go to sleep again or be awakend by a level interrupt with a button press.
The parts selected are:
3.3V
Linear LTC3440 buck-boost regulator
http://www.linear.com/product/LTC34405V
Microchip MCP1640 boost regulator
http://www.microchip.com/MCP1640417196612V
Not shure yet
LiIo protection and fuel gauge
Maxim DS2764 with IRF7324 p-channel mosfet
http://www.maximintegrated.com/en/products/power/battery-management/DS2764.htmlhttp://www.irf.com/part/_/A~IRF73245V input LiIo Charger
Microchip MCP73833
http://www.microchip.com/MCP73833Charge current selection
Cypress CY7C65213 USB Serial interface with charger detect
http://www.cypress.com/?mpn=CY7C65213-32LTXIAnalog 4052 multiplexer
I dont think i have to link this one

Yes, there are a bunch of better chips out there for either one of the listed above but there were some limitations. For one i do not want packages with hidden pads/legs since i handsolder and hate parts with hidden pads.
I do not want exotic and expensive parts (except for the DS2764) and i am limited by what is available in small quantities without paying through the nose.
Why 3.3V, 5V and 12V? Allmost everything on my bench runs at 3.3V, sometimes there is the odd part that demands 5V and one additional 5V regulator will not make that much of a difference.
The 12V rail is to be used by opamps and some fancy stuff in the future, not much power on this supply is needet.
For example, the MCP73833 provides three outputs to indicate a fault, connected power supply, charging and charge complete, on top of that it has a NTC output to monitor the battery temperature.
There are chips out there who do not need external parts to select the charge current, but they are 5 times as expensive.
The charge current should be selectable through a parallel 2 bit interface, a analog multiplexer does this nicely.
The LTC3440 buck/boost was the only part with non-legless package readily available to me.
The MCP1640 boost is cheap...
The DS2764 is expensive but it has a build in shunt resistor, a temperature monitor/compensation, a I2C interface, voltage monitor, output disconnect (hardware switch) and again is available with legs. Many other chips are only available in a QFN package.
The CY7C65213 provides a full serial interface, has a USB charger detect feature (SDP, CDP, DCP port), ensures a USB compliant current draw and controls the charge current.
Currently i have routed a bunch of breakout/testboards to evaluate the function of each component, the boards are ordered, half the parts are on my shelf and the remaining ones are ordered.
If someone is interested, i will post a few schematics and keep you updated if i do not run into a wall, loose interest or throw a tantrum caused by my lack of experience

I bet i allready have made a few big mistakes wich will bite my in the arse big time...
Greetings,
Peter