Skip to main content

Design LM317 variable regulator 15 V to 25 V

Short answer

Set R1=240Ω, R2 = 2.64kΩ fixed (2.4kΩ+240Ω) plus a 2kΩ pot. Input voltage ≈ 29V dc. Output range is 15V to 25V.

Design a 15V-25V variable DC voltage regulator using LM317 IC.

LM317 is a three-terminal adjustable positive regulator (1.25 V to 37 V, up to 1.5 A). Between OUT and ADJ it holds a constant reference Vref = 1.25 V, so with R1 from OUT to ADJ and R2 from ADJ to ground:

Vout = 1.25 (1 + R2/R1) + Iadj R2 (Iadj ≈ 50 µA, neglected)

Circuit

            +--------------+
 Vin o--+---| IN       OUT |---+------+--o Vout
        |   |    LM317     |   |      |
      [C1]  |     ADJ      | [R1]   [C2]
        |   +------+-------+   |      |
       GND         +-----------+     GND
                   |
                 [R2 = fixed + pot]
                   |
                  GND

C1 = 0.1 µF (input bypass), C2 = 1 µF (output).

Design for 15 V to 25 V

  1. Choose R1 = 240 Ω. The current in R1 is 1.25/240 = 5.2 mA, which is above the minimum load current of the LM317 (about 3.5 to 5 mA).
  2. R2 = R1 (Vout/1.25 − 1)
  3. Minimum output 15 V: R2(min) = 240 (15/1.25 − 1) = 2640 Ω
  4. Maximum output 25 V: R2(max) = 240 (25/1.25 − 1) = 4560 Ω
  5. A potentiometer alone cannot give a minimum above 1.25 V, so use a fixed resistor in series with the pot:
    • Fixed resistor = 2640 Ω (not a standard value; use 2.4 kΩ + 240 Ω in series)
    • Potentiometer = 4560 − 2640 = 1920 Ω → use the next standard value, a 2 kΩ pot, and set it so that the maximum output is 25 V
  6. Input voltage: the LM317 needs a dropout of about 3 V, so Vin ≥ 25 + 3 = 28 V. Use an unregulated supply of about 29 V dc (the maximum Vin − Vout is 40 V).

The pass transistor inside the IC dissipates (Vin − Vout) IL, so a heat sink is needed at high current.

Answer: R1 = 240 Ω, R2 = 2.64 kΩ (2.4 kΩ + 240 Ω) fixed + 2 kΩ pot, Vin ≈ 29 V.

✓ Answer checked by Claude Opus 5.5 (high effort)

All Electronics Devices and Circuit chapter 6 questions →