I came across this question here:
MCU 'remote control' of DC-DC converter's Vout adjustment potentiometer
It is about controlling the output voltage of a DC/DC buck converter by injecting voltage into the middle of the voltage divider of the feedback pin of the converter.
One of the answers is in this diagram below on the post, with a DAC attached to an MCU and this DAC is used to control the output voltage, by connecting it by a R3 resistor to the voltage divider of the converter.
Can I use an ESP32 MCU, that already has a built-in DAC, and connect it directly to the R3 and to the converter? Would it work the same way? Can the ESP32 DAC handle current going into it and out of it, without damaging it?
If so, is there a formula to calculate the R3 resistor needed, for max. voltage -> 30 V and min. voltage -> 18 V? Is it even possible to achieve this voltage difference with a 3.3 V ESP32 DAC?