Author Topic: LM317 current limiter is not working properly, help  (Read 4326 times)

0 Members and 1 Guest are viewing this topic.

Offline u666saTopic starter

  • Regular Contributor
  • *
  • Posts: 239
  • Country: ru
LM317 current limiter is not working properly, help
« on: November 25, 2023, 11:10:17 am »
 :-//

I have a simple current limiter, I want to give about 800 mAh to ring light. Resistance is 1.58 ohm, and the resulting current is 192 mAh. I just don't understand what's going on! According to datasheet, formule for output current is IO = (VREF / R1) + IADJ = 1.25 V / R1, so 1.25 / 1.58 should be 791 mAh. But I am getting 192 mAh. What's happening? What am I doing wrong?


 

Offline Andy Chee

  • Super Contributor
  • ***
  • Posts: 1089
  • Country: au
Re: LM317 current limiter is not working properly, help
« Reply #1 on: November 25, 2023, 11:32:33 am »
I’m going to guess that you may have burned out the potentiometer wiper carbon track with too much current. At the very least you have damaged it and it has changed value.

Basically you have forgotten to calculate power dissipation in your resistor, in your case, 0.8 * 0.8 * 1.58 = 1 watt, which is too much for the typical 0.5 watt potentiometer.

I completely missed that your wiring was wrong!
« Last Edit: November 25, 2023, 11:35:15 am by Andy Chee »
 

Offline iMo

  • Super Contributor
  • ***
  • Posts: 5133
  • Country: bt
Re: LM317 current limiter is not working properly, help
« Reply #2 on: November 25, 2023, 11:33:01 am »
Because your wiring is wrong..
The output of your current source is not from "output pin" but from ADJ pin..
Readers discretion is advised..
 
The following users thanked this post: Doctorandus_P

Offline u666saTopic starter

  • Regular Contributor
  • *
  • Posts: 239
  • Country: ru
Re: LM317 current limiter is not working properly, help
« Reply #3 on: November 25, 2023, 11:38:08 am »
Nah and nah. I googled it! Basically, for it to work properly I needed to give it 14 volts. Instead of 12V. A bit more volts. Then it works. In any case. Bad solution for my problem. My problem is that 144 LED light from aliexpress shines just as bright as my 56 LED light, not brighter. It gets brighter at 1.2 amps, but then it melts.  :popcorn:

So what I'm trying to do is limit current to 800 mAh. At that current it does not readily melt and still provides good brightness.  :-//

I mean, this could be the same problem with stock power supply that light came with. Perhaps output voltage is too low for internal current regulator to regulate current properly, it too was stuck at 225 mAh or something, no matter what. It is a EY marking smd 3 leg component.
 

Offline DavidAlfa

  • Super Contributor
  • ***
  • Posts: 6228
  • Country: es
Re: LM317 current limiter is not working properly, help
« Reply #4 on: November 25, 2023, 12:41:08 pm »
Post input vs output voltages. For a 317 you need an input of at least 1.5V over output.
Otherwise you're topping out.
Hantek DSO2x1x            Drive        FAQ          DON'T BUY HANTEK! (Aka HALF-MADE)
Stm32 Soldering FW      Forum      Github      Donate
 

Offline wraper

  • Supporter
  • ****
  • Posts: 17581
  • Country: lv
Re: LM317 current limiter is not working properly, help
« Reply #5 on: November 25, 2023, 12:46:39 pm »
You need a heatsink on LM317.
 

Offline Dave

  • Super Contributor
  • ***
  • Posts: 1354
  • Country: si
  • I like to measure things.
Re: LM317 current limiter is not working properly, help
« Reply #6 on: November 25, 2023, 01:16:14 pm »
Ah (ampere hours) are a unit of charge, NOT current. You're measuring A (amperes).

The total voltage drop your regulator circuit will need is about 4.25V. That is the minimum recommended input-to-output voltage of the LM317 IC, plus the 1.25V reference voltage. Bear in mind that at 800mA, you're going to be dissipating a considerable amount of heat, so a heatsink might be required.
<fellbuendel> it's arduino, you're not supposed to know anything about what you're doing
<fellbuendel> if you knew, you wouldn't be using it
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19918
  • Country: gb
  • 0999
