This is the more sophisticated battery level gauge than the earlier op-amp based one. It uses a microcontroller to do the level testing, and has solder-blob links for selecting from 1 to 8 cells.
The design is refreshingly simple with a selectable voltage divider for different cell counts, and all the threshold detection done with software.
Mid-play video-adverts are annoying in technical videos, so I don't enable them. If you appreciate that and enjoy my content then you can help support the channel with a contribution of a dollar or two a month on Patreon. That also lets you critique the (advert free) videos before they are released, gives a more direct means of communication with me and also gives access to the regular relaxed Patreon live streams.
https://www.patreon.com/bigclive
#ElectronicsCreators

I featured another one of these battery level indicators recently, but this one is different. Let's Get Down close to it. So this one is based on a little eight pin microcontroller on the back and the interesting thing is that you can choose from one to eight cells and it just uh uses a potential divider to basically preset the voltage divider for the uh, the number of cells and at the moment, I've got it set for 12 volts. Well, I'll just uh I'll just show you operating so I'll turn it down because it's set for the higher voltage.

it's actually a bit brighter and it's also, uh, going to go down a more controlled manner. so that's fundamental there. And basically the battery outline in red and then four bars in green lighting at specific thresholds. Okay, right.

I can cut straight to the chase here because I've already taken the pictures and reverse engineered it. So here is the circuit board zoomed up and I shall just focus down onto this. So we've got the incoming Supply and it goes via a polarity protection diode, a standard diode to a three volt voltage regulator the three volt voltage regulator basically. then Powers the LED outline and also has a common resistor for the bar.

LEDs and it Powers a microcontroller with a little decoupling capacitor local to it. You have these bridgeable soda pads and they supplied it with just a single cell bridge but also a convenient splash of solder over the cell 2 which was bridging them which would skew the results. I removed that before I tested it and that connects to an array of Fairly Precision resistors. Noting that they've used the ones with the O1c and 47c designation that you have to look up uh, to remember.

it's not as easy as just looking at. say for instance, uh, this one 561 and going five, six and one zero 560 Ohms, which is what that one is, but it forms a potential divider with this resistor. this 10K resistor down here O1c and that feeds the input pin of the microcontroller, which then switches the four bars. Let me show you the schematic.

Here is the schematic: I'll Zoom A little bit closer at the risk of just completely over zooming. So there's the incoming Supply the regulator which I that looks a bit scrawled because I Initially just wrote in five Volt out of habit it's a three volt voltage regulator. It's called a 6513. Now it's worth mentioning.

the regulator has other numbers on it tb501g that drew a blank, but 6513 did find a regulator with the same Pinner Hp6513. It's notable, it's rated up to 40 volts. This is useful because if you set it to the highest setting here, the potential voltage is going to be eight cells times 4.2 volts equals 33.6 which is quite High I Mean it's within the rating of many regulators and it's uh, good that the current consumption of this circuitry is quite low. It's about 4.7 milliamps.

Um, let's work that out. Four points. So imagine it was. hold on.

Uh, imagine it was the eight cells times. 4.2 volts equals the 33.6 minus the 0.6 ish of the diode and minus the three volt. Um, Bing dropped on the regulator. 30 volts to dissipate.
Uh times the 4.7 milliamps. .0047 milliamps equals a dissipation of 0.14 Watts That's all right for this little regulator, so it's not going to get baked with the eight cells. Just about the need to do the maths right there. Turn the power supply off.

Sometimes it whistles at an ultrasonic frequency that somewhere you can hear, but I can't When it's up near, that's a range. So there's a three volt regulator. There's a little decoupling capacitor that's actually over next to the microcontroller. There's the resistor that's in series with six LEDs to light the outline of the sort of battery outline, noting that resistor and the LEDs are in the opposite position.

but I just drew it that way. It doesn't matter as long as the resistor is in line anywhere. it limits the current through them and then one common resistor for the four LEDs that have their negatives connected to the microcontroller. Then we've got these uh, this resistor chain.

So say for instance, you had a three cell pack is that had it configured there You'd link across here and that means that the incoming Supply would go via Uh 49.9 K resistor and form potential divide over the 10 key resistor which would then go to the microcontroller and it is just programmed internally with the thresholds that it will switch to LEDs. There is a slight delay suggesting that it's kind of applying a bit of air software filtering in that, but it's missed one trick. and I think this would have been really handy. Um, what? they could have done it? As the voltage increased, it was one two three four until all the LEDs are lit.

