What is the performance tradeoff of using different resistors with the LM317. For example using a 300 Ohm and 400 Ohm resistor vs. using a 3k and a 4k resistor. Specifically I am interested in knowing power consumption, available current, and percentage of error, and what causes these to change, if they change.
Resistor effects in an LM317 are largely covered in the LM317 data sheet
Note!: For your designs to ALWAYS work correctly, worst case values must be used. If you want your design to typically work (but not always) you can design wityh typical values :-). Note than sometimes worst case will be the minimum value and sometimes the maximum value, depending on what is being designed.
There are two main factors in setting the maximum LM317 resistor values:
(1) The LM317 has a MINIMUM OUTPUT CURRENT.
If this current is not drawn the IC will not operate correctly.
I_out_min_max here means that there is a minimum value that Iout must have and this is the maximum value that I_out_min must have.
I_out_minimum = 3.5 mA typical, 12 mA maximum !!!!!!!!!!!!!! So R1 <= Vadj_min / Iout_min_max :-) = 1.20/0.012A = 100 Ohms MAX !!!!!!!!!!!!!!
Many LM317 circuits use R1 > 100 ohms.
(2) Error in Vout caused by Iadj in R2.
A data sheet specified current flows "out" of Vadj. Call this Iadj.
Vout = Vadj x (R1 + R2) / R1 + Iadj x R2.
Iadj = 46 uA typical, 100 uA maximum. Vadj = Vref = 1.20 / 1.25 / 1.30 V min / typ / max
So IF R1 is <= 100 ohms at 1.2V then ohms per Volt = 100/1.2 = 83 ohms per volt of output.
** <> TANTALUM CAPACITORS!** NB: The diagram copied below shows tantalum capacitors. Those who wish their circuits to live long and prosper will NOT use tantalum capacitors here, especially not for the input capacitor. Tantalum capacitors in high energy circuits, such as power supplies, when subject to even very very (uS range) over voltage spikes, will break down and self immolate. Can be amusing "on the bench". Not usually so amusing "in the field".
Here I've used 1.2V as that is Vadj min but it is actually in the range 1.2 - 1.3V
LM317 has an Iout related minimum (Vin-Vout) = dropout voltage.