Dynamically regulate voltage

voltage-regulator

I wanted to know if it was possible to dynamically regulate voltage with, for example, a potentiometer which allows me to select output voltage and some kind of voltage regulator.

Suppose that I have a solar panel connected to this hypotethical voltage regulator; I want to be able to choose the output voltage of my regulator in 'real time' so that I can recharge for example batteries with different voltages.

Best Answer

Output voltage and voltage regulating are two different things. The second should be done by the regulator.

This is how you can achieve the first if you're using a LM317:

With digital outputs:

enter image description here

And the potentiometer variant:

enter image description here