In the circuit at #5:
The supply polarities are correct, though I don't like a battery symbol with an assigned polarity that conflicts with the normal use of the symbol (long line positive, short negative). I recommend flipping the symbol and setting the value to 7, rather than using the symbol upside down and setting the value to -7 - like Crutschow has done at #19.
The reason that +5 V input will not yield 0 V output is that the gain for the offset voltage is wrong. Using -7 V to produce an offset of +5.0 V requires a gain of -0.714. 10k & 15k yield offset gain of -0.667 for offset of +4.667 V, meaning with +5V input you will get -0.333 V output, exactly as your simulation has shown. Since you don't want to change the signal gain, you don't want to change the ratio of R1 to R2, so you would need to change the value of R3 to change the offset gain. I'll leave you to calculate the required value as an exercise.
==
You might be able to use a single supply op "rail to rail" op amp in Crutschow's circuit, but you'll need to evaluate it carefully. The signal current forces the output of the amplifier to "sink" current to its negative supply rail, and even so-called rail to rail amps can't get really close to the negative rail when sinking current (or the positive when sourcing). This means a single supply amp might only get within several tens of millivolts of zero, but if that is acceptable you save the need for a negative power supply. Since you want 5 volts out from the amp circuit, I'm guessing you want to use +5 V as the reference for the 3915 to keep everything ratiometric. This makes the not-quite-zero problem less of an issue.
Scaling all of the resistors in Crutshow's circuit up by a factor of 5 or 10 would reduce the amount of current and allow getting a little closer to the rail.
==
Your circuit at #3 should produce exactly zero volts output for the full range of your input signal because it is a differential amplifier with the same signal to both inputs, so the difference is always zero. In practical circuits a small mismatch in resistors ratios will cause the output to deviate from zero (interesting and instructive to play with mismatching in a simulation or doing the math). Imperfections in the op amp, such as input offset voltage, will also lead to non-zero output.
The supply polarities are correct, though I don't like a battery symbol with an assigned polarity that conflicts with the normal use of the symbol (long line positive, short negative). I recommend flipping the symbol and setting the value to 7, rather than using the symbol upside down and setting the value to -7 - like Crutschow has done at #19.
The reason that +5 V input will not yield 0 V output is that the gain for the offset voltage is wrong. Using -7 V to produce an offset of +5.0 V requires a gain of -0.714. 10k & 15k yield offset gain of -0.667 for offset of +4.667 V, meaning with +5V input you will get -0.333 V output, exactly as your simulation has shown. Since you don't want to change the signal gain, you don't want to change the ratio of R1 to R2, so you would need to change the value of R3 to change the offset gain. I'll leave you to calculate the required value as an exercise.
==
You might be able to use a single supply op "rail to rail" op amp in Crutschow's circuit, but you'll need to evaluate it carefully. The signal current forces the output of the amplifier to "sink" current to its negative supply rail, and even so-called rail to rail amps can't get really close to the negative rail when sinking current (or the positive when sourcing). This means a single supply amp might only get within several tens of millivolts of zero, but if that is acceptable you save the need for a negative power supply. Since you want 5 volts out from the amp circuit, I'm guessing you want to use +5 V as the reference for the 3915 to keep everything ratiometric. This makes the not-quite-zero problem less of an issue.
Scaling all of the resistors in Crutshow's circuit up by a factor of 5 or 10 would reduce the amount of current and allow getting a little closer to the rail.
==
Your circuit at #3 should produce exactly zero volts output for the full range of your input signal because it is a differential amplifier with the same signal to both inputs, so the difference is always zero. In practical circuits a small mismatch in resistors ratios will cause the output to deviate from zero (interesting and instructive to play with mismatching in a simulation or doing the math). Imperfections in the op amp, such as input offset voltage, will also lead to non-zero output.
Last edited: