- Joined
- Nov 28, 2011
- Messages
- 8,393
Gorgon has explained it pretty well. You can't apply a voltage to the input. That will simply force the op-amp to slam its output against one of the supply rails and the circuit will do nothing useful. You have to apply a current to the input, which can be opposed by the current through the feedback resistor so that the op-amp can bring its inverting input to the same voltage as its non-inverting input, i.e. 0V.
If you force a voltage onto the inverting input, you will prevent the op-amp from bringing its inverting input to the same voltage as its non-inverting input, and the op-amp will simply compare the two voltages and swing its output as hard as it can towards one of the supply rails, depending on the polarity of the voltage difference between its inputs.
The current for the input of this circuit can come from any circuit or a device that generates a current, positive or negative. I suggested a photodiode or phototransistor, because that circuit would make a good amplifier for a photodiode or phototransistor, but there are various other circuits and components that operate as current generators that you could use.
The simplest way to generate a current is using a voltage source with a series resistor, as I described. In this circuit it's convenient that the inverting input is forced to 0V (the non-inverting input voltage) by the action of the op-amp acting through the feedback resistor, because it means that the current through the series resistor will always be directly proportional to the voltage applied to the left hand end of it.
This is exactly how an op-amp-based inverting voltage amplifier stage works. The inverting voltage amplifier is the same circuit but with a series resistor added between the circuit's input point and the op-amp's inverting input. The input voltage generates a proportional voltage across the series resistor, and the op-amp's output sends an equal but opposite current through the feedback resistor to oppose that input current and bring the inverting input to the same voltage as the non-inverting input, i.e. 0V. In the process, the voltage at the output of the op-amp has to be proportional to the inverse of the input voltage. Therefore it is an inverting voltage amplifier.
The voltage at the inverting input is always held equal to the voltage at the non-inverting input, so the current through the input series resistor is always proportional to the input voltage (at the left end of the input resistor), according to Ohm's Law as applied to the input resistor. The inverting input is a summing node, where current from the input and an equal opposing current from the output (through the feedback resistor) cancel each other out, resulting in zero voltage (since the inverting input is connected to 0V).
The ratio of the input resistor to the feedback resistor determines the gain of the circuit. (Actually it's a negative gain because the circuit always inverts.)
The inverting amplifier circuit can be extended to a summing amplifier by adding more inputs, each with its own series resistor connecting to the summing node at op-amp's inverting input. Because this summing node always stays at 0V, because of the op-amp's action through the feedback resistor, there is no unwanted interaction between the inputs. Each input simply generates a proportional current into the summing node, and the op-amp's output is forced to the appropriate voltage to cancel out the sum of those currents. This gives a very simple and effective circuit for combining several input signals.
Gorgon is also right that the feedback resistor value, 100 ohms, is unusually low and will constrain the output voltage range because a general purpose op-amp like the LM324 cannot source or sink much current from its output. The load on an LM324 should be limited to around +/- 10~15 mA, so a feedback resistor of 1k or higher is more sensible. Something in the range 3k3~100k would be typical.
If you force a voltage onto the inverting input, you will prevent the op-amp from bringing its inverting input to the same voltage as its non-inverting input, and the op-amp will simply compare the two voltages and swing its output as hard as it can towards one of the supply rails, depending on the polarity of the voltage difference between its inputs.
The current for the input of this circuit can come from any circuit or a device that generates a current, positive or negative. I suggested a photodiode or phototransistor, because that circuit would make a good amplifier for a photodiode or phototransistor, but there are various other circuits and components that operate as current generators that you could use.
The simplest way to generate a current is using a voltage source with a series resistor, as I described. In this circuit it's convenient that the inverting input is forced to 0V (the non-inverting input voltage) by the action of the op-amp acting through the feedback resistor, because it means that the current through the series resistor will always be directly proportional to the voltage applied to the left hand end of it.
This is exactly how an op-amp-based inverting voltage amplifier stage works. The inverting voltage amplifier is the same circuit but with a series resistor added between the circuit's input point and the op-amp's inverting input. The input voltage generates a proportional voltage across the series resistor, and the op-amp's output sends an equal but opposite current through the feedback resistor to oppose that input current and bring the inverting input to the same voltage as the non-inverting input, i.e. 0V. In the process, the voltage at the output of the op-amp has to be proportional to the inverse of the input voltage. Therefore it is an inverting voltage amplifier.
The voltage at the inverting input is always held equal to the voltage at the non-inverting input, so the current through the input series resistor is always proportional to the input voltage (at the left end of the input resistor), according to Ohm's Law as applied to the input resistor. The inverting input is a summing node, where current from the input and an equal opposing current from the output (through the feedback resistor) cancel each other out, resulting in zero voltage (since the inverting input is connected to 0V).
The ratio of the input resistor to the feedback resistor determines the gain of the circuit. (Actually it's a negative gain because the circuit always inverts.)
The inverting amplifier circuit can be extended to a summing amplifier by adding more inputs, each with its own series resistor connecting to the summing node at op-amp's inverting input. Because this summing node always stays at 0V, because of the op-amp's action through the feedback resistor, there is no unwanted interaction between the inputs. Each input simply generates a proportional current into the summing node, and the op-amp's output is forced to the appropriate voltage to cancel out the sum of those currents. This gives a very simple and effective circuit for combining several input signals.
Gorgon is also right that the feedback resistor value, 100 ohms, is unusually low and will constrain the output voltage range because a general purpose op-amp like the LM324 cannot source or sink much current from its output. The load on an LM324 should be limited to around +/- 10~15 mA, so a feedback resistor of 1k or higher is more sensible. Something in the range 3k3~100k would be typical.