Electrical – Why does the op-amp circuit always give the same output

operational-amplifier

I have an op-amp design same with the picture seen below with TL072.I have an analog sensor that goes as Vin. I am giving 3.3V from an arduino to power it. And reading values from an analog pin.

The problem is that the output gives constant 1.2 V while sensor and resistors are disconnected and 2.3V while they are connected.

r2=220 ohm|
rf=2.2k ohm|
sensor gives output between 0-200 mV

 Image taken from http://www.electronics-tutorials.ws/opamp/opamp_3.html

*Image taken from http://www.electronics-tutorials.ws/opamp/opamp_3.html

Best Answer

You are trying to measure a voltage that is close to the negative supply rail (so you need a single-supply op-amp), you have a low supply voltage (so only some low voltage op-amps are suitable), your voltage is rather low (so offset voltage matters). The output needs to swing near the negative rail (so RRO or single supply). If you increased the supply voltages (say +10/-5) to get the TL072 to work you'd run into the requirement to keep the input voltage to the ADC within approximately the range of 0-3.3V.

Your TL072 is thus unsuitable for a myriad (or maybe even a plethora) of reasons.

Follow @Fakemoustache's suggestion- and used something like a MCP606. It's also compliant with any desire you may have to avoid very tiny packages- it's available in 8-pin DIP. Offset voltage is max +/-250uV so offset error in the output will be less than 3mV.

I also suggest you increase the values of your feedback resistors by perhaps 10:1 (22K/2.2K) or maybe 49.9K/4.99K 1% because your values will load the op-amp output a lot and cause more gain error than necessary. Your gain in any case will be ~11 so you will get 0-2.2V out for 0-200mV in.