I want to add fine and coarse adjustment to a power supply for both voltage and current control, for fine tuning I'll need four potentiometers either 10 turn or regular ones. I was thinking to trim two of this pots to reduce the cost and space and I came up with this idea:

simulate this circuit – Schematic created using CircuitLab

Basically converting an 8 bit PWM to voltage and using it as voltage reference, above circuit is the same as this one:

simulate this circuit

And the problem with above circuit is; if we set the coarse pot to output it's maximum voltage, it's like the coarse pot isn't in the circuit anymore and therefore we can't get any fine tuning.

In this question @Spehro Pefhany suggested a voltage divider "network" for coarse and fine tuning.

How can I combine digital(DAC) and analog(POT) to achieve coarse/fine tuning?

• You should add a unity gain amplifier otherwise the load influences the adjustment of the potmeter Commented Dec 27, 2019 at 14:41

The simplest method to control Voltage and current limit is to use an analog Vref derived from a DAC output with say 8 bit resolution for 256 levels.

Define the digital interface for convenience, too many ways to mention;

• Serial Async - Tx only or with feedback

• UART with 1 byte for voltage and 1 byte for current limit followed by using Serial Data & Clock on 2 ports, a serial DAC
• Serial Sync - Clk+data depends on distance, speed and resolution

• use a SIPO register to discrete R-2R DAC

Here an 8 bit DAC simulated with a clock and counter , add a unity gain Op Amp buffer and choose the terminator R to scale down the Vmax range. You may easily Slider change the value in this browser based Simulator.

## Analog

The concept of two pots for coarse and fine must be done in series , not parallel unless they are bufference to prevent short circuiting each other in parallel. Often a fixed R is put in series to limit the tuning range. For coarse, fine the total resistance defines the load and the chpice for fine tuning % determines it's value. e.g. 1k:100R or 1M:50K for 5% fine tune range.

simulate this circuit – Schematic created using CircuitLab

• I want 0.5/1mV adjustment resolution, it seems that I can't achieve that with the link you provided. correct? Commented Dec 27, 2019 at 15:27
• Of course you can.. Just define resolution 1:1k = 10 bits , 1:4k= 12 bits, 1:64k = 16bits then choose shift register size and method of loading it. Commented Dec 27, 2019 at 15:29
• Thanks for the answer. Basically is a 16 bit DAC(right?), two channel 16 bit DACs are expensive and a bit overkill for my tiny/cheap project... Commented Dec 27, 2019 at 15:40
• 64k resolution is a bit overkill too, but you can see how cheap 16 bit SIPO is and you dont need speed Commented Dec 27, 2019 at 15:41
• So I can't achieve 1mV resolution without using two pots or an expensive DAC? that's the question. Commented Dec 27, 2019 at 15:42

It's not clear why you want to do this. The Arduino, which you mentioned in other posts, has a 16-bit PWM timer and you can learn how to use that in the answer to increase-pwm-bit-resolution.

Your cascaded potentiometer arrangement is poor. Imagine what happens when the first pot is close to maximum. The second one then spans the whole range so you have lost any advantage of having two pots.

simulate this circuit – Schematic created using CircuitLab

Figure 1. A coarse (R2) and fine (R1) potentiometer arrangement can use standard single-turn pots. With the 1:10 arrangement shown the fine adjustment would be about 1/10 of the coarse adjustment.

• Because multi turn pots are expensive and Arduino PWM is glitchy, maybe combing this two can cover each other disadvantages... I already have the MCU in the project so why not. Commented Dec 27, 2019 at 14:25
• @ElectronSurf What's glitchy about Arduino PWM? Commented Dec 27, 2019 at 15:02
• @ScottSeidman it's don't get to 0V for example at 16 bit. or set values sometimes "jump" or not be steady etc... Commented Dec 27, 2019 at 15:09
• @ElectronSurf -- those seem like issues of signal handling more so than issues with PWM. PWM is dirt-simple hardware stuff, and quite deterministic. Commented Dec 27, 2019 at 16:17