? re: battery fuel gauge

Status
Not open for further replies.

rshack

Full Member
Verified Member
Nov 4, 2010
66
27
Gulf Coast
Am posting this here instead of in the modder's forum because, as a noob, this is the only place I am permitted to post. I am a noob mainly because I have been reading, not posting, so as to not clutter up the place. Anyway, I have a question about a mod component... I want to build a mod that has one tri-color LED that works like a battery fuel gauge "idiot light". I want the LED to display one color for "the battery is more-or-less full", another color for "the battery is about halfway used up", and a third color for "recharge now before it gets too low". I don't know how to do this. Provided that I misspell "guage" on purpose, I see a whole page of things that are battery fuel gauges: PMIC - Battery Management | Digi-Key However, I don't have the knowledge to know which (if any) of them might be most appropriate. I also don't know what additional components are required to make such things work with an LED. While I can find tricolor LED's, they all seem to be RGB. I would prefer one that has amber instead of blue (for "traffic light" color coding). I want to be able to implement this for a few different mods. I want to make one that is just a plain-ole-3.7, another that is 3.7 boosted to 5v, another that is 6v regulated down to 5v, and one that is a variable-voltage mod. I want to be able to do it for both single batteries and for double batteries. If anyone here can clue me in, I will be in your debt. And when I say "clue me in", that pretty much means talking to me like I'm an idiot. (I know next-to-nothing about electronics but am mostly trainable, and have made simple boxmods with zero difficulty.) thanks... ps: I seem to be unable to format this into discrete paragraphs rather than just 1 too-large blob of text... what am I doing wrong?
 
Last edited:

rshack

Full Member
Verified Member
Nov 4, 2010
66
27
Gulf Coast
Hi rshack ! Welcome to ECF !
Say hi to a few people, ask more questions, and you can get your post count up so you can go to the modders forum !

Thanks for the good suggestion. I have been reluctant to make posts that say nothing much, for fear of cluttering up the computer screens of everybody else. But i do get what you're saying. So... here's a wee bit of content: I smoked analog's since 1968, and beginning in 1987 I became very good at completely failing in my efforts to quit the damn things. Then, my bride of 25 years got some eCigs and I tried them out of slight curiosity, just to experiment... and within 48 hours I had quit analogs *by accident*. That's right, I quit smoking by accident. Which has me completely flabbergasted (in a very good way). I have zero desire for analogs and zero concern that I will ever go back to them. And it all seems like something that just happened to me, not something I did. I still find it hard to believe, but it's true...
 

AttyPops

Vaping Master
ECF Veteran
Jul 8, 2010
8,708
134,470
Hc Svnt Dracones - USA EST
Dude, just say "hello" back a couple of times.... Compliment CF on her great new avatar, etc. You can't offend the newbie section by overposting in your own thread (believe me... it's done all the time). The 5 post min is to stop spammers, not to stop you.

The modder's section would love to have you, I am sure. Great group of people; they will help you out with this. I don't know a lot about the "capacity used" indicator that you are suggesting, but it is a great idea. I think the protection circuits use voltage drop off as a measure. That would imply a voltmeter type of gauge. However, the voltage curve is not linear. I'm sure some of the more experienced modders have played with this.

Welcome to ECF! Let us know how this goes!
 

rshack

Full Member
Verified Member
Nov 4, 2010
66
27
Gulf Coast
Dude, just say "hello" back a couple of times.... Compliment CF on her great new avatar, etc. You can't offend the newbie section by overposting in your own thread (believe me... it's done all the time). The 5 post min is to stop spammers, not to stop you.

The modder's section would love to have you, I am sure. Great group of people; they will help you out with this. I don't know a lot about the "capacity used" indicator that you are suggesting, but it is a great idea. I think the protection circuits use voltage drop off as a measure. That would imply a voltmeter type of gauge. However, the voltage curve is not linear. I'm sure some of the more experienced modders have played with this.

Welcome to ECF! Let us know how this goes!
Thanks for the, um, er, hint ;-)

So far, people talk about doing it with multiple LED's and diodes... which (I think) means that all that's being measured is voltage. Meanwhile, TI has some chips that look at multiple things like battery discharge rate, temp, battery age, recent load, etc. and calc's things like voltage, current, and time-til-empty. Now, in my ignorance, that sounds a whole lot better than just voltage... because how much does voltage really tell you about how much battery you've used up vs. got left? Beats me. Hoping to hear from somebody who has way-more-clue about this than I do. Maybe it involves using 13 other chips and is not worth the hassle, wish I knew...but I don't...
 

Scottbee

Vaping Master
ECF Veteran
Sep 18, 2009
3,610
41
Okauchee Lake, WI
"Battery voltage under load" is a fine indicator of remaining capacity for this type of battery. Is it perfect? No... not even close. But it is adequate. Unloaded voltage hardly tells you anything.

That's why most gauges of this type have a "push to test" button. When you push the button it puts a relatively small load (resistance) on the battery and looks at the loaded voltage. Run that into a few comparators and drive your LEDs off of the outputs.
 

rshack

Full Member
Verified Member
Nov 4, 2010
66
27
Gulf Coast
"Battery voltage under load" is a fine indicator of remaining capacity for this type of battery. Is it perfect? No... not even close. But it is adequate. Unloaded voltage hardly tells you anything.

That's why most gauges of this type have a "push to test" button. When you push the button it puts a relatively small load (resistance) on the battery and looks at the loaded voltage. Run that into a few comparators and drive your LEDs off of the outputs.
Thanks for that...

If I have a tri-color LED with 4 leads (3 + 1), I assume I can use that 1 LED to do the job of 3 separate ones... but how to have one color ("full") take precedence over the others ("half-full" and "almost empty")? And, for a given batt or batt's, are the proper resistor values already known, or do I need to experiment with umpteen different ones to find out where half-full and almost-empty are?

ps: Not sure who your avatar is, but I hope it's not you... looks like an axe-murderer...
 

rshack

Full Member
Verified Member
Nov 4, 2010
66
27
Gulf Coast
Good Eveinng rshack. Scottbee uses Hugh Laurie (sp?) aka House for his avatar. One more post and you can go running !!


So....how was your day ?
You're a sweetheart ;-)

If House has a show, I'm guessing he's not an axe-murderer... (or else the world is going to hell faster than I thought it was)... so, why does he look insane?

My day was great... except for the small burn from grabbing a metal thingee after soldering on it, without waiting for it to cool off. I know better than to do that, but my fingers don't. How many times does that happen before your fingers finally learn to not grab it?

No more posting fun or soldering fun today... one batch of kids and grandkids just showed up... I'm especially bonded with the youngest one ever since he and I stayed up all night together for a few nights in a row, back when he was still pretty new, so his parents could get a full night's sleep... it made me feel good to find out I could still out-smart a baby, plus it kept his parents from losing their frigging minds due to sleep deprivation...
 
Status
Not open for further replies.

Users who are viewing this thread