Electrical – Voltage divider with a negative rail

resistorsvoltage divider

Hopefully this is something not too difficult!

I am trying to get a voltage divider which has a positive and negative rail such as this:

schematic

simulate this circuit – Schematic created using CircuitLab

I know with a standard voltage divider the equation for Vo would be (R2/R1+R2)*Vin which is fine.

I know if R1 and R2 are equal, you get half the supply. I know this works with a positive and negative rail also, for example:
V+ = +5V
V- = -5V
R1 = 100R
R2 = 100R

Then I know Vo will be 0V as this is the halfway point.

My question then, is what if the value of R1 or R2 changes? I have done simulations, for example, when I make R2 half the value of R1, my simulation tells me the Vo is -1.67V.
When R2 is a quarter of the value, then Vo is -3V.

Also, If I change the value of R1, then it gives me the same results, but positive, rather than negative.

I have tried to search for an equation to calculate Vo but cannot find one. All the voltage divider calculators online just assume that V- is GND. I have tried to find some way of calculating it by putting the -5 in the equation somewhere but I never get the same result as the simulation.

Does anyone know if there is an equation for this, and of so, what is it? Would be useful for a project idea I have in mind!

I hope I have worded this well enough and have supplied all the appropriate information, if not, please do not hesitate to ask if I have not communicated something properly.

Best Answer

This is your equation for Vout in terms of V+,V- R1 and R2:

VO = V+ - ((V+ - V-)/(R1+R2))*R1

In short, just find the total voltage, divide by the total resistance to get current, then find the voltage drop across one of the resistors (I used R1) and use that to get VO. If you found the voltage across R1 then do V+ - VR1 or if you found it across R2 then do V- + VR2.

Oh, and don't use a divider like that to power any circuitry, if you actually need the rail buffer with an opamp. Also, don't use that circuit as a voltage reference, with 200 Ohm total R you will be throwing away lots of current.


.