Author Topic: 3 resistor voltage divider  (Read 19981 times)

0 Members and 1 Guest are viewing this topic.

Offline ChristopherTopic starter

  • Frequent Contributor
  • **
  • Posts: 429
  • Country: gb
3 resistor voltage divider
« on: May 01, 2015, 04:31:34 pm »
I have 3 resistors in series, tapping off two voltages to the inputs of a high-impedance comparator.

If I know the output voltages, input voltage, how is best to calculate the three resistors needed in Excel or similar?

This is probably more a question for a Maths forum..

Here are my equations:
« Last Edit: May 01, 2015, 04:46:59 pm by Christopher »
 

Offline JacquesBBB

  • Frequent Contributor
  • **
  • Posts: 829
  • Country: fr
Re: 3 resistor voltage divider
« Reply #1 on: May 01, 2015, 05:15:34 pm »
You cannot deduce the values of the resistors. You can only find their relative values

A solution is

R2/R3 = (V2-V1)/V1
R1/R3 = (Vin-V2)/V1

Any value  of R3  will work.

(edit :  to get the absolute values you need the   intensity of the current in the circuit).
« Last Edit: May 01, 2015, 05:22:29 pm by JacquesBBB »
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19663
  • Country: gb
  • 0999
Re: 3 resistor voltage divider
« Reply #2 on: May 01, 2015, 05:17:38 pm »
Yes, find the relative values and search for the combination which gives the best results.
 

Offline ChristopherTopic starter

  • Frequent Contributor
  • **
  • Posts: 429
  • Country: gb
Re: 3 resistor voltage divider
« Reply #3 on: May 01, 2015, 05:23:58 pm »
You cannot deduce the values of the resistors. You can only find their relative values

A solution is

R2/R3 = (V2-V1)/V1
R1/R3 = (Vin-V2)/V1

Any value  of R3  will work.

(edit :  to get the absolute values you need the   intensity of the current in the circuit).

Lovely clear formulas. This now makes more sense to me.
 

Offline German_EE

  • Super Contributor
  • ***
  • Posts: 2399
  • Country: de
Re: 3 resistor voltage divider
« Reply #4 on: May 01, 2015, 05:29:07 pm »
1) Start by considering this as a single voltage divider with Vin, V2 as output, R1 and (R2+R3)

2) Assign R1 a nominal value (say 1K ohm) and work out (R2+R3) for the voltage you need.

3) Do the calculation again but this time for the second voltage divider. Input is V2, output is V1 and make a best guess for R2 before you work out R3

So, let's suppose you have an input of 10V and you want your output voltages to be 7,5V and 2,5V

R1 is 1K ohms
(R2+R3) needs to be 3K ohms for 7,5V out

Vin for stage 2 is 7,5V
R1 is 2K ohms and R2 is 1K ohms (sum 3K ohms)

Edit: JacquesBBB got there before me by expressing this as formulae rather than practical examples, c'est la vie
« Last Edit: May 01, 2015, 05:31:38 pm by German_EE »
Should you find yourself in a chronically leaking boat, energy devoted to changing vessels is likely to be more productive than energy devoted to patching leaks.

Warren Buffett
 

Offline ChristopherTopic starter

  • Frequent Contributor
  • **
  • Posts: 429
  • Country: gb
Re: 3 resistor voltage divider
« Reply #5 on: May 01, 2015, 05:46:15 pm »
Great. Thanks.  I was getting mixed up in various sim equations earlier which wasn't helping :--.


Now, just say I have two comparators drawing bias current from both V1 and V2. What's the best way to stop the voltage drop across the two resistors? Or will it be so negligible that it doesn't matter?
 

Offline PSR B1257

  • Frequent Contributor
  • **
  • Posts: 330
  • Country: de
Re: 3 resistor voltage divider
« Reply #6 on: May 01, 2015, 06:30:13 pm »
Quote
just say I have two comparators drawing bias current from both V1 and V2.
Sure they do  ;D

Quote
Or will it be so negligible that it doesn't matter?
Most likely. Unless you choose resistors in the terra-ohm region, you should be fine  ;)
In theory, there is no difference between theory and practice. But, in practice, there is.
 

Offline ChristopherTopic starter

  • Frequent Contributor
  • **
  • Posts: 429
  • Country: gb
Re: 3 resistor voltage divider
« Reply #7 on: May 01, 2015, 06:54:38 pm »
Quote
just say I have two comparators drawing bias current from both V1 and V2.
Sure they do  ;D

Quote
Or will it be so negligible that it doesn't matter?
Most likely. Unless you choose resistors in the terra-ohm region, you should be fine  ;)

I have a series feed resistor of 27k on my input. With 200nA bias current, that will drop 6mV.

Kinda insignificant knowing my input offset maximum is about 6mV, too..
 

Offline PSR B1257

  • Frequent Contributor
  • **
  • Posts: 330
  • Country: de
Re: 3 resistor voltage divider
« Reply #8 on: May 01, 2015, 07:17:48 pm »
Quote
With 200nA bias current
Holy crap, what type of comparator do you use?

Quote
input offset maximum is about 6mV, too..
Rather tight. In this case you also need a stable refevenre voltage. And you should use trimmers in between the resistors, in order to fine tune the voltage.
In theory, there is no difference between theory and practice. But, in practice, there is.
 