Re: LM317 current limiter is not working properly, help
« Reply #7 on: November 25, 2023, 05:11:32 pm »
What's the forward voltage of the LEDs?

An off the shelf constant current LED driver would be ideal, but if you can't get one, use a constant voltage power supply around 10% to 33% higher, than VF and a suitable resistor.
 

Offline floobydust

  • Super Contributor
  • ***
  • Posts: 7429
  • Country: ca
Re: LM317 current limiter is not working properly, help
« Reply #8 on: November 25, 2023, 05:55:04 pm »
Have you tried connecting the LM317 properly? Check your pinout and the circuit.
You're missing a second resistor which is used either for current-sense or voltage control, depending on where you connect it. 500Ω pot?

I have a 12V LED string with LM317 for voltage control and it can work as a dimmer, but very touchy. Losses are are about 1.5V
 

Offline langwadt

  • Super Contributor
  • ***
  • Posts: 4701
  • Country: dk
Re: LM317 current limiter is not working properly, help
« Reply #9 on: November 25, 2023, 05:57:10 pm »
You need a heatsink on LM317.

and a different resistor, that pot won't like 800mA
 

Offline u666saTopic starter

  • Regular Contributor
  • *
  • Posts: 239
  • Country: ru
Re: LM317 current limiter is not working properly, help
« Reply #10 on: November 25, 2023, 08:56:52 pm »


and a different resistor, that pot won't like 800mA

Let's say input voltage is 14V. If I would use variable resistor, what wattage would it have to be? Needed output current is 100 to 900 milliamps.
 

Offline Doctorandus_P

  • Super Contributor
  • ***
  • Posts: 3832
  • Country: nl
Re: LM317 current limiter is not working properly, help
« Reply #11 on: November 25, 2023, 09:53:30 pm »
The 14V input voltage is not relevant. The LM317 will start limiting output voltage as soon as there is 1.25V between the output pin and the adjust pin. So if you want to go to 900mA, then the dissipated power in the resistor is 0.9*1.25 = 1.125W.

Using the LM317 as a  current source (or sink) combined with a single resistor is a nice trick, but it does not work very well for an adjustable current limit, because the the full current has to pass though the potentiometer, and potentiometers which can handle this are sort of obsolete. You can still find them (search for "rheostat") but they are so expensive that they are rarely used.

If you do not need a fully adjustable limit, you can use a few resistors in parallel, and use switches to change the total resistance. For example, if you use 12.5 Ohm resistors, then each the current limit will be a multiple of 100mA, depending on the number of resistors (+switches).
« Last Edit: November 25, 2023, 09:55:28 pm by Doctorandus_P »
 

Offline langwadt

  • Super Contributor
  • ***
  • Posts: 4701
  • Country: dk
Re: LM317 current limiter is not working properly, help
« Reply #12 on: November 25, 2023, 10:04:05 pm »
The 14V input voltage is not relevant. The LM317 will start limiting output voltage as soon as there is 1.25V between the output pin and the adjust pin. So if you want to go to 900mA, then the dissipated power in the resistor is 0.9*1.25 = 1.125W.

Using the LM317 as a  current source (or sink) combined with a single resistor is a nice trick, but it does not work very well for an adjustable current limit, because the the full current has to pass though the potentiometer, and potentiometers which can handle this are sort of obsolete. You can still find them (search for "rheostat") but they are so expensive that they are rarely used.

you could size the resistor for the minimum current and use a pot across it with the wiper connected to the adjust pin

though you'd get a rather large voltage drop at full current
 
 

Offline coppercone2

  • Super Contributor
  • ***
  • Posts: 10568
  • Country: us
  • $
Re: LM317 current limiter is not working properly, help
« Reply #13 on: November 25, 2023, 10:05:55 pm »
the cheap carbon potentiometers do 2-3W
 

Offline iMo

  • Super Contributor
  • ***
  • Posts: 5133
  • Country: bt
Re: LM317 current limiter is not working properly, help
« Reply #14 on: November 25, 2023, 10:08:51 pm »
Because your wiring is wrong..
The output of your current source is not from "output pin" but from ADJ pin..

Again, your wiring in your above shot (photo) is wrong.
The output of your current source shall be from ADJ pin, not from OUTPUT pin of the LM317.
« Last Edit: November 25, 2023, 10:19:33 pm by iMo »
Readers discretion is advised..
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf