As options for three-cell Li-ion/LiPo charging, you may choose from
Alternatively, you may use LTC4007 (datasheet), however, this requires an input voltage of at least 6V, so you'll have to supply an in-between boost mechanism from the USB voltage of 5V.
The circuit you show is essentially OK in general operation but has the significant disadvantage that, as described, it deep cycles both batteries and reduces batterry life, even if solar energy available > required load energy. You can largely overcome this by cycling when Vbat falls only slightly. The changeover switch can be automated using 2 x MOSFETs and a comparator.
If switched manually you will get a changeover "blip" which the 50 uF will not do a lot to limit. 50 uF will drop 1 volt in 50 microseconds at 1A so in 25 uS at 2A. Your switch would need to be "rather fast" to achieve this. The comparator plus two MOSFETs as switches solution 'fixes' this with a suitably fast changeover. However, there are potentially better ways.
If you connect the battery to the load via an on off switch and the charger to the battery directly (assuming an internal diode or equivalent) the circuit will work OK in most cases. Problems might occur if you some advanced charging system (eg MPPT of some flavours) but in most cases there should be no problem. There may be some interesting "boundary conditions" (see below).
Consider:
Assume:
- Charger capable of > 2A - say 2.5A.
- Battery max Icharge = 2.5A (set by desihn by charger)
- Load = 2A.
- Battery say 50% charged.
- Charger capable of proper CC/CV LiPo charging with Vmax = say 4.2V and tail to say 20% of Imax = 20% x 2.5A = 500 mA.
- The solar charger should be able to charge a worst case discharged battery safely - but that is really outside the scope of the question.
Charger sees load of semi-charged-battery + 2.5A = > 2.5A.
Charger "does what it can" and supplies 2.5A.
Battery charges in CC mode at 2.5-5 = 0.5A.
System voltage = battery voltage will rise as battery charges.
When /if battery reaches max voltage (ie Vbattery = say 4.2V) it will revert to CV tail (4.2V)
Boundary condition: As mentioned above, the presence of the load current hides the battery "tail current" state from the charger. As follows:
Charger now sees 2A load current + battery CV tail current.
As the load current swamps the battery tail current the charger will never "trip" the battery charging and charging will continue indefinitely as long as battery tail current + load current > 500 mA. If you charged the battery "all day long, everyday" in this mode and I load always > 500 mA then the battery would get damaged. But if load is occasionally removed or reduced to<< 500 mA the charger will trip off.
How much this matters depends on load and charging characteristics and a look at the typical load vs time situations will allow you to assess what should be done.
There are various "work arounds". One easy one is to stop charging at Vmax with bo CV current tail. This reduces available battery capacity t about 80%-90% of what you'd otherwise get - and usefully extends battery cycle life.
The switch changeover system is not without its bad effects on the batteries.
If you discharge to say 3.3V you are effectively doing multiple deep discharge cycles and battery cycle life will be low.
If Iload < Icharger_available then you COULD run the load on the solar charger with the bttery uninvolved. However, the changeover switch system does not account for this and cycles the battery unnecessarily and reduces its life.
The following is an "idea starter" only.
When Vp[v is high enough it will supply the load directly.
If Vpv is high enough and if the battery requires charging it will also charge.
Diode D1 is shown as an 1n5819 but ideally would be a MOSFet arranged as a "zero voltage drop" diode. If panel does not provide enough power for load battery will controbute.
This circuit "needs work" but has the makings of a useful system.
simulate this circuit – Schematic created using CircuitLab
.
Best Answer
Most LiPo chargers don't charge a LiPo battery with a load attached correctly, because the load current interferes with the charging algorithm.
Charger ICs that can support a load while still charging correctly exist, but your MCP73831 isn't one of them. The MCP73871 is; it supports load sharing and can supply a load while charging the battery.
You could add a load sharing circuit to your MCP73831 if you want to get rid of the switch; see MCP73831 Li ion battery charger problem with load sharing circuit for an example of how to go about it. There's also a Microchip application note that describes how to do it.