Offline ChristopherTopic starter

  • Frequent Contributor
  • **
  • Posts: 429
  • Country: gb
Re: 3 resistor voltage divider
« Reply #9 on: May 01, 2015, 07:34:23 pm »
Quote
With 200nA bias current
Holy crap, what type of comparator do you use?
LM2903, which has a max bias current of 200nA over temp range & 15mV offset.

Quote
Rather tight. In this case you also need a stable refevenre voltage. And you should use trimmers in between the resistors, in order to fine tune the voltage.
I think i will just use trimmers to set the comparator limit & shut them closed with some red Loctite. Works out easier than trying to fit a load of resistors in series, and trimming becomes a whole load easier.
 

Offline PSR B1257

  • Frequent Contributor
  • **
  • Posts: 330
  • Country: de
Re: 3 resistor voltage divider
« Reply #10 on: May 01, 2015, 09:47:42 pm »
Quote
LM2903
Why did you use this one, if it is supposed to be a precision application  ???

Quote
Works out easier than trying to fit a load of resistors in series, and trimming becomes a whole load easier.
Yes, but with the resistor-trimmer-assembly you have a smaler range to adjust the voltage, and therefore you can use more of the trimmer-range.


In theory, there is no difference between theory and practice. But, in practice, there is.
 

Offline ChristopherTopic starter

  • Frequent Contributor
  • **
  • Posts: 429
  • Country: gb
Re: 3 resistor voltage divider
« Reply #11 on: May 01, 2015, 09:53:28 pm »
Quote
LM2903
Why did you use this one, if it is supposed to be a precision application  ???

I can use any I like, this just happens to be the first I have chose for these basic calculations! In my final project I will use a better specced comparator (the only real specs I need to look at are offset voltage, bias current and response time, right?).

Any advice on a decent part to use?


Quote
Works out easier than trying to fit a load of resistors in series, and trimming becomes a whole load easier.
Yes, but with the resistor-trimmer-assembly you have a smaler range to adjust the voltage, and therefore you can use more of the trimmer-range.
Good point. I plan on using 10-turn pots and a 5V reference. I can put some series resistance below the pot to decrease the pot range!
 

Offline PSR B1257

  • Frequent Contributor
  • **
  • Posts: 330
  • Country: de
Re: 3 resistor voltage divider
« Reply #12 on: May 02, 2015, 06:44:06 am »
Quote
this just happens to be the first I have chose for these basic calculations!
You should not use this one for any calculations, if you know, that it is not suited.

Quote
the only real specs I need to look at are offset voltage, bias current
Yes, these values should be low.

Quote
and response time, right?
Who knows? We still don't know, what your application looks like.
In theory, there is no difference between theory and practice. But, in practice, there is.
 

Offline abit

  • Contributor
  • Posts: 32
Re: 3 resistor voltage divider
« Reply #13 on: May 09, 2015, 04:55:41 am »
If I know the output voltages, input voltage, how is best to calculate the three resistors needed in Excel or similar?

Excel has a function for permutations, so if you care to run all of E variations (not to mention power ratings and tolerances of 0.1% to 5%) you are going to end up with a DATABASE larger than Earth.. There is a reason why the E-standard was designed as such, and to save your sanity - do not ever think about going parallel more than 2 resistors. Even then, the effort is not going to justify the cost.

I have nothing to back this up but I have gone insane before along these lines, and the first approximation of the math in bash script was as expected, it ran for days and gobbled up gigabytes of disk space for a loose result.

Do not go beyond two resistors paralleled - and go there only when in dire straights for an odd value. Even then, you are going to loose some precision, since the approximation is a logarithm, and when there IS a PERFECT match you SHOULD have a discrete value of E192 of the same.

Now, the question is if you need it in:
0.125W, 0.250W, 0.500W, 1W, 2W or higher.
0.01%, 0.2%, 0.5%, 1% precision or lower.
... You got the idea

Do not think about it, do not go there. The variations of all these man-made objects is larger than Earth itself.
 

Offline JacquesBBB

  • Frequent Contributor
  • **
  • Posts: 829
  • Country: fr
Re: 3 resistor voltage divider
« Reply #14 on: May 09, 2015, 12:14:42 pm »
@abit

I am sorry, but I do not understand the purpose of your post.

The initial question of this thread is on voltage divider, and it is solved (see above).
Then  discussion  followed on proper resistance values compared to the impedance of 
the opamp that is in the circuit.

You seem to answer to a question, but as the answer is confuse, it would at least be nice to
state again which is the question to which your answer corresponds.

Apart from that,  despite the uncertainty of  the question,  let me remind you that to solve a
simple circuit problem, the best method is not  to try all possible values for the components.

A   simple circuit can be modelized by mathematical formulae  that can often be solved,
thus providing answer without filling a Earth sized database. 
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19663
  • Country: gb
  • 0999
Re: 3 resistor voltage divider
« Reply #15 on: May 09, 2015, 12:34:36 pm »
It's possible to minimise the effect of the bias current by making the impedances connected to each input as close as possible, that way the offset due to the bias on each input will be the same.
« Last Edit: May 09, 2015, 03:20:37 pm by Hero999 »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf