Author Topic: LM317 Resistor Selection  (Read 6282 times)

0 Members and 1 Guest are viewing this topic.

Offline gregallenwarnerTopic starter

  • Regular Contributor
  • *
  • Posts: 144
  • Country: us
LM317 Resistor Selection
« on: September 22, 2014, 05:27:12 pm »
So, just a question regarding what you all normally do when selecting resistor values for LM317 adjustable voltage regulators.

Based on the calculations I've made using the formula in the datasheets, and the resistor values I have to work with, I can hit very nearly my target voltages, either a little above or a little below. For instance, with my 3.3 volt rail, depending on which resistors I use in my divider, I calculate I'll either get 3.29 volts or 3.34. Likewise, with the 5 volt rail, it's either 4.97 or 5.06.

What's best practice here? Is it considered best to go a little over voltage, to allow for some sag and power bus resistance? (As long as you remain within spec of your components, obviously.)

If I'm on track here with shooting a little over, what do you normally do when setting your power rail for a small PCB design? (Not trying to send power over long distances here.)

Thanks.
 

Offline katzohki

  • Frequent Contributor
  • **
  • Posts: 378
  • Country: us
    • My Blog
Re: LM317 Resistor Selection
« Reply #1 on: September 22, 2014, 06:25:26 pm »
I pretty much always use a regulator with a set voltage unless I need some odd-ball voltage. But as you said, as long as you're within tolerance of your parts you are fine. In the case of logic, as long as everything is operating off the same voltage then you should be good.

Or you could throw in a pot if you want to be really picky with your voltage.
 

Offline German_EE

  • Super Contributor
  • ***
  • Posts: 2399
  • Country: de
Re: LM317 Resistor Selection
« Reply #2 on: September 22, 2014, 06:27:09 pm »
If you are aiming for a 3,3V rail and you get 3,34V off load then I would be happy, even if it is an on load voltage the extra 40mV will not be a problem. Unless it is the output of a voltage standard you do not need to be exact.
Should you find yourself in a chronically leaking boat, energy devoted to changing vessels is likely to be more productive than energy devoted to patching leaks.

Warren Buffett
 

Offline gregallenwarnerTopic starter

  • Regular Contributor
  • *
  • Posts: 144
  • Country: us
Re: LM317 Resistor Selection
« Reply #3 on: September 22, 2014, 07:48:51 pm »
Thanks for the replies.

The only reason I'm looking into adjustable regulators is I'm starting to get into CPLD and FPGA based projects, and since those require an array of different voltages, I figured I could make my BOM simpler if I only had one part number for regulators instead of going with various fixed ones.

I'll go ahead with my slight overage that I mentioned in my previous post, to allow for some voltage drop due to resistances. Thanks again.
 

Offline Christopher

  • Frequent Contributor
  • **
  • Posts: 429
  • Country: gb
Re: LM317 Resistor Selection
« Reply #4 on: September 22, 2014, 07:57:36 pm »
Calculate the track resistance & current consumption, worst case.

There you go, there's your volt drop to add on. A "little more" volts can't hurt either, as long as it's in the SOA range  :-+
 

Offline sacherjj

  • Frequent Contributor
  • **
  • Posts: 993
  • Country: us
Re: LM317 Resistor Selection
« Reply #5 on: September 22, 2014, 09:20:26 pm »
If you are
The only reason I'm looking into adjustable regulators is I'm starting to get into CPLD and FPGA based projects, and since those require an array of different voltages, I figured I could make my BOM simpler if I only had one part number for regulators instead of going with various fixed ones.

It might be simpler in a FPGA or CLPD situation to looks for a 3-4 LDO chip that outputs the voltages you need.  These are often only a buck or two in even single quantity.  Much easier than multiple LM317s.  If you get into higher power FPGAs you might need to go to a switching chip to keep from wasting as much power.
 

Offline just_fib_it

  • Contributor
  • Posts: 36
  • Country: hu
Re: LM317 Resistor Selection
« Reply #6 on: September 23, 2014, 12:53:27 am »
The LM317 is not a bad regulator, but it's by no means a precision part.

