Make your own LED Battery Level Indicator

Sdílet
Vložit
  • čas přidán 5. 09. 2024
  • Rapid prototypes ($2 for 10 PCBs 10*10cm): jlcpcb.com
    Previous video: • DIY Solar Tracker || H...
    Facebook: / greatscottlab
    Twitter: / greatscottlab
    Support me for more videos: www.patreon.co...
    More project information (schematic, parts list, pictures,.....) on Instructables: www.instructab...
    Parts list (incomplete, see Instructables for more, affiliate links):
    Aliexpress:
    2x LM324: s.click.aliexp...
    6x 10k Trimmer: s.click.aliexp...
    6x 2k Resistor: s.click.aliexp...
    6x 5mm LED: s.click.aliexp...
    1x Boost Converter: s.click.aliexp...
    Ebay:
    2x LM324: rover.ebay.com/...
    6x 10k Trimmer: rover.ebay.com/...
    6x 2k Resistor: rover.ebay.com/...
    6x 5mm LED: rover.ebay.com/...
    1x Boost Converter: rover.ebay.com/...
    In this video I will show you how we can use the classic LM3914 IC to create an LED Battery Level Indicator. Along the way I will show you how the IC works and explain why it is not the most precise circuit for a Li-Ion battery pack. And at the end I will show you how I created my own, more precise Battery Level Indicator circuit with a couple of simple components.
    Websites mentioned in the video:
    www.powerstrea...
    www.akkuteile.de/
    lygte-info.dk/r...
    www.akkuteile....
    Thanks to JLCPCB for sponsoring this video
    Visit jlcpcb.com to get professional PCBs for low prices
    Music:
    2011 Lookalike by Bartlebeats
    Killing Time, Kevin MacLeod
    (incompetech.com)
  • Věda a technologie

Komentáře • 563

  • @MrAnonymous878
    @MrAnonymous878 Před 5 lety +4

    i honestly have no idea half the things you said in your videos but it stills captivate me every single time

  • @mynewschannel3100
    @mynewschannel3100 Před 6 lety +121

    Brilliant!
    A project using a couple of IC's and not an Arduino or Raspberry Pi in sight, what a breath of fresh air :)

    • @mynewschannel3100
      @mynewschannel3100 Před 2 lety +2

      @Petronilo
      You missed the point, NO PROGRAMMING is required!

  • @MrJason005
    @MrJason005 Před 6 lety +83

    i'm not a big fan of promotions or adverts, but i want to thank you for putting something relevant (jlcpcb) instead of something completely unrelated (like lootcrate or something)

  • @Stefano91ste
    @Stefano91ste Před 6 lety +72

    I have created many beautiful circuits with LM3914 and LM3915 =)
    I love these ICs!!!

    • @Drxxx
      @Drxxx Před 6 lety +3

      Electronics Projects - Stefano91ste me to

  • @daanb7894
    @daanb7894 Před 6 lety +2

    I just searched how to do this about 3 hours ago and now you upload a video on it. Crazy coincidence.

  • @electronicstuff6355
    @electronicstuff6355 Před 4 lety +9

    Man, I just love this channel. It's so educational and provides hours of entertainment. Keep it going GREAT Scott!!!

  • @machine2747
    @machine2747 Před 6 lety +10

    The LM3914 is an interesting chip. We used to make crude oscilloscopes combining a LM3914 and a 4017 decade counter /decoder. Thanks for another great video!

    • @greatscottlab
      @greatscottlab  Před 6 lety +2

      You're welcome :-)

    • @lochinvar00465
      @lochinvar00465 Před 6 lety +1

      The LM324/4017 O-Scope would make an ideal project. Would probably include 4011's or 4093's for trigger control and time base.

  • @LorenzoBravi
    @LorenzoBravi Před 6 lety +13

    In this method, you're not consider voltage drop of internal resistance. State of charge value may have different terminal voltage according this relation: V=Voc-R*I, (V=terminal voltage; Voc=Open circuits voltage, R=internal resistance).
    Two simple method for SOC estimator are:
    1) Coulomb counting: integration of current in time.
    2) Soc(voc): inversion of R-C battery's model.

    • @ExplosionCrafter
      @ExplosionCrafter Před 6 lety +3

      But he can also just use his indicator circuit while the main load is turned off. So V = Voc

    • @Markle2k
      @Markle2k Před 6 lety +2

      Open circuit voltage isn't very useful, Gordon. Li-ion cells, particularly tired ones, will experience quite a bit of rebound after a surprisingly short period of time. You can have a battery that is effectively dead and sagging down below 2.7v that rebounds above 3.2v before you can get your multimeter leads on it. Lygte-info.dk (where GreatScott! got his battery curves from) has an article on this.

    • @ExplosionCrafter
      @ExplosionCrafter Před 6 lety

      That's true. I assumed a situation were he used a quadcopter for instance and immediately measures the remaining capacity after usage

  • @shifter65
    @shifter65 Před 6 lety +22

    Every time I click one of your videos I find myself still watching hours later =P Thanks for the great content!

  • @zaprodk
    @zaprodk Před 6 lety +156

    Just a tip, a dash "-" in a model number is just that - a dash, not a minus. I get super confused when you say minus.

    • @bgarv7
      @bgarv7 Před 6 lety

      a dash is *

    • @ko-Daegu
      @ko-Daegu Před 6 lety +9

      Brandon Garven
      Wait what ??
      Why
      Dash -
      Multiply *

    • @n3ttx580
      @n3ttx580 Před 6 lety +32

      . dot
      , comma
      - dash
      * asterisk
      / forward slash
      + plus

    • @GRBtutorials
      @GRBtutorials Před 6 lety +19

      Yes, the DVD Forum would get angry if you call DVD-R DVD minus R.

    • @crystallineblaze
      @crystallineblaze Před 6 lety +17

      Technically a dash is longer. A single '-' is called a hyphen. A dash is often made up of two hyphens unless the font you're using supports a true dash like an em-dash (-). But most people call them dashes anyway, including me :D

  • @ryccoh
    @ryccoh Před 6 lety +4

    It's crazy how they stuff all these components in that little chip package

    • @vinnysworkshop
      @vinnysworkshop Před 3 měsíci +1

      Well, this is one of the less dense chips in that regard. A 6502 processor from 1975 has many times more transistors and resistors on a die area not much larger. AND IT'S FROM 1975!

  • @AthanCondax
    @AthanCondax Před 6 lety

    I have been watching your videos religiously for over a year and a half. I have not learned a single thing. I will still watch your videos because they are great. I truly suck at electronics and have not gotten anything to work as I truly don’t understand how it works.

  • @drubradley8821
    @drubradley8821 Před 6 lety

    Over the past 4 to 6 years of watching your channel, I have seen many of your neat projects, but this one, is really well explained, and thought out. Thank you

  • @-_IT_-
    @-_IT_- Před 6 lety +154

    Could you not have made one with one RGB LED and change the color based on the power level?

    • @greatscottlab
      @greatscottlab  Před 6 lety +105

      Possible

    • @bairfamilyfarm1336
      @bairfamilyfarm1336 Před 6 lety +6

      You'd have to choose 3 voltage points and hook up each to one of the 3 colors. I currently can't think of a way to make a combination color of rgb while still being able to choose r,g,or b by itself. Maybe through the use of diodes to prevent two or 3 pins from being permanently connected?

    • @ABID5
      @ABID5 Před 6 lety +15

      there is a prob, some people are colour blind

    • @bacphan7582
      @bacphan7582 Před 6 lety +3

      or you can use a cheap ass Attiny 13 and some coding, damn, uC is so cheap now

    • @bobs12andahalf2
      @bobs12andahalf2 Před 6 lety

      That would be cool

  • @CARMATE1XXX
    @CARMATE1XXX Před 4 lety +1

    This video really saved a lot of my time. I made that LM324 battery indicator for my little Li-Ions, working Great.

  • @vladhristov2316
    @vladhristov2316 Před 5 lety +1

    Dude, I am amazed by your skills. It is just unbelievable, at least in my world.

  • @diygeorge4761
    @diygeorge4761 Před 6 lety +2

    You don't need a boost converter! Instead use a reference voltage ic or zener reference, that is lower than the lowest battery voltage. The best approach is to go with TL431 Precision Programmable Reference which will give you 2.5 Volts (Adjustable). Then divide the input voltage using a resistor divider so that it is lower than the 2.5 when the battery is full. You can use one of the LM324 op-amps as a buffer.

    • @lochinvar00465
      @lochinvar00465 Před 6 lety

      LM324 already has a voltage reference built in.

  • @station240
    @station240 Před 6 lety +1

    A few points.
    1) You could replace one of the LM324 with a LM358, as you're only using 2 of 4 opamps. Less power usage.
    2) The 20V supply is not needed, use a voltage divider to reduce the voltage from the battery so you only sample say half of it.
    Not complex, 2x 10k resistors in series across the battery, then connect the inputs on the Opamps to the middle of the two resistors.
    3) It should be pointed out the max supply voltage for the Opamps is 32V, so your limited to 7 lithium cells in series (aka 24V nominal voltage battery).

    • @thegittubaba
      @thegittubaba Před 6 lety

      I was thinking the same while watching the video. We can use a reference voltage ic/zener which is below the discharged battery level voltage, then use resistors to make voltage divider to scale the 0% to 100% voltage levels inside that reference voltage. That way the circuit can even be powered by the battery itself, and obviously no need for boost module :P

    • @teslakovalaborator
      @teslakovalaborator Před 6 lety

      Nasha UT probably use 3915 or 16, one of them is logarythmic like the battery curve is. As we all say it could be done more simpler.

  • @Lammy2k
    @Lammy2k Před rokem

    The quality of your channel is unmatched. Awesome!

  • @cle3995
    @cle3995 Před 6 lety +33

    Why don't you use a simple linear regulator to get the constant voltage for the circuit and devide the battery voltage with two resistors? That way you could get rid of the boost converter.

  • @Pokornz
    @Pokornz Před 6 lety +2

    Nice project! Just want to point out that the discharge curve changes dramatically depending on the current draw, but perhaps you used the curve that will suit the draw of your specific project. :)

  • @CST1992
    @CST1992 Před 4 lety

    I was just changing batteries today in my wall clock and I thought it'd be cool to have something that just takes in a couple of AA cells and lets me know how much juice is left in them(for testing my remaining stash of batteries). Boom! Here it is!

  • @TheIceLeopard
    @TheIceLeopard Před 6 lety +25

    I waited for this video a VERY long time. Thanks Scott!
    Been a subscriber for about 5-6 years now, if I can remember correctly.

    • @greatscottlab
      @greatscottlab  Před 6 lety +6

      Thanks for watching :-)

    • @TheIceLeopard
      @TheIceLeopard Před 6 lety +9

      Thanks for being the CZcamsr you are.
      Btw got a quote I think you might like. I think you said you were self-taught to program the Arduino so I believe you did this:
      "Code to learn. Not learn to code."

    • @isoProxanol
      @isoProxanol Před 6 lety

      --> Learning by doing ^-^

    • @JanCiger
      @JanCiger Před 6 lety

      StormyIceLeopard please, if you need a battery indicator like this, a much simpler solution is to either use one of the specialized "fuel gauge" ICs that are designed for this job or use any small microcontroller that has an ADC. Then make a lookup table to compensate for the nonlinear discharge curve. A much easier, more compact and a lot more robust solution than having to tweak 6 pots (and making sure they don't drift or move!). I like GreatScott's videos but some of these constructions are best kept only as educational experiments and not really deployed as a practical solution.

    • @keithking1985
      @keithking1985 Před 5 lety

      @@TheIceLeopard that makes sense and is a cool saying.

  • @somyadwivedi5965
    @somyadwivedi5965 Před 6 lety

    Sir, I am a hobbyist in electronics and surprisingly I am 13 years old. From 3 years I am watching your videos and they are literally awesome but slowly the topics are getting boring. So, I am requesting you to make an interesting video. And ya! I am from India.
    Thank you
    Your Genuine Viewer

  • @petermuller5031
    @petermuller5031 Před 6 lety

    Thanks for the video!
    I‘ve built a similar battery level indicator for my lead acid battery a while back. Of course, if I draw a lot of power, the voltage collapses (even though the battery is still charged) and the battery level doesn‘t show the charging state correctly anymore. You have to keep that in mind, but since LiPos are offen built for high current demands, the problem shouldn‘t be as big.

  • @KerbalLauncher
    @KerbalLauncher Před 6 lety +1

    That's a nice 2.5bit flash ADC you got there.

  • @BoomBrush
    @BoomBrush Před 6 lety +12

    This works assuming you don't draw any current from the battery. The voltage will fall as soon as a load is put on the battery. Like if you are drawing 10A from a 4.0V lipo, it's not going to stay 4.0V forever. Maybe for a future project, have a circuit measure the current being drawn and compensate the voltage thresholds? Other than that, pretty good video.

    • @peterzingler6221
      @peterzingler6221 Před 6 lety +1

      BoomBrush the drop under draw depends on the internal Résistance of the cell , that voltage sag isnt calculated in most power indicators

    • @zusurs
      @zusurs Před 6 lety +1

      Peter Zingler Quitw the opposite - most consumer devices show the battery indicator while using them, so it’s important to be able to use this indicator while using the device itself.

    • @peterzingler6221
      @peterzingler6221 Před 6 lety +1

      Artūrs Savickis most consumer devices doesnt drain enough current to create a large voltage drop

    • @kanskejonasidag1
      @kanskejonasidag1 Před 6 lety

      I came here to say something like that. The voltage is never decreasing in a linear fashion, it will bounce up and down depending on use. Yes, in the long run it will steadily go down, but for shorter periods the values might not make any sense whatsoever...

    • @nickwallette6201
      @nickwallette6201 Před 6 lety

      Yep. This is really a bad design for a battery life indicator, especially for LiIon. Correct solution would be a current sense and coulomb counter circuit.
      Better still would be NOT using a top-balancing BMS. (Unless you hate your batteries.)

  • @BenMitro
    @BenMitro Před 6 lety +2

    Great Scott! Thanks for explaining what is required.
    Doesn't an arduino have AtoD that could be used measure volts with the discharge profile in rom?
    Load could then be incorporated into the result with multiple profiles per battery based on current of battery. This could then be used to detect charge/discharge modes and show the actual state of charge under all conditions.
    That would give you a universal battery state indicator.
    Could extend it to measure individual state of charge per cell through switching the cells into the AtoD.
    Using leds for level is a great idea, 10 leds make a lot of sense intuitively, though 4 is probably adequate.
    What am I saying? You've essentially given me another project to do....one day! Cheers, and thanks again for your fantastic video series - I enjoy them immensely.

  • @shreekargowrishankar4878
    @shreekargowrishankar4878 Před 6 lety +1

    Excellent work !
    Highly useful...
    But sometimes many important details are over looked or skipped. I wish you could make these DIY videos a little more detailed so as for us to get a better picture of the build

    • @greatscottlab
      @greatscottlab  Před 6 lety

      What steps are skipped? I will not explain the basics of electronics in every video. That is why there are my electronic basics videos.

  • @y2ksw1
    @y2ksw1 Před 6 lety

    It's quite a good project an I never thought about making my own IC clone. I have solved similar problems with a high quality frequency generator and a microprocessor, for detecting the actual charge, which is total overdoing. Well done, my friend!

  • @Mr.Unacceptable
    @Mr.Unacceptable Před 6 lety

    You can find the LM3914 in old electronics that have indicator lights for the control buttons. Most things that have the play rewind eject or record or dials that light up.

    • @vinnysworkshop
      @vinnysworkshop Před 3 měsíci

      It's also likely used for the VU meters in old cassette decks, though I'm not completely sure on this one.

  • @Jones12ax7
    @Jones12ax7 Před 6 lety

    Very nice approach, using the old and good analog way. I made myself a flashlight using an Arduino Pro Mini to control the power led with an external Mosfet and LC filter for PWM. It worked as a charm, and for battery capacity I measure the voltage with Arduino and made the flashlight to blink from 0 to 9 in morse code.

    • @greatscottlab
      @greatscottlab  Před 6 lety

      Good idea

    • @Markle2k
      @Markle2k Před 6 lety

      It's not bad if you are using alkaline primary cells. But with Li-ion cells under high loads there isn't much voltage differential between 80 and 20 percent unless you have a large amount in series.

  • @EmtpyGaming
    @EmtpyGaming Před 6 lety

    left handed guy doing electronics. Seems like there is a hope for me

  • @Markle2k
    @Markle2k Před 6 lety

    5:45 This is why EVs tend to use coulomb counters rather than relying on voltage. That voltage knee is abrupt in practice as well. Especially since voltage will sag under load.

  • @subirdas8009
    @subirdas8009 Před 5 lety

    Sir your voice and explanations are very nice......

  • @avramitra
    @avramitra Před 6 lety +5

    As always, awesome video.
    But, I would simply use a microcontroller for this purpose.

    • @tin2001
      @tin2001 Před 6 lety +2

      Avra Mitra
      Same. Read actual voltage, decide in software which LED to light. You can then also add extra features like flashing LEDs to show a low voltage warning, chase them during charging, etc.

    • @avramitra
      @avramitra Před 6 lety

      tin2001 exactly! Using a microcontroller makes it more efficient.

    • @johnbyrne1022
      @johnbyrne1022 Před 5 lety

      +1. And you could map out the non linear voltage/charge curve too.

  • @rabitsspielbude3834
    @rabitsspielbude3834 Před 6 lety +26

    Using a boost converter only to reach your reference voltage seems very overengineered to me. A simple voltage divider at the input would do the job just fine.
    Cheers!

    • @WesselLemmer
      @WesselLemmer Před 6 lety +5

      A more elegant solution is to use a voltage reference and divider

    • @rabitsspielbude3834
      @rabitsspielbude3834 Před 6 lety +2

      Wessel Lemmer - exactly

    • @MrOrangeman18
      @MrOrangeman18 Před 4 lety +2

      That’s fine untill your voltage drops below your needed 20v

  • @jimjohnson3207
    @jimjohnson3207 Před 6 lety

    I absolutely loved this video, it was perfect and beautiful. There is nothing wrong with it, i actually have no complaints. But I have one complaint, the LEDs weren't RGB. It would have been cooler if all LEDs were on and they were all green if the battery is full, and the colour slowly changes to red and less LEDs get put on as the battery is closer to death.

  • @brzydka_i_bestia
    @brzydka_i_bestia Před 6 lety +1

    Nice, but using arduino seems a little bit simpler, even if more expensive. Also it is worth having a switch/button in the circuit to avoid constant current draw by the display, and having it lit briefly just to check.

  • @lexus4tw
    @lexus4tw Před 6 lety +1

    I using a microcontroller, ADC and lookup table, I also massure the current flow and calculate the total consumption, it's easier and more accurate

  • @peterzingler6221
    @peterzingler6221 Před 6 lety +1

    Thats works with only resistors and leds in series too, without a problem
    And dont forget on lion cells most capacity sits between 3.8 and 3.5 v where on lipos you shouldnt go lower then 3.8 at all

  • @iontesu2911
    @iontesu2911 Před 6 lety

    Another possibility is to still use the TI part, reduce the number of LED indicators from 10 to, say 6, and use certain LED to display the voltages that you chose on your design. You can also set a min voltage set point as another degree of freedom. No need for so many pots.

  • @simstud
    @simstud Před 6 lety

    Seems like a lot of work, space, complexity, and money for something a tiny mcu (like the attiny85) could do. It's the digital age, man!

  • @KhalilEstell
    @KhalilEstell Před 6 lety +1

    My favorite chip!! The bar graph ic! That was the first chip I used to make a pcb and the one that made me understand how analog circuits work.

  • @bobs12andahalf2
    @bobs12andahalf2 Před 6 lety +3

    Very interested in the intricacies of charging li-ion battery packs. I see a lot of conflicting information about BMS boards - mostly about whether they're actually effective. Could you do a video on that, maybe test and review some boards for, say, 3s or 4s?

  • @iamzainshahbaz
    @iamzainshahbaz Před 4 lety

    I just like his video no matter what...
    this guy is a legend

  • @phinok.m.628
    @phinok.m.628 Před 6 lety +1

    Sure, the logarithmic voltage decrease may make a slight difference, mainly when your battery is practically empty anyway. It's not really worth the effort of correcting for though, both versions are very inaccurate since they are purely based on the voltage which changes significantly under load. Your battery indicator will jump up and down when you connect and disconnect large loads.
    If you want a reasonably accurate and steady battery level indicator, you'll have to measure the current draw and added it up to see how much of the capacity has been drawn (like laptops and phones etc. do to determine the battery level) and use the voltage to correct for inascuracies while the battery is not in use.
    It's not quite as easy as it sounds, since your battery's apparent capacity will also change depending on the current draw, the voltage the battery is pulled down to and even temperarure.
    Making an accurate battery leven indicator really isn't that easy. But your version is the least accurare, at least assuming you use your battery, at rest I'm sure it's relatively accurate. Of course it can still be very useful, especially considering that you get similar battery level indicators like those for a euro/dollar/pound or two from China, but it may be worth mentioning, that it's only accurate at no or very little load.

  • @elonmuskmtmt886
    @elonmuskmtmt886 Před 5 lety

    SO surprised that you don't have 1M subscribers yet. Your videos are awsome!

    • @vinnysworkshop
      @vinnysworkshop Před 3 měsíci

      Well, it's 2024 and GreatScott has roughly the same subscriber count as @TechnologyConnections . Also known as rougly 2 million for both, although the difference is roughly 320,000 subscribers. Or 1/10 of @williamosman . Roughly.

  • @theredstoneblock8878
    @theredstoneblock8878 Před 6 lety +2

    Look at the subtitles in the diy soldering station video. Each time that he says full bridge rectifier, the subtitles say: *ECHOING VOICE* FULL BRIDGE RECTIFIER

    • @KidCe.
      @KidCe. Před 6 lety

      The redstoneblock I know this ECHOVOICE FULL BRIDGE RECIFIER from electric boom.... Maybe an error causing this here... Or maybe am gag

    • @theredstoneblock8878
      @theredstoneblock8878 Před 6 lety

      Lol

    • @r0_
      @r0_ Před 6 lety

      MIIIINE DIIIAAMONDSS

    • @theredstoneblock8878
      @theredstoneblock8878 Před 6 lety

      Haha XD

  • @instorm6661
    @instorm6661 Před 6 lety

    I use a 14s battery in my ebike, the problem I have with charge indicators is that when my battery is full it is at ~58v and I like the lowest point to be ~51V (at this point there is very litle charge left and starts to get dangerous to over discharge since you draw high current out of it so it is needed to be on the safe side), but when the battery is at about 53 or 54v and you would accelerate hard, the voltage would drop to 51 or less. So even at full chage if you accelerate hard, the meter would say "low charge" an you can't get an accurate battery level. I tried making a level with a arduino and a display, but even if I "smooth" the reading when you accelerate hard you get a high to nothing read all the time. Ideias are gladly accepted :)

  • @Braindead_Ace
    @Braindead_Ace Před 5 lety

    Constant current output 🙏🙏 it's so beautiful

  • @rich1051414
    @rich1051414 Před 5 lety

    This could be done with a single op amp, LED's, resistors, and nothing else, exploiting the voltage drop across the LED's. Add a bridge rectifier and a capacitor to smooth out the flickering and you can measure AC with the same circuit(Like audio). The only down side would be the LED's fade gradually instead of giving harsh steps, but I think that is a good thing.
    The non-inverting input of the opamp is connected to the battery, the inverting input is a voltage divided output to set the gain(the gain depends on how many volts it takes to overcome all of the LED's forward voltage at the batteries max voltage), and each LED is hooked in series, each with their own resistor to ground. The resistors to ground could be set as to produce a non-linear behavior of the LED intensity as well, to account for the non-linear discharge curve of the battery.

  • @JoeyLovesTrains
    @JoeyLovesTrains Před 6 lety +98

    What about a live subscription counter? DIY or Buy ??

    • @maxximumb
      @maxximumb Před 6 lety +14

      You can buy a subscription counter?

    • @HighFidelityFox
      @HighFidelityFox Před 6 lety +3

      JoeyLovesTrains sounds cool , it could probably be done easily with an 8x8 matrix and an esp8266 or something

    • @zusurs
      @zusurs Před 6 lety +1

      Maxx B Duh.. there are many tech/geek youtubers that has different types of LED subscriber counters sitting on the shelfs in background. Techmoan being one such example from the top of the head.

    • @BrianLough
      @BrianLough Před 6 lety +6

      I wrote a library for this, if you google "arduino youtube api" or search for "youtube" on the library manager you should be able to find it. It works on ESP8266 or ESP32

    • @GRBtutorials
      @GRBtutorials Před 6 lety

      Artūrs Savickis And do you know of any youtuber who *bought* his/her subscriber counter? He asked whether you can *buy* them, not if they existed.

  • @VoidHalo
    @VoidHalo Před 6 lety

    So it's a flash ADC but without the logic to convert the output to binary. I made one of these from op amps as one of my first IC projects. I connectected the input to the capacitor through a buffer on a 555 in astable mode. Didn't think to use it as a battery tester. Maybe as a VU meter. The lm3914 definitely makes for a much smaller circuit than having 4 or 5 dual op amps connected to a ladder resistor network.

  • @Tritone_b5
    @Tritone_b5 Před 6 lety

    You might know this but most RC enthusiasts who use lipo or li-ion packs only discharge to 3.6v (at rest).
    This usually is based on the capacity rating or most lipo batteries being rated at fully discharged (80%) at 3.6v. 3.3V would be fine if the current is very low but in our experience you would destroy the li-ion capacity quickly if it was discharging at higher amps.

  • @_pawan
    @_pawan Před 6 lety

    whatever you said and did was just AMAZING, even though i didn't understand what's exactly is going on...😂😂

  • @tchiwam
    @tchiwam Před 6 lety

    Did mine with LM339. Because they were in the bin next to me :D

  • @Zhaymoor
    @Zhaymoor Před 6 lety +1

    thank you great episode , but how do you know about existence of such ICs ?

  • @tomyyoung2624
    @tomyyoung2624 Před 6 lety

    Yes matter how hard it is, just
    don't get discouraged. when to buy!

  • @SurajGrewal
    @SurajGrewal Před 6 lety

    1 oled
    1 microcontroller
    a voltage regulator, a few passives
    job done with way smaller sized board

  • @AngelusMortis1000
    @AngelusMortis1000 Před 6 lety

    Analog read and knowledge of the discharge curve.

  • @lillydoye7418
    @lillydoye7418 Před 6 lety

    Well this was well timed, I was reaserching this chip last night.

  • @accountdeactivated5486

    I tried to make something that was a bit similar and spent 6 hours on it. Then I realized it was not precise because the LM317 did everything but staying in its Reference Voltage tolerance.

  • @electronicstuff6355
    @electronicstuff6355 Před 4 lety

    I learned so much from this one video. You should do some math videos.

  • @3dmixer552
    @3dmixer552 Před 5 lety

    The problem with this is that the voltage discharge curb will be temperature dependent. in a cold environment, the voltage will be lower and in a hot environment will be higher. It will not be accurate unless you can guarantee the same temperature all the time.

  • @SuperBlackReality
    @SuperBlackReality Před 6 lety

    If you're using this much space anyway, you could just paint the graph you shown on pcb and place leds in marked points with just the LM3914

  • @EnfermeiroPensador
    @EnfermeiroPensador Před 6 lety

    Please, make one video talking about how to find the correct IC to design a custom circuit to drive some LEDs in constant current mode.

  • @CrAzYDr1veR
    @CrAzYDr1veR Před 6 lety +63

    What if you need a 20s battery voltage indicators? At some point arduino gets cheaper than using 20 lm3914 or lm324 i guess...

    • @reverz3
      @reverz3 Před 6 lety +14

      you can get 10x LM324 for 1€ on ebay, they are sufficient for up to 40s packs

    • @LordGarth6
      @LordGarth6 Před 6 lety +16

      but a small arduino will save space and probably save of power consumption too

    • @ozricm
      @ozricm Před 6 lety

      Where?

    • @CrAzYDr1veR
      @CrAzYDr1veR Před 6 lety

      the bad thing is no dot mode unlike the lm3914

    • @linuspauly2380
      @linuspauly2380 Před 6 lety +11

      Goddamm just use a voltmeter and memorize the capacity/voltage curve and then just could measure up to 150s packs

  • @tom95521
    @tom95521 Před 6 lety

    Old school method is analog meter with masking tape and felt pen marking the %. Done in about 2 minutes.

  • @nThanksForAllTheFish
    @nThanksForAllTheFish Před 6 lety +2

    Is there a reason why you chose LM324 op amp for use as comparators instead of... a comparator like LM339?

  • @NoviSavvy
    @NoviSavvy Před 6 lety

    Today I tried uploading to jlcpcb. It showed an extremely large cost for me. $20 for 5pcs 148x58 simple boards including shipping which is half of that price. I better make them myself for 10 times cheaper, it better be my everyday meal for 1 week instead

  • @nautitard
    @nautitard Před 6 lety

    One thing that I would love to see someone make in a pedagogical manner, is a battery voltage indicator/display based on an Arduino, for each section in larger battery packs. For my bike batteries I don't feel that I need something else than a solution like this, since I balance charge after every ride. But for my 5 kWh homemade Li-ion packs in my van, that sit for weeks at a time, I'd love to have a way of measuring, displaying and warning me if voltage is going low in any of the sections. I got 4 x 3S packs and I measure with my multimeter every now and then to see that they are balanced. But this is something that should be easy to automatize and shouldn't be a human job :)
    If anyone has any suggestions to how to do this or if someone already made it, I'm interested. I'm not overly talented when it comes to electroengineering so I leave this to others. I can't come up with a good way to measure the voltage when there is no common ground, without using an unreasonable amount of relays/MOSFET:s/optocouplers or whatever, but that doesn't feel like the most efficient route to take.

  • @edindelic4841
    @edindelic4841 Před 6 lety

    Deine Videos sind echt gut gemacht und super informativ! Weiter so @GreatScott!

  • @rianmatos8354
    @rianmatos8354 Před 6 lety

    Best channel, i'm brazilian

  • @Ujwal5555
    @Ujwal5555 Před 6 lety +1

    Why not use a Atmega328p and a current sensor to accurately detect and show the level ?

  • @marcinwitkowski6443
    @marcinwitkowski6443 Před 6 lety +1

    I love Analog way....
    but isn't better to use some ADC and R divider.... ?
    make a table of FLOAT[...] {....} for characterization ... and job done
    ;-) and give that for JL-PCB ;-)

  • @Xylk777
    @Xylk777 Před 5 lety +1

    Hello Great Scott. Can you tackle a GSM MODULE controller Via AT Commands with PIC microcontroller circuit...Thank you very much. More power

  • @ACTlVISION
    @ACTlVISION Před 6 lety

    I hope you're designing a PCB for this, could be crazy small with SMD

  • @RCP-1136
    @RCP-1136 Před 6 lety +1

    Great stuff but this will not work with high current applications since the voltage of Lithium batteries sag quiet a bit under load (depending on current draw). Love your channel btw;)

  • @umutkaradag2340
    @umutkaradag2340 Před 6 lety +26

    In 5 minute 1.5k view. Wow

    • @andrewfking
      @andrewfking Před 6 lety +12

      Umut Karadağ That's the power of quality content.

    • @onderol
      @onderol Před 6 lety +1

      probably many people needs this circuit ... i need too

    • @fatihbey1645
      @fatihbey1645 Před 6 lety +1

      Umut Karadağ buralarda Turk gormek beni mutlu ediyor :):)

    • @onderol
      @onderol Před 6 lety

      Mr. Pratik benide :) bu hissi birde aliexpress te satilan elektronik modulleri alan turkleri gorunce (gercekten cok alan var) yasiyorum.

    • @umutkaradag2340
      @umutkaradag2340 Před 6 lety +1

      Hocam yıllardır bağımlısıyım. şu adamın sesi bile gaza gelmemi sağlıyor :D

  • @teslakovalaborator
    @teslakovalaborator Před 6 lety

    Woah ! Congrats G.S for not using dumb Arduino !

  • @gixuuuxd2005
    @gixuuuxd2005 Před 6 lety

    In the next DIY or buy section try to make BMS for li ion

  • @STONEDay
    @STONEDay Před 6 lety

    It is a 'dash' like the other guys said.
    Alternately you could call it a 'hyphen'.
    :-)

  • @aniketakabir1572
    @aniketakabir1572 Před 6 lety +1

    Nice video as usual. Very informative. Keep up the good work

  • @dagoston737
    @dagoston737 Před 6 lety

    Nice one :)
    How about a video about USB Oscilloscopes?
    Would be happy to see a proper video about them, if they worth even considering them, and if so, which one to go :)
    Thanks :)

  • @prxtryhard9683
    @prxtryhard9683 Před 4 lety

    Thanks bfor sponsoring me for no reason

  • @diyfrombelarus
    @diyfrombelarus Před 6 lety +1

    Nice, but very big in sizes of all components.

  • @AbhishekRoy-nr9pe
    @AbhishekRoy-nr9pe Před 6 lety

    Great job man. Will please make a lipo battery charger? Please....

  • @marcodev3375
    @marcodev3375 Před 6 lety

    Why not using software based like arduino instead of the complicated hardware based?
    For the first charging from 2.5v to 4.2v the indicator is blank but logging the energy needed to fulfill the empty battery.
    The second charging we can calculate the approx level by comparing the remaining energy vs the known energy capacity. Everytime the voltage reach 2.5 & 4.2v, the calculation calibrates to 0% & 100% and recalculate the energy capacity (the batt capacity will be degrade over time).

  • @brandonsasnett
    @brandonsasnett Před 4 lety

    He just made an engineer and tech editor’s year by saying that data sheet was well written.

  • @RoboticNerd
    @RoboticNerd Před 6 lety

    This doesn't compensate for load though. If a motor or something else draws current, the battery level indicator will shoot down. And will stay lower for a bit while the battery levels back out.

  • @MCsCreations
    @MCsCreations Před 6 lety

    Awesome work, dude! Really nice! 😀

  • @WildfoxFabrication
    @WildfoxFabrication Před 6 lety

    please make a coilgun with big capacitors!

  • @shaileshshukla3610
    @shaileshshukla3610 Před 6 lety

    Definitely again a good project... But I just wanted to know whether it would take care of voltage regulation due to different loads..? And how does a battery indicator works in mobiles as it always shows battery in percentage very precisely that too acurate.... And voltage regulation due to load also doesn't affect it....

  • @Musicpins
    @Musicpins Před 5 lety +1

    This is some cool stuff, thanks for sharing :)

  • @ivonnplatta1222
    @ivonnplatta1222 Před 5 lety

    Here is an idea ... lm3914 can be use to make a large vumeter whith transistors

  • @majdinj
    @majdinj Před 6 lety

    I used attiny13A and one RGB led as an indicator. The code goes like this:
    const int redPin = 0;
    const int greenPin = 1;
    const int bluePin = 2;
    const int lipo = A2;
    float lipoV = 0;

    void setup() {
    pinMode(redPin,OUTPUT);
    pinMode(greenPin,OUTPUT);
    pinMode(bluePin,OUTPUT);
    pinMode(lipo,INPUT);
    }
    void loop() {
    lipoV = analogRead(lipo);
    if(lipoV> red
    setColor(255, 0, 0); //red
    }
    if(lipoV>635 && lipoV> yellow
    setColor(255, 255, 0); //yellow
    }
    if(lipoV>=720 && lipoV> green
    setColor(0, 255, 0); //green
    }
    if(lipoV>=820){ // more than 4v (almost full) -->> blue
    setColor(0, 0, 255); //blue
    }
    }
    void setColor (int redPinValue, int greenPinValue, int bluePinValue) {
    analogWrite(redPin, redPinValue);
    analogWrite(greenPin, greenPinValue);
    analogWrite(bluePin, bluePinValue);
    }

  • @djoudigpl8625
    @djoudigpl8625 Před 6 lety

    Thanks great scoot pls make video for driving ignition coil of car

  • @TheCFlegend
    @TheCFlegend Před 5 lety +2

    What are those metal wires he uses to bridge the solder connections. Like at 0:54, where can i buy some?

    • @shaunclarke04
      @shaunclarke04 Před 4 lety

      They are just solder bridges. He just melts solder in a line

  • @Theblaziken2000
    @Theblaziken2000 Před rokem

    And I imagine you could use some kind of logic chip to make it so that only one of the LEDs lights up at once yeah?