Remotely control power supply with adjustable voltage

control systemmicrocontrollerpower supplyswitch-mode-power-supply

I have a power supply unit with adjustable output voltage. The output voltage is adjusted using a potentiometer. However, I need to change output voltage remotely and dynamically.

What kind of circuit should I use to substitute the potentiometer in the power supply unit to control it remotely (30-50 cm) by the micro-controller?

Both analog and digital control of the modified PSU is acceptable.
Cost and low wire count are also important factors.
However, the most important factor is how reliable the system is (isolation between PSU and MCU in case of a lightning strike etc).

Thank you in advance.

Best Answer

Here is one approach that might be suitable as is or with slight modification.

PWM controlled divider