PB Pierre Bakal
← Back to blog

Designing a 0–30V / 2A lab power supply with LM317

Published on 2026-10-12 - 8 min read
AlimentationLM317PCBLabo

A lab power supply with two LM317s in cascade.

Architecture

The first regulates voltage (0–30V), the second limits current (0–2A).

Calculations

Vout = 1.25 × (1 + R2/R1). R1=240 ohm, R2=5k ohm → 0–27V.

Thermal dissipation

At 2A with 5V drop, 10W. Heatsink 5 °C/W minimum.

PCB layout

4 mm traces, filtering 4700uF input / 10uF+100nF output.