Shop OBEX P1 Docs P2 Docs Learn Events
Balance Charger Design Idea — Parallax Forums

Balance Charger Design Idea

Beau SchwabeBeau Schwabe Posts: 6,566
edited 2010-12-16 11:20 in General Discussion
I just wanted to get some feedback on this design and what you might think.

In particular I'm interested in any feedback from the cascaded high-side control. Works nice on the simulator, but I haven't had a chance to 'plug it in' just yet perhaps next weekend.

Ultimately I would like to expand this idea to other battery chemistries as a "Universal Chemistry Battery Charger".
933 x 773 - 143K

Comments

  • davejamesdavejames Posts: 4,047
    edited 2010-12-13 23:19
    Mr. Schwabe - some questions if you don't mind...

    1) It appears that the NPN xistors will be saturated; what's Vce for those guys?
    2) What's the Li-Poly voltage?
    3) Can you elaborate on what you expect the ouptut structure to do?


    Regards,

    DJ
  • Beau SchwabeBeau Schwabe Posts: 6,566
    edited 2010-12-13 23:59
    davejames,
    1) I Assume you mean the NPN's on the Li-Poly side -- Those NPN's will saturate when
       P0,P1,P2, or P3 are LOW -- They are meant to be PWM'd or pulsed very briefly and
       act as a 'shunt' to prevent the Li-Poly cell from gaining a higher voltage over the
       other cells.  The Bottom 3 NPN's would have a small resistor to prevent a direct
       short across the Li-Poly Cell.
    
    2) The Li-Poly voltage is 3.7V per cell (4.4V under a charge)
    
    3) -  The charging is done through the two 10 Ohm resistors and the 'Top' most NPN
          drive transistor on the far left.
       -  The remaining NPN drive transitors are normally 'OFF', and are there to 'throttle'
          a cell from a voltage imbalance with reference to the other cells.
       -  The PNP's provide a control path to the drive NPN's across their B-C junction
       -  The NPN's between the Propeller and the PNP form a cascade of high-side drivers
          where the High-Side voltage appears at every PNP Emitter stage.  When P0,P1,P2
          or P3 are LOW, the PNP turns 'ON' creating a darlington effect with the
          coresponding NPN drive transistor.
    
  • Roy ElthamRoy Eltham Posts: 3,000
    edited 2010-12-14 00:24
    I don't know much about charging circuits, but I just wanted to comment that it looks like this will only work with up to 3S LiPo packs, but 4S to 6S packs are common sizes, and I have seen up to 10S packs on HobbyKing.

    How hard would it be to expand this to at least 6S? Also, can it "autosense" to work with whatever size LiPo you hook up?
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2010-12-14 04:05
    Li-Po (or at least lithium) are likely to be the most tempermental of batteries to charge. Many require a pre-charge phase that is a trickle to get started, then a full rate charge, and then a top off. I suppose all that can be done in software via PWM. But I keep mentioning that I personally think the best feedback for a charger is a thermal sensor on each battery as hazardous conditions always start with overheating. While people may buy a charger that stipulates NOT for unobserved use, we all walk away from chargers as soon as we get the batteries into a charge mode. It just seem wiser to have thermal feedback with the means to back off the charger when heat begins to build.
  • sam_sam_samsam_sam_sam Posts: 2,286
    edited 2010-12-14 05:38
    Beau Schwabe

    I am going to watch this post to see how you do this

    I want to something like this myself
  • Beau SchwabeBeau Schwabe Posts: 6,566
    edited 2010-12-14 07:11
    Roy Eltham,

    "...it looks like this will only work with up to 3S LiPo packs" - Yes, that is correct. 3-Cell packs are the limit with the provided circuit.

    "...but 4S to 6S packs are common sizes" - for most of what I would use, 11.1V (3-Cell) would be plenty, I suppose 14.8V (4-Cell) and 22.2 (6-Cell) would be useful also.

    "How hard would it be to expand this to at least 6S?" - Not very hard at all, the circuit is step-and-repeatable to some degree, The 10K control resistor to the PNP might need to increase, and you would need to adjust the resistor divider to the ADC, but it should be fine with a MCP3208 instead of the MCP3204 provided in the schematic.

    "...Also, can it "autosense" to work with whatever size LiPo you hook up?" - A simple voltage check from the ADC across the cell would determine the presence or not of a cell. In the case of an absent cell, the 'SHUNT' transistor could be energized to complete the charging circuit.


    Loopy Byteloose,

    Yes, the pre-charge phase would be PWM controlled, and yes, I agree, that some sort of an 'OR'ed temperature sensing could be managed.
  • davejamesdavejames Posts: 4,047
    edited 2010-12-14 08:36
    ...ahhhh, now that I know what you had intended - I find it a novel concept, and would love to hear how it works out after the build.

    The mention of thermally sensing the cells makes a lot of sense.


    Regards,

    DJ
  • hover1hover1 Posts: 1,929
    edited 2010-12-14 11:23
    davejames wrote: »
    The mention of thermally sensing the cells makes a lot of sense.

    Why monitor? Because something like this?

    http://forums.parallax.com/showthread.php?120396-Never-leave-a-plugged-in-battery-charger-unattended!&highlight=Charger

    http://www.youtube.com/watch?v=z3o_2mwRPdw

    Jim
  • davejamesdavejames Posts: 4,047
    edited 2010-12-14 13:04
    ...wow!

    Um, yes.

    DJ
  • Beau SchwabeBeau Schwabe Posts: 6,566
    edited 2010-12-14 23:12
    Not that I really want to try this, nor do I advise trying this. ...In all of those 'Li-Poly' explosion videos, how much OVER the limit are they really being pushed to get them to do that? I would keep in mind, that ALL batteries are capable of doing this if they are improperly handled, and especially so if the 'out-gasses' (mostly dangerous Hydrogen compounds) are confined until a grand faunally.

    ...and yes, I did see Phil Pilgrim's post and his dealings with batteries. I have had similar problems with NiMh leaking while under charge, resulting in a run-away charger failure. Fortunately I caught it in time because the smell wasn't right.
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2010-12-14 23:59
    Firstly, a 'balance charger design' might be a good Blog topic as it develops. Li-Po batteries are preferred for robotic projects as they recharge fast and have a very high energy density. Also, the same principles can be applied to NiMh or other chemistries.

    Secondly,
    I have had one very negative experience with Li-Po. I purchased a spare battery for an R/C airplane that was about $50USD. A few weeks later I put it on the recharger that came with the airplane kit and it swelled up like a pregnant guppy. It didn't explode, but one wonders how close it was to doing so.

    Since then I have had simlar swellings with Lead Gel cells that I have put on a charger than wasn't really matched to their capacities. Now I am building a charger than has multiple current choises and varies the voltage out. But it also includes a thermal sensor that shuts the charge cycle completely down until the battery cools off whenever overheating occurs.

    One can simply use a themistor, a BasicStamp and a solidstate relay with any charger to set a thermal shutdown. So it seems so silly that nothing is out there on the market with this safety feature. I am completely fed up with buying sealed rechargible batteries and then prematurely destroying them with inappropriate chargers. Having put a lot of thought into the problem, heat remains the best indicator of abusive charging - after all, this is more about chemistry than about electronics.

    The balance charger is something that I have often wondered about, but couldn't seem to come up with a wiring plan that might work. If I had a good charger, I'd be more trusting of using these rather big and expensive battery packs.
  • sam_sam_samsam_sam_sam Posts: 2,286
    edited 2010-12-15 06:35
    I have to agree with this for the most part
    Firstly, a 'balance charger design' might be a good Blog topic as it develops. Li-Po batteries are preferred for robotic projects as they recharge fast and have a very high energy density. Also, the same principles can be applied to NiMh or other chemistries.

    Secondly,
    I have had one very negative experience with Li-Po. I purchased a spare battery for an R/C airplane that was about $50USD. A few weeks later I put it on the recharger that came with the airplane kit and it swelled up like a pregnant guppy. It didn't explode, but one wonders how close it was to doing so.

    Since then I have had simlar swellings with Lead Gel cells that I have put on a charger than wasn't really matched to their capacities. Now I am building a charger than has multiple current choises and varies the voltage out. But it also includes a thermal sensor that shuts the charge cycle completely down until the battery cools off whenever overheating occurs.

    One can simply use a themistor, a BasicStamp and a solidstate relay with any charger to set a thermal shutdown. So it seems so silly that nothing is out there on the market with this safety feature. I am completely fed up with buying sealed rechargible batteries and then prematurely destroying them with inappropriate chargers. Having put a lot of thought into the problem, heat remains the best indicator of abusive charging - after all, this is more about chemistry than about electronics.

    The balance charger is something that I have often wondered about, but couldn't seem to come up with a wiring plan that might work. If I had a good charger, I'd be more trusting of using these rather big and expensive battery packs.
  • sam_sam_samsam_sam_sam Posts: 2,286
    edited 2010-12-15 06:40
    I like this Idea

    Beau Schwabe (Parallax);960909]Roy Eltham,



    "How hard would it be to expand this to at least 6S?" - Not very hard at all, the circuit is step-and-repeatable to some degree, The 10K control resistor to the PNP might need to increase, and you would need to adjust the resistor divider to the ADC, but it should be fine with a MCP3208 instead of the MCP3204 provided in the schematic.

    "...Also, can it "autosense" to work with whatever size LiPo you hook up?" - A simple voltage check from the ADC across the cell would determine the presence or not of a cell. In the case of an absent cell, the 'SHUNT' transistor could be energized to complete the charging circuit.
  • Tracy AllenTracy Allen Posts: 6,664
    edited 2010-12-15 09:59
    Interesting idea Beau. I don't like 12.2kΩ constant load across each stage of the battery pack (to bring the V down to the ADC inputs). Maybe a mosfet 4-channel analog switch could direct the sensing to a 1-channel ADC?

    The series structure with the NPNs in parallel with the cells--hmmm. It definitely needs resistors to prevent direct shorts, and no accidents with the algorithm! The resistors should probably be in series with the batteries, not the transistors, no?

    The algorithm? Top switches all have to be ON in order to deliver current to the bottom cell of the totem pole. So supposing the bottom cell is the weakest, the top two cells have to be discharged while the bottom cell is charged up to what did you have in mind? Maybe to equal the weakest among the top two. Subsequently the weakest among the top two is charged until the top two are equal. Then back to the bottom one to charge it, and at the same time the top two have to be discharged. Now they are all equal. Great! Where from there? Move up or down the totem pole Starting at the bottom seems like a losing proposition. Every increment of charge delivered to the bottom one is at the same time extracted from the top two. Then the algorithm has to go up the totem pole and replace that. Same thing with starting at the top. Every increment of charge put in at the top is removed when the algorithm moves down the totem pole. I'm getting dizzy!! What am I missing, Beau?
  • Beau SchwabeBeau Schwabe Posts: 6,566
    edited 2010-12-15 22:43
    Tracy Allen,

    I updated the original schematic at the top of this thread and attached to this one.

    There is no special algorithm based on the position of the cell.
    Q3, Q6, Q9, and Q12 form a voltage 'buffer' to a High-Side voltage cascade.
    When voltage to the emitter's are HIGH (3.3V) the transistors are 'OFF', allowing the
    High voltage to be present at the Base of each PNP through the B-E diode junction.
    
     Q2's base is about 14.4V (assuming that the power supply is a steady 15V) while 
     Q5's base can vary from 6.9V to 12.6V
     Q8's base can vary from 4.4V to 8.2V
    Q11's base can vary from 1.9V to 3.8V
    
    When Q3, Q6, Q9, or Q12 turn 'ON' with a LOW (0V) to their Emitter, the respective
    PNP (Q2,Q5,Q8, and Q11) will also turn 'ON'.  This in a pseudo-darlington configuration
    will also turn 'ON' the respective power NPN transistors (Q1,Q4,Q7, and Q10) that act
    as a battery shunt.
    
    Normal operation however is to monitor the individual Cell voltage.  A Li-Poly below
    2.5V is really considered a dead cell and no charging should ever take place at this
    point.  When a Li-Poly reaches 4.4V it is considered charged.
    
    In this circuit during Charge Q1,Q2, and Q3 are 'ON' and may be PWM'd.
    Q4 through Q12 are normally 'OFF'...  This allows the batteries to charge in series with
    the main supply voltage.
    
    The purpose of the 'Balance charger' is to monitor Each Cell during the series charge.
    If one of the Cells happens to climb higher than the rest, then the power NPN transistor
    is turned 'ON' (can also be PWM'd) forming a shunt or LOAD to the higher Cell.  This
    allows the remaining cells to 'catch up' during the charging process.
    
    T1 and T2 form an ambient temperature monitor... T1 is placed within the compartment with
    the battery pack under charge, while T2 is external of the battery compartment.  If there
    is any temperature gradient to far out of bounds the charger will shut down.
    

    attachment.php?attachmentid=76376&d=1292479375
  • sam_sam_samsam_sam_sam Posts: 2,286
    edited 2010-12-16 05:17
    Beau Schwabe

    What are the part # for Q 1 to Q 10

    Thanks
  • Beau SchwabeBeau Schwabe Posts: 6,566
    edited 2010-12-16 07:28
    I have some MJE150032G's left over from another project, which may not be completely ideal (<-- typically I would look for a higher Hfe), but for this application they should be ok for Q1,Q4,Q7, and Q10. The maximum current requirement is only about 2A.

    MJE150032G Datasheet Reference:
    http://www.fe.infn.it/~barion/docs/MJE15032G.pdf

    The STX690A would be a better solution than the MJE150032G:
    http://www.st.com/internet/com/TECHNICAL_RESOURCES/TECHNICAL_LITERATURE/DATASHEET/CD00225079.pdf

    Also, the ZTX1048A would be a better solution than the MJE150032G:
    http://www.diodes.com/datasheets/ZTX1048A.pdf

    Q3,Q6,Q9, and Q12 could be generic 2n3904's. 2mA to 3mA maximum current requirement.

    Q2,Q5,Q8, and Q11 could also be generic 2n3906's. 20mA maximum current requirement.
  • Tracy AllenTracy Allen Posts: 6,664
    edited 2010-12-16 11:20
    Okay, Beau. I spaced out on the fact that the top transistor charges all in series once balance is achieved, and that the balancing PWM is be occasional after that.

    The PNP/NPN composite is known as the Sziklai pair connection. (complementary to the Darlington pair with NPN/NPN or PNP/PNP).

    I still have few concerns about the circuit.

    Maybe the balancing PWM can be driven through capacitors from the Prop, so that by no programming "accident" or failure can the batteries be left short circuited.

    The sense resistors put a constant load on the batteries even when they are sitting idle. The worst thing is to return to a project that was left on the shelf and find the batteries dead! It is only about 0.6mA from the top battery, but that does add up over time. Not only that, unequal sense current from the batteries leads to unbalance. That is less of a problem of course with high capacity packs where 0.6 mA is next to nothing in the short term.

    Commercial Lithium battery packs most often already include an integrated charge balancing PCB, and also an unforgiving undercharging shutoff and a polymer fuse to prevent sustained high currents.
Sign In or Register to comment.