electricpy.lm317¶
- electricpy.lm317(r1, r2, v_out)[source]¶
LM317 linear voltage regulator solver.
The LM317 is a linear voltage regulator that can be adjusted to supply a specific output voltage. The LM317 has three pins, adjust, output and input. The LM317 is often connected as in the image below. [1]
Formula to Calculate Output Voltage, R1, R2:
\[V_{out} = 1.25 * (1+\frac{R2}{R1})\]\[R1 = \frac{1.25*R2}{V_{out}-1.25}\]\[R2 = \frac{R1*V_{out}}{1.25 - R1}\]