Projects / Variable bench power supply with LM317

Variable bench power supply with LM317

Intermediate3 hGuided buildReviewed

Build it step by step

0 of 7 done
  1. LM3174.98VBANANA

    Do the heat sums first

    Heat in the regulator = (Vin − Vout) × current. At 19 V in, 5 V out and 0.5 A that is 7 W. Plan for a big heatsink and keep current at 0.5 A or less unless you add one.

  2. LM3174.98V

    Build the regulator

    LM317 on perfboard with a heatsink bolted to it, using an insulating washer if the heatsink touches anything.

  3. 4.98V

    Add the resistor network

    220 Ω from OUT to ADJ, multi-turn pot from ADJ to ground, and the 10 µF capacitors.

  4. Add the protection diodes

    D1 from OUT to IN backwards, D2 from ADJ to OUT backwards, both with the stripe pointing the way shown in the table.

  5. BANANA3.31 V

    Test with no load

    Power up with the pot at minimum and read the output with a multimeter. It should be about 1.25 V.

  6. Turn the pot

    The voltage rises smoothly to about 15 V. Mark a few voltages on the front panel.

  7. 4.98V

    Test with a load

    Put a 100 Ω resistor on the output at 5 V and check the voltage holds and the heatsink warms.

In short

How do you build a variable bench power supply with LM317?

An LM317 regulator gives 1.25 to about 15 V from a 19 V laptop adapter, with a voltmeter check and a heatsink. You need LM317 adjustable regulator, Heatsink TO-220, Resistor 220 Ω, Multi-turn potentiometer 10 kΩ (3590S), Electrolytic capacitor 10 µF × 2, Ceramic Capacitor 100 nF, Rectifier Diode 1N4007 × 2, Banana plug and socket 4 mm × 2, DC barrel jack 5.5 × 2.1 mm (PCB), Digital multimeter and ABS project box (100 × 60 × 25 mm). It takes 7 steps and about 180 minutes.

Level
Intermediate
Time
About 180 min
Parts
11

Parts list

Tick what you already own. It saves to My Garage, so “Build with what I have” knows.

Wiring

FromToWhy
Laptop adapter + (19 V)DC jack centre, then LM317 IN and 100 nF to GNDInput
Adapter -DC jack sleeve and groundGround
LM317 OUT220 Ω to ADJ, and the positive banana socketR1 sets the reference current
ADJMulti-turn pot (R2) to ground, and 10 µF to groundOutput voltage set by R2
10 µFOUT to groundOutput capacitor
1N4007 (D1)Anode on OUT, cathode on INProtects against a short at the input
1N4007 (D2)Anode on ADJ, cathode on OUTProtects against the ADJ capacitor discharging
Negative banana socketGroundOutput negative

No code needed

No code. Vout = 1.25 × (1 + R2 ÷ R1). With R1 = 220 Ω, about 2.4 kΩ of the 10 kΩ pot gives 15 V, so only the first quarter of the multi-turn pot is used and the top end is limited by the input voltage (about 2 V headroom needed). The heatsink tab connects to OUT, so insulate it from any metal case. The laptop adapter is a sealed brick, and nothing in this build connects to mains.

Test checklist

What you should see at each check. If a reading is far off, stop and use the troubleshooting list.

CheckExpected
Pot at minimumAbout 1.25 V
Pot turned upRises smoothly to the adapter's voltage minus about 2 V
5 V at 100 Ω loadHolds within 0.1 V
Heatsink at 0.5 A and 5 VWarm but too hot to touch only if the heatsink is too small

If it does not work

Output stuck at 1.25 V

ADJ is not connected to the pot wiper, or the pot is shorted.

Output equals input

The output cannot be adjusted if ADJ is floating. Check the ADJ wire.

Regulator gets very hot

The voltage difference is large. Lower the input or add a bigger heatsink and keep the current low.

Output oscillates

Add the 10 µF output capacitor close to the regulator.

Still stuck? Find the fault step by step with your multimeter →

Ask Lark AI

Common questions

What parts do I need for the variable bench power supply with LM317?

LM317 adjustable regulator, Heatsink TO-220, Resistor 220 Ω, Multi-turn potentiometer 10 kΩ (3590S), Electrolytic capacitor 10 µF × 2, Ceramic Capacitor 100 nF, Rectifier Diode 1N4007 × 2, Banana plug and socket 4 mm × 2, DC barrel jack 5.5 × 2.1 mm (PCB), Digital multimeter and ABS project box (100 × 60 × 25 mm).

How long does the variable bench power supply with LM317 take to build?

About 180 minutes for a intermediate maker, in 7 steps.

How do I know the variable bench power supply with LM317 works?

Pot at minimum: About 1.25 V. Pot turned up: Rises smoothly to the adapter's voltage minus about 2 V. 5 V at 100 Ω load: Holds within 0.1 V.

Output stuck at 1.25 V: what should I check?

ADJ is not connected to the pot wiper, or the pot is shorted.

Output equals input: what should I check?

The output cannot be adjusted if ADJ is floating. Check the ADJ wire.

Regulator gets very hot: what should I check?

The voltage difference is large. Lower the input or add a bigger heatsink and keep the current low.

Output oscillates: what should I check?

Add the 10 µF output capacitor close to the regulator.