Shop by category
Shop all componentsPower, batteries & solar
Keep R2 between 1 kΩ and 10 kΩ. On a ready-made module, you can replace the trimmer with fixed resistors for a fixed output voltage.
Vout = Vref × (1 + R1 ÷ R2)R1 = R2 × (Vout ÷ Vref − 1)LM2596 (Vref 1.23 V), R2 = 1 kΩ, target 5 V: R1 = 1000 × (5 ÷ 1.23 − 1) = 3.065 kΩ. The nearest E96 value, 3.09 kΩ, gives 5.03 V; the nearest E24 value, 3.0 kΩ, gives 4.92 V.
Adjustable buck and boost converters compare a fraction of their output voltage with an internal reference. Two resistors divide the output down to that reference, so the ratio sets the output voltage.
The same formula covers the LM2596, MP1584, XL4015, MT3608 and the TL431 shunt reference; only the reference voltage changes, and it is in each chip’s datasheet. Use 1% resistors, because the output accuracy depends on them directly.
Pick R2 (often 10 kΩ), then R1 = R2 × (Vout ÷ Vref − 1). Vref is in the datasheet, often 0.6 V, 0.8 V or 1.25 V.
The regulator adjusts its output until the feedback pin equals Vref, so the divider ratio sets the output.
Keep the divider current around 50 to 100 µA, often 10 kΩ to 100 kΩ, and use 1 % resistors for an accurate output.
Vout = Vref × (1 + R1 ÷ R2); R1 = R2 × (Vout ÷ Vref − 1).
LM2596 (Vref 1.23 V), R2 = 1 kΩ, target 5 V: R1 = 1000 × (5 ÷ 1.23 − 1) = 3.065 kΩ. The nearest E96 value, 3.09 kΩ, gives 5.03 V; the nearest E24 value, 3.0 kΩ, gives 4.92 V.
Geekobot builds that use it include Dashboard battery voltmeter for cars and bikes, Car cabin air-quality meter, Two-wheeler side-stand warning and Solder a fused 12 V to 5 V power board on stripboard. Each has the full parts list, wiring and code.
Results are estimates for design and learning. Check critical designs against the component datasheet. Made by the Geekobot Learning Team. How we write our calculators