So a friend and I are building a power supply using buck converter. The buck converter is going to be using the adjustable version of the LM2678 switching controller that will regulate the output voltage by varying the duty cycle. The chip uses a voltage divider connected to the output voltage which the feedback voltage is measured and the chip uses this to adjust duty cycle to keep the voltage at the same value. By varying R2 in the schematic attached bellow, the output voltage can be selected. Our problem is that this voltage divider is susceptible to interference from the inductor of the buck converter so we would like to make the voltage divider physically as small as possible to avoid this. That means we cannot run wires from the pcb to a potentiometer on the front panel of the power supply. We also tried looking at digital pots but they seem to only handle small currents and voltages around 5V where as our supply will be providingup to 20V on the output. The feedback pin requires 1.21V so the voltage drop across this variable resistor at R2 will be anywhere from about 1V to roughly 19V. We would prefer to avoid placing the entire pcb vertically against the front panel. This would allow access to a pot on the pcb without increasing the amount of noise it receives from the inductor but we would prefer having the pcb positioned horizontally on the base of the power supply. Are there any alternatives to digital pots or any methods to vary the resistance without also increasing it's susceptibility to noise?