Hi Staigen and Enac,
You are both right.
With input=5v, inv input=5v, output =5v and no current flows through the resistors.
With input = 2.5v, inv input=2.5v, output=0v because current flows through both resistors and giving equal voltage drop across each. So inv input is 2.5v below +rail (5v), and output is 2.5v below inv input.
EdwardM,
Your circuit is flawed because with R1=R2, the LH side of R3 is effectively sourced from 2.5v
When input=2.5v, inv input must be at 2.5v. So no current flows through R3 or R4 and output will be 2.5, whereas it should be 0v
Windoza,
This is such a simple circuit it cannot possibly fail. If you are still having trouble simulating it then either the simulator is handling the parameters of the opamp incorrectly, or it is selecting the wrong opamp. I cannot beleive the simulator has a fault - but worst things have happened.
Don't mess about with the simulator - just build it. It will work!
You are both right.
With input=5v, inv input=5v, output =5v and no current flows through the resistors.
With input = 2.5v, inv input=2.5v, output=0v because current flows through both resistors and giving equal voltage drop across each. So inv input is 2.5v below +rail (5v), and output is 2.5v below inv input.
EdwardM,
Your circuit is flawed because with R1=R2, the LH side of R3 is effectively sourced from 2.5v
When input=2.5v, inv input must be at 2.5v. So no current flows through R3 or R4 and output will be 2.5, whereas it should be 0v
Windoza,
This is such a simple circuit it cannot possibly fail. If you are still having trouble simulating it then either the simulator is handling the parameters of the opamp incorrectly, or it is selecting the wrong opamp. I cannot beleive the simulator has a fault - but worst things have happened.
Don't mess about with the simulator - just build it. It will work!