I ran into that recently when I needed +/-12V rails to power some opamps. Spent quite some time looking for the right E96 values to get exactly 12V. Of course the opamp isn't really gonna care but it just felt better. OCD, I guess ;-)

Anyway, I was a bit disappointed when I measured 12.26V instead of the expected 12.02V. After some probing around it turned out that the reference voltage of my LM317 was 1.264V instead of 1.25V. A quick look at the datasheet showed that it can be anything from 1.2 - 1.3V... Add the 1% tolerance of the resistors and any output voltage between 11.35 and 12.75V is fair game.
 

Offline Neilm

  • Super Contributor
  • ***
  • Posts: 1546
  • Country: gb
Re: LM317 Resistor Selection
« Reply #7 on: September 23, 2014, 06:18:44 pm »
There are ready built supply chips that have multiple outputs at the correct voltage for the FPGA core and periphery voltages.
Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe. - Albert Einstein
Tesla referral code https://ts.la/neil53539
 

Offline gregallenwarnerTopic starter

  • Regular Contributor
  • *
  • Posts: 144
  • Country: us
Re: LM317 Resistor Selection
« Reply #8 on: October 01, 2014, 06:59:26 pm »
There are ready built supply chips that have multiple outputs at the correct voltage for the FPGA core and periphery voltages.

Any recommended part numbers?
 

Offline katzohki

  • Frequent Contributor
  • **
  • Posts: 378
  • Country: us
    • My Blog
Re: LM317 Resistor Selection
« Reply #9 on: October 01, 2014, 09:26:16 pm »
Search for LDO regulators on Digikey, go through the Voltage - Output column and select the voltages you need.

Here's an example search:
http://www.digikey.com/product-search/en?pv48=5560&pv48=3750&pv48=3716&pv48=4036&pv48=4035&FV=fff40027%2Cfff80182%2C10a40004&k=ldo&mnonly=0&newproducts=0&ColumnSort=0&page=1&stock=1&quantity=0&ptm=0&fid=0&pageSize=25

Looks like a lot are going to be surface mount, but you gotta bite that bullet sooner or later.
 

Online tszaboo

  • Super Contributor
  • ***
  • Posts: 7384
  • Country: nl
  • Current job: ATEX product design
Re: LM317 Resistor Selection
« Reply #10 on: October 01, 2014, 10:11:55 pm »
Well there seems to be some problems here. First, the LM317 is not a precision part, it alone has 1% tolerance, +1.5% over the load, + 1% over temperature. I'm not sure why would you be bothered with a few millivolt difference for the resistors. Which add + 1 + 1%.
The other problem is the usage of this with FPGAs. They are not designed for that.
Using an LM317 with an FPGA will be like putting an east Germany Trabant engine (22 HP) into a monster truck.
The problem is that they react much slower to high current peaks, than modern regulators. The voltage will sag, whenever you switch too many gates inside your FPGA. To avoid that you need absurd amount of capacitors.
And this is when it becomes easy. Because they already did the homework for FPGAs. There are reference designs from TI, AD, Linear for FPGAs. Buck converters which make everything for you.
 

Offline gregallenwarnerTopic starter

  • Regular Contributor
  • *
  • Posts: 144
  • Country: us
Re: LM317 Resistor Selection
« Reply #11 on: October 06, 2014, 09:06:13 pm »
Thanks for the advice.

I think I'll abandon the adjustable regulators and go with the fixed multi-volt ones specifically designed for what I'm doing.

Thanks again!
 

Online tszaboo

  • Super Contributor
  • ***
  • Posts: 7384
  • Country: nl
  • Current job: ATEX product design
Re: LM317 Resistor Selection
« Reply #12 on: October 07, 2014, 11:46:58 am »
Thanks for the advice.

I think I'll abandon the adjustable regulators and go with the fixed multi-volt ones specifically designed for what I'm doing.

Thanks again!
:-+ Excellent choice!
 

Offline bills

  • Frequent Contributor
  • **
  • Posts: 350
  • Country: us
Re: LM317 Resistor Selection
« Reply #13 on: October 14, 2014, 09:29:54 am »
Never argue with idiots. They drag you down to their level and beat you with experience.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf