The LM317 is quite the hot head ...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • eccerr0r
    Solder Sloth
    • Nov 2012
    • 8694
    • USA

    #21
    Re: The LM317 is quite the hot head ...

    Now, the trick is how would one make a digitally adjustable LM317 that will regulate down to 0V?

    I suspect that the same trick of using some sort of regulator to make sure the negative rail doesn't go too far down else you'd have a lot of dead region.

    In any case some offset trickery is needed as now a 0 to 3.3V signal needs to be -1.25 to +11 or whatever...

    Plus the 3.3V signal needs to be regulated too else an RC low pass filter is not going to give you an accurate output...

    Now question is: will this work: (note that I cheated with a LM337 to regulate negative voltage. LM358 is not RRIO so it will have trouble getting to the high voltages but should get close to zero output in this configuration. I also did not account for input leakage which will be significant with the values of the resistors used here.)
    Attached Files
    Last edited by eccerr0r; 06-02-2017, 04:24 PM.

    Comment

    • EasyGoing1
      Shock Therapist
      • Sep 2016
      • 977
      • USA

      #22
      Re: The LM317 is quite the hot head ...

      See this is why I seek out friends like you guys ... thats good stuff! I could potentially do this project without the digital pot that I spent a whole $5 for three.... lol

      And I just happen to have a couple of 741s laying around ... hmmmm....
      sigpic

      Comment

      • EasyGoing1
        Shock Therapist
        • Sep 2016
        • 977
        • USA

        #23
        Re: The LM317 is quite the hot head ...

        Originally posted by eccerr0r
        Now, the trick is how would one make a digitally adjustable LM317 that will regulate down to 0V?
        I don't have a requirement for 0V in my project ... cool circuit though ... send me a 337 and a 358 and ill test it

        sigpic

        Comment

        • eccerr0r
          Solder Sloth
          • Nov 2012
          • 8694
          • USA

          #24
          Re: The LM317 is quite the hot head ...

          Originally posted by EasyGoing1
          I don't have a requirement for 0V in my project ... cool circuit though ... send me a 337 and a 358 and ill test it

          At the very least you still need the LM358 for using that EDN article design as if you used the LM741 it won't even go below 2.5V most likely.

          The LM337 is not absolutely necessary, do whatever you want to get a somewhat low impedance, regulated, negative 1.25V to 2.5V rail.

          Comment

          • EasyGoing1
            Shock Therapist
            • Sep 2016
            • 977
            • USA

            #25
            Re: The LM317 is quite the hot head ...

            Originally posted by eccerr0r
            do whatever you want to get a somewhat low impedance, regulated, negative 1.25V to 2.5V rail.
            k, not quite sure what all that meant or what a “rail” is ... but I only need to be able to make somewhat small adjustments in a voltage range of roughly 3 to 5 volts... the more resolution I have available to me in my adjustments, the better.

            For example being able to go from 3.032 volts to 3.039 would be much better than if I could only go to 3.131 or something like that...
            sigpic

            Comment

            • EasyGoing1
              Shock Therapist
              • Sep 2016
              • 977
              • USA

              #26
              Re: The LM317 is quite the hot head ...

              Originally posted by eccerr0r
              At the very least you still need the LM358 for using that EDN article design as if you used the LM741 it won't even go below 2.5V most likely.
              Check out this design for 0 to 3V using a 317.

              ... when I tested the link I just provided in preview mode, it seemed to have inserted %20's in the link ... dont know why ... so here it is again just in case (this one actually worked for me when the other didn't)

              http://www.edn.com/design/analog/432...able-regulator
              sigpic

              Comment

              • eccerr0r
                Solder Sloth
                • Nov 2012
                • 8694
                • USA

                #27
                Re: The LM317 is quite the hot head ...

                Yeah once again it requires a negative supply of some sort, there's lots of ways to skin the cat, but the cat needs to be skinned.

                Comment

                • EasyGoing1
                  Shock Therapist
                  • Sep 2016
                  • 977
                  • USA

                  #28
                  Re: The LM317 is quite the hot head ...

                  Originally posted by eccerr0r
                  Yeah once again it requires a negative supply of some sort, there's lots of ways to skin the cat, but the cat needs to be skinned.
                  Why is this mandatory?
                  sigpic

                  Comment

                  • eccerr0r
                    Solder Sloth
                    • Nov 2012
                    • 8694
                    • USA

                    #29
                    Re: The LM317 is quite the hot head ...

                    It's the only way to get the LM317 to get to 0V. Can't get around it any other way other than perhaps something to regulate down externally, duplicating the function of the LM317 except handling the 0 to 1.25V region.

                    Comment

                    • EasyGoing1
                      Shock Therapist
                      • Sep 2016
                      • 977
                      • USA

                      #30
                      Re: The LM317 is quite the hot head ...

                      Originally posted by eccerr0r
                      It's the only way to get the LM317 to get to 0V. Can't get around it any other way other than perhaps something to regulate down externally, duplicating the function of the LM317 except handling the 0 to 1.25V region.
                      Well actually my question was WHY is it necessary that the circuit be capable of 0V ... i didnt doubt the reasons for actually making a 317 produce 0V ... I just wanted to know why 0 was required is all...
                      sigpic

                      Comment

                      • eccerr0r
                        Solder Sloth
                        • Nov 2012
                        • 8694
                        • USA

                        #31
                        Re: The LM317 is quite the hot head ...

                        Oh not for your problem of a battery charger, it was a question I posed as a brain teaser.

                        Comment

                        • EasyGoing1
                          Shock Therapist
                          • Sep 2016
                          • 977
                          • USA

                          #32
                          Re: The LM317 is quite the hot head ...

                          From that link
                          You can change the op amp's gain by choosing proper values for R4 and R2
                          I wouldn't even know where to start choosing values for these resistors...
                          sigpic

                          Comment

                          • EasyGoing1
                            Shock Therapist
                            • Sep 2016
                            • 977
                            • USA

                            #33
                            Re: The LM317 is quite the hot head ...

                            So I actually built this circuit using my Arduino Due to control it ... which only does PWM up to 3.3 volts. HOWEVER, it does offer 12 bit PWM resolution as opposed to the regular 10 bit, so I have 4095 different levels of PWM to play with vs 1024.

                            So I arbitrarily picked a 1k resistor for R4 and R2 ... and with my PWM at 0, the output voltage was like 3.2 volts ... I was not able to get it to go higher until I kicked the PWM up to 3000 or roughly 2.something volts ... and then it hit the ceiling of around 10 volts on the LM317 before I reached the end of my PWM abilities .... so in other words, I don't have a very wide "sweep" of adjustment with this design...

                            How do I go about figuring out which resistors to use? I swapped in and out dozens of different resistors with different results, none of which gave me what I needed...

                            Also, the potentiometer had little effect on things, except once or twice with different values for the other two resistors, at which point adjusting the 10k pot would move the output on the 317 about 2/10ths of a volt but then would swing back where it was as I reached the opposite end of the wiper on the pot ... kinda weird if you ask me.

                            Ideas?
                            sigpic

                            Comment

                            • eccerr0r
                              Solder Sloth
                              • Nov 2012
                              • 8694
                              • USA

                              #34
                              Re: The LM317 is quite the hot head ...

                              Check the voltage at the input of the 741 (keep in mind the impedance of your multimeter will load down the circuit, even if you have a 10Mohm DMM). See if it is doing the range you expect. Check this for the top end.

                              If you're insisting on using a 741, you will have some nonlinear operation as you see at bottom end due to the inherent issues with the 741. Using the 741 you will need a negative supply to rid of this bottom end issue.

                              Comment

                              • EasyGoing1
                                Shock Therapist
                                • Sep 2016
                                • 977
                                • USA

                                #35
                                Re: The LM317 is quite the hot head ...

                                Originally posted by eccerr0r
                                Using the 741 you will need a negative supply to rid of this bottom end issue.
                                See now you're starting to make sense ... where does one conjure up ... negative voltage ... exactly??? Some kind of voodoo?

                                sigpic

                                Comment

                                • EasyGoing1
                                  Shock Therapist
                                  • Sep 2016
                                  • 977
                                  • USA

                                  #36
                                  Re: The LM317 is quite the hot head ...

                                  You know the tiny motors that operate the vibration mechanism in a gaming controller ??? ... if I were driving that with a 317, do those motors pose the same risk to a 317 as a coil does to a transistor in terms of blow back once power is disconnected? Should the motor have a protection diode on it?
                                  sigpic

                                  Comment

                                  • eccerr0r
                                    Solder Sloth
                                    • Nov 2012
                                    • 8694
                                    • USA

                                    #37
                                    Re: The LM317 is quite the hot head ...

                                    Originally posted by EasyGoing1
                                    See now you're starting to make sense ... where does one conjure up ... negative voltage ... exactly??? Some kind of voodoo?

                                    Easier to just use a LM358 instead of the LM741.

                                    Else you'll either
                                    - build another power supply and connect it backwards (or another winding on the transformer). You can use a 9V or even a few batteries to generate it in the mean time.
                                    - create a charge pump of some sort to synthesize the negative voltage, perhaps using a 555 or some switching regulator.

                                    Originally posted by EasyGoing1
                                    You know the tiny motors that operate the vibration mechanism in a gaming controller ??? ... if I were driving that with a 317, do those motors pose the same risk to a 317 as a coil does to a transistor in terms of blow back once power is disconnected? Should the motor have a protection diode on it?
                                    Yes, it also generates some inductive back EMF too. A small vibrator motor probably doesn't generate that much however.

                                    Comment

                                    • EasyGoing1
                                      Shock Therapist
                                      • Sep 2016
                                      • 977
                                      • USA

                                      #38
                                      Re: The LM317 is quite the hot head ...

                                      Originally posted by eccerr0r
                                      Easier to just use a LM358 instead of the LM741.
                                      Would you happen to know if the 358 is common in any specific electronics that I might have laying around ??? I feel like I'm doing my part when I salvage stuff rather just buying more ... not to mention a bird in the hand ... three days for shipping is murder for a US citizen ... lol

                                      Originally posted by eccerr0r
                                      - create a charge pump of some sort to synthesize the negative voltage, perhaps using a 555 or some switching regulator.
                                      No 555's laying around and everything else you said you may as well have been speaking chinese.... charge pump?? this is a real thing in electronics?


                                      Originally posted by eccerr0r
                                      Yes, it also generates some inductive back EMF too. A small vibrator motor probably doesn't generate that much however.
                                      The reason I asked about that, is because I built a small little 317 variable buck converter kinda thing ... in fact this is the circuit I used:



                                      I forget the values for the voltage divider, but the second resistor is a pot ... 5k I think ... anyways ... whats happening is that Ill use the thing ... three or four times over maybe a weeks time then allofasudden, I plug it in and its passing ALL of the source voltage and the resistor on he adjustment pin does nothing... so if im feeding it 12 volts then thats whats at the output of the 317 ... so if I then replace the 317 with another one ... it works beautifully till suddenly ill plug it in and it only passes the source voltage ... till I replace the 317... I am now on my 5th 317 the last three happening in the last month... this could bel

                                      No letting the smoke out and no stressing of the 317 has happened at all ... it never once got hot ... so i was thinking maybe when I run those motors ... then shut it down ... they might be hitting the 317 from the wrong side which would explain me no seeing the problem util the next time I plug it in. Other than that im stumped
                                      sigpic

                                      Comment

                                      • eccerr0r
                                        Solder Sloth
                                        • Nov 2012
                                        • 8694
                                        • USA

                                        #39
                                        Re: The LM317 is quite the hot head ...

                                        You'll have to look around for a LM358 or LM324, they are fairly common (they've been around almost as long as LM741).

                                        MC3043, LM2904, TS271/TS272/TS274 are alternatives. A RRIO LM6142 or TLV2371/TLV2372/TLV2374 will work but are overkill. The LM741 is an ancient chip that has so many drawbacks, but the rail problem is not one of the most serious ones (there are many other low noise op amps that also don't go to rail that are commonly used due to noise and input characteristics where the LM358 is not so great at). You may find a LM358 in old crappy ATX power supplies like Deer used to generate PG. Good power supplies likely use a supervisory chip instead and not have that op amp.

                                        The NE555/LM555 is a very common chip, it's an all purpose timer chip. Due to its output characteristics, it can be used to make charge pumps like in
                                        http://www.electronicecircuits.com/e...supply-circuit .

                                        And I don't know if you have a large capacitor on the input else you may be backpowering the LM317 which is harmful. A protection diode across input and output (anode on output, cathode on input) can protect against back powering.

                                        Unfortunately likely you will have to go buy parts unless you have a lot of junk to scavenge from... I suppose I have way too much scrap to scavenge from now, though I did spend quite a bit from Jameco to fill the shelves...
                                        Last edited by eccerr0r; 06-04-2017, 12:35 PM.

                                        Comment

                                        • kc8adu
                                          Super Moderator
                                          • Nov 2003
                                          • 8832
                                          • U.S.A!

                                          #40
                                          Re: The LM317 is quite the hot head ...

                                          how are you terminating the charge cycle?
                                          when in cv mode you need to watch current and cut it off at about 50ma for a typical 18650.
                                          use a mosfet switch and disconnect the cell with it.
                                          then it does not matter if your 317 can hit 0.
                                          this also prevents issues with the 317 getting voltage to its output when off without the drop of a diode.
                                          do not float charge li-ion.

                                          Comment

                                          Related Topics

                                          Collapse

                                          • Stunt
                                            Bench power supply current stuck at 9 amps
                                            by Stunt
                                            Hi guys I've got Longwei bench power supply the problem is the current is stuck on 9 amps no matter how I turn the current nob to decrease the amps is stuck on 9 amps and the led indicator for current doesn't turn on. If anyone knows what could be the problem Please i need your help cause the voltage nob is working fine I can increase and reduce the voltage without a problem. Thank you
                                            06-02-2021, 05:05 AM
                                          • Document Archive
                                            Diodes AP21X2SG-13 AP21X2MPG-13 Current Limited Power Switch for Laptop Computer Datasheet
                                            by Document Archive
                                            The AP2182 and AP2192 (AP21X2SG-13 AP21X2MPG-13) are integrated high-side power switches optimized for Universal Serial Bus (USB) and other hot-swap applications. The family of devices complies with USB 2.0 and available with both polarities of Enable input. They offer current and thermal limiting and short circuit protection as well as controlled rise time and under-voltage lockout functionality. A 7ms deglitch capability on the open-drain Flag output prevents false over-current reporting and does not require any external components.

                                            All AP21X2SG-13 AP21X2MPG-13 devices are available...
                                            10-23-2024, 03:33 AM
                                          • DynaxSC
                                            Extreme High Current & Low Voltage Short Killer ??
                                            by DynaxSC
                                            Hi Folks

                                            I'm looking for a extreme high current short killer solution for a reasonable cost.

                                            I have an LGA1700 motherboard (ASUS PRIME Z790-P WiFi) where I exchanged the LGA socket already 3 times, and every time after the socket exchange I get a short of power supply lines VCORE (V variable) and VCCIN_AUX (1.8V).
                                            After taking off the socket, the shorts dissappear again.
                                            The soldermask on the socket is already partially demaged from the heat, so I have reconstructed the soldermask by manually painting the missing soldermask parts with a very small top of a...
                                            10-15-2024, 10:13 AM
                                          • sam_sam_sam
                                            Adjustable Boost Power Supply DC-DC Constant Voltage Current Charging Module
                                            by sam_sam_sam
                                            I want to know if I could hook up a solar panels to this boost converter would I have any issues doing and I would have issues what would they be

                                            Adjustable Boost Power Supply DC-DC Constant Voltage Current Charging Module

                                            https://www.ebay.com/itm/116497313155?var=416785404161


                                            Here are some of the description from the eBay seller

                                            The main parameters:
                                            1. Product name: High-power non-isolated DC boost module power supply.
                                            2. Product model: 100A2000W.
                                            3. Input voltage: DC12V-60V.
                                            4. Input current: 100A (maximum)....
                                            05-18-2025, 09:45 AM
                                          • EasyGoing1
                                            Issue with LM317 and current draw
                                            by EasyGoing1
                                            I'm supplying a LM317 that's configured for 5.0V output with a source voltage of 7 volts. The LM317 is supplying power to a 5 volt sensor. The sensor is drawing 110ma of current, but the LM317 gets really hot and when i check the current draw from the 7V supply to the LM317, the LM317 is drawing a little over 400ma ...

                                            This means that the LM317 is consuming almost 3 times the energy that it's supplying.

                                            Is this normal for a LM317?
                                            03-28-2019, 01:03 PM
                                          • Loading...
                                          • No more items.
                                          Working...