Electronic – Using Li-Ion battery while charging

chargingdc/dc converterlithium ion

I'm trying to design a custom intelligent electronic cigarette battery, but I'm more of a programming guy. I know basic electronics, but I need some help with the details.

I've sketched up an outline of my future ecig, with STM32 as a core, high discharge current 26650 battery, 2" e-ink display and some powerful DC-DC converter like PDT012A0X.

But I'm unsure how to go on about charging that thing. I want it to have embedded charging circuit taking power from the USB port. But I also want to have an ability to use it while it's charging.

There can up pretty high currents running from DC-DC converter to the coils (probably up to 10A), so that's where I find my knowledge lacking.

How would one go about that problem? Should I stop the charging process when the coils are firing up? Or it would be OK for it to continue?

I would really appreciate your help or some links where I can educate myself more.
Thanks.

Best Answer

(1) If using USB as an energy source then maximum current that can be sourced from USB is well below the maximum allowed battery charging current so you will have no real problems doing what you describe. ie if the charger is connected to the battery and load is applied the battery discharge current will greatly exceed the available charging current and there will be net discharge. When the load is removed the charger will 'decide' whether the battery is in CC or CV mode. If in CC mode then the available USB charge current will be applied. If in CV mode the charger will limit voltage to Vmax and charge current will be set by the battery.


(2) If energy is from a source where Isource max > I battery_charge_max then ...

By definition you cannot charge & discharge a battery simultaneously - the battery only sees the net current flow. This is not pedantry but physics. What can get confused is the charger circuit, if it does not properly account for where the the current flow is going and how much there is.

If you can monitor actual battery current as opposed to charger current (or ideally both) then controlling and monitoring what the battery receives is "just a matter of engineering".

If you are able to monitor battery current AND if you are happy to allow battery voltage to drop to be at a maximum of slightly less than V_cv, during simultaneous use, say down from 4.2V to 4.1V, then you can simply control charg-ER current such that Vbat_charge < Icc and Vbattery = Vcharger < V_cv. The battery will then always be in a legal state.

If you can control V_bat_charging and V_charger separately (just two MOSFETs and willingness to drop a little voltage across the charger-to-battery one and dissipate the energy difference, then you can charge battery independently of operating the heater. You could use a buck converter to drop this difference but dissipation will usually be bearable - probably not more than a few Watts usually.

I'm happy to expand on the above as required.

Some might argue that "electronic intelligent-cigarette" is an oxymoron :-).

Added: For USB sourced charging the load current substantially exceeds the available charging current and the battery will at all times undergo net discharge when the load is being supplied. For other more capable charging energy sources this may not be true.