Output voltage control of DC/DC converters

Some applications needs to control the output voltage of a dc/dc converter instead using a fixed output voltage. For example battery chargers has to adjust the output voltage to the current battery level. This page shows how to add such a control function to a buck converter circuit.

Control output via external voltage source

Typically a voltage divider is used in dc converters to adjust the output voltage to the needed feedback voltage. To control the feedback signal by an external voltage source, a third resistor is added to the circuit.
A cheap LM2596 converter board is used (pin 4 of LM2596 is the feedback pin):

Calculate resistor network

If there is a fixed resistor to ground and a poti to control the feedback voltage, the additional "control"-resistor can be calculated:

dc/dc converter resistor network

Feedback voltage: V
Resistor R3: Ohm
Output voltage range: V ... V
Control voltage range: V ... V

Trim poti for wanted output voltage range

If you use a dc/dc converter board with potentiometer, please note that calibrating the poti with a multimeter is not possible because the resistance cannot be measured in circuit.

Steps to set the upper voltage bound:

Use DAC to control output voltage

Connect a MCP4725 DAC output via resistor (R2) to the feedback pin of the dc converter chip. Set maximum DAC voltage (it sets minimum output voltage on dc/dc converter)

Vrms calculator
RC snuber calculator
By Savan @ 2022