What it could have done if the voltage kept increasing and it went above the programmed Uh sort of voltage thresholds by a significant degree. It could start flashing the display to actually tell you the battery was potentially being overcharged. That could have been a useful feature. So the fact this has these Uh sell thresholds optimized for Lithium means that unlike the other one I featured recently with the Op Amps, you can't just change resistors and function it to a different Battery Technology That has to be done the microcontroller.

But for reference, the voltage threshold to operate that the single step with a single cell was above 3.4 volts, the second step to be above 3.55 The Next Step Above 3.7 and the full charge. the four bars above 3.9 and that creates roughly to what I was getting the three cell which is three times that, roughly 10 volts, 10.7 11.3 and 12 volts. It's quite a useful thing though. that's uh, very handy.

It's just basically a two-wire connection to whatever pack you have, and it can be used to give a rough indication of the uh, the current charge status because Lithium cells are fantastic for the fact that you know it's a fairly precise voltage for a specific state of charge, but that is it. Very clever. Very neat little unit. Um, quite a smart layout as well.
Very easy to reverse engineer thanks the fact it was all done by the microcontroller, but that's it. The more is it more sophisticated? the the more versatile Um battery level indicator for Lithium cells of up to eight cells.

15 thoughts on “Fancy 1-8 cell lithium battery level indicator”
  1. Avataaar/Circle Created with python_avatars cmyanmar13 says:

    A universal version would have two potentiometers to set high and low thresholds.

  2. Avataaar/Circle Created with python_avatars Glenn Brockett says:

    Surprised that they didn't just use 3 jumpers. binary for 0-7 (Number of cells – 1). Would have had the same encoding with fewer parts and no likeliness for bad jumper combinations.

  3. Avataaar/Circle Created with python_avatars Howard Roark says:

    BC: You mention a missed trick in displaying an overcharge condition by blinking the 4 bars. How would the schematic change to allow for this or would it be done with software in the MCU?

  4. Avataaar/Circle Created with python_avatars G Quizzle says:

    Took me 3 minutes to realise my phone was displaying the video upside down.

  5. Avataaar/Circle Created with python_avatars Keith Jurena says:

    Now I can add this feature to the lower grade Ryobi One packs..

  6. Avataaar/Circle Created with python_avatars Andrew Lofthouse says:

    I do like the option to change

  7. Avataaar/Circle Created with python_avatars keith king says:

    Cool 😎little module 👍🇮🇪💚🙏🏼🔋

  8. Avataaar/Circle Created with python_avatars Foogod says:

    I can't help noticing that there is one apparently unused pin on that chip, which makes me wonder if the IC itself might actually have some extra functionality which just wasn't actually implemented by this particular board. It would be interesting to monitor that pin and see if it does anything interesting as voltages change…

  9. Avataaar/Circle Created with python_avatars Andrew UK says:

    Would it of been possible to make one with a 2 digit lcd display to display it in a percentage?

  10. Avataaar/Circle Created with python_avatars Jim Muehlberg says:

    Could have made it binary too. Just imagine, 32 levels of charge! Useless, but annoying to non-techies. Remember, there's only 10 kinds of people in the world!

  11. Avataaar/Circle Created with python_avatars neilshep50 says:

    Very similar to what I did with an Atmel TINY85 microcontroller. Used Green/Yellow/Orange/Red LEDs is sequence to indicate the state of charge of a 3 cell battery pack running a Raspberry Pi, and with a critical low charge output to initiate a graceful shutdown of the Pi.

  12. Avataaar/Circle Created with python_avatars Tyrone Nelson says:

    Its a shame that this battery level display unit doesn't go up to monitoring 9 cells at 36v dc which would be quite a common battery pack voltage, unless you can modify the unit to do so.

  13. Avataaar/Circle Created with python_avatars Hola! RapidShadow says:

    IVE BEEN LOOKING FOR SOMETHING LIKE THIS FOREVER. I build custom guitars and my signature thing is putting a rechargeable battery in the guitar chargeable via type c directly into the instrument. Would LOVE to have a indicator built into to the back of it!!!!

  14. Avataaar/Circle Created with python_avatars David Ro says:

    Any idea what micro controller these companies use? I am working on a project and am using an ATTiny85 and wonder if what they use could be better or cheaper.

  15. Avataaar/Circle Created with python_avatars phyotyla says:

    I think that the voltage divider could be slightly easier and cheaper to manufacture if the top row of the resistors would be in series instead of in parallel. This way it could be made with a 10k resistor and a bunch of 20k resistors or even with just 10k resistors instead of a bunch of different resistor values.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.