0

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:

schematic

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:

schematic

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?

ElectronSurf
  • 2,185
  • 3
  • 24
  • 61
  • 1
    You should add a unity gain amplifier otherwise the load influences the adjustment of the potmeter – Huisman Dec 27 '19 at 14:41

2 Answers2

1

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.

schematic

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.

Transistor
  • 168,990
  • 12
  • 186
  • 385
  • 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. – ElectronSurf Dec 27 '19 at 14:25
  • @ElectronSurf What's glitchy about Arduino PWM? – Scott Seidman Dec 27 '19 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... – ElectronSurf Dec 27 '19 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. – Scott Seidman Dec 27 '19 at 16:17
1

Fine, coarse adjustment digitally?

Do both in one simple digital to analog interface

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.

schematic

simulate this circuit – Schematic created using CircuitLab

Tony Stewart EE75
  • 1
  • 3
  • 54
  • 182
  • I want 0.5/1mV adjustment resolution, it seems that I can't achieve that with the link you provided. correct? – ElectronSurf Dec 27 '19 at 15:27
  • 1
    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. – Tony Stewart EE75 Dec 27 '19 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... – ElectronSurf Dec 27 '19 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 – Tony Stewart EE75 Dec 27 '19 at 15:41
  • So I can't achieve 1mV resolution without using two pots or an expensive DAC? that's the question. – ElectronSurf Dec 27 '19 at 15:42
  • read my 1st comment.. of course you can but you said digital control and 16 bit SIPO and resistors is dirt cheap. – Tony Stewart EE75 Dec 27 '19 at 15:43
  • Forgive my ignorance but PWM based DACs are not reliable, if there was a way as I described in the question I could simply set the a voltage range using the PWM based DAC and form there fine tune the output using a multi turn pot. – ElectronSurf Dec 27 '19 at 15:48
  • Let us [continue this discussion in chat](https://chat.stackexchange.com/rooms/102614/discussion-between-tony-stewart-sunnyskyguy-ee75-and-electronsurf). – Tony Stewart EE75 Dec 27 '19 at 15:49