Enochfoul said:
Min Voltage V=IR 3.125*400=1.25V
Max Voltage V=IR 3.175*5000=15.875V
I think you're still a bit low with your max voltage:
R
var = resistance of variable resistor ...0 Ω....... 5kΩ
V
Adj = R
var x 3.175mA ......0Ω x 3.175mA= 0V ...5kx3.175mA = 15.875V
V
Out = V
Adj + 1.25V ......0V+1.25V=
1.25V ....15.875 + 1.25 =
17.125V
The Output is always 1.25 V above Adj.
Yes, for the LM317, 1.25V is the "typical" value, but it can vary from 1.2 to 1.3, and the 50μA is also typical, but could be up to 100μA (they don't mention a minimum for this on my datasheet: perhaps, since it is ideally zero, no one worries if it is smaller than expected?)
I think these values are given, not so much so that you can calculate the output exactly rather than approximately (you can't !), but so that you can estimate the possible error.
Say you were designing a power supply to give 12V, you could not be certain that all the circuits you produced would be exactly 12V. You would have to allow some tolerance (or permissible margin of error.) Apart from the regulator chip even the resistors are not exactly what they say. A cheap resistor might be 5% tolerance, or you could go upmarket a bit for 2% or 1% tolerance. Better than that and the price rises rapidly. (I'm not currently buying these, so my figures may be dated - I even used to buy cheap resistors with 20% tolerance! - but the principle is going to be the same.) The variable resistor is even more difficult to manufacture accurately. Just looking at a cheap (is 2 pounds cheap for a pot these days?) potentiometer I see they quote ±20%. So if you used that for your 5k variable, your maximum resistance could be anything from 4k to 6k. That'll make more difference than 1.2 or 1.3V or the 50μA. And most components change their value with temperature.
At the end of the day you add up all the possible errors to find the worst case above and below your target, then you can specify that your power supply will give 12V ± 1V say. If that is not good enough, you need to redesign it. Maybe find a better chip, use closer tolerance components (at least for the critical component), put in a variable component and adjust it to get the output closer to your target, or get clever with the design in some way (that's one reason why many real circuits don't look like the simple circuits you see in textbooks. )