In my circuit (picture below), ATMEGA32 output is connected to a RC filter (R=100K, C=10uF 63V) to non-inverting terminal of OpAmp (LT1006). OpAmp is configured as voltage follower (Buffer Amplifier). Voltage in non-inverting terminal varies (0 to 5 V) by changing values in OCR1 register of ATmega32.
Theoretically, in a buffer amplifier configuration, output will be the same with respect to input of an OpAmp but in this case the output go high rather than input (eg: input=1.45 V, output=2.68 V).
I connected different voltage from other source to non-inverting terminal output will be the same so the mistake is happening while connecting via RC filter.
Would anyone kindly give any solution for this?
Best Answer
The OPAMP is totally unsuited to what you want with a 5V power supply.
Fix this then re-examine the problem you are having by disconnecting the output transistor (just to make sure this isn't causing a problem due to mis-wiring the device.
Try an AD8605 for the op-amp - it has rail-to-rail input and output capability but still remember that getting it's output down to 0V when the most negative rail is 0V isn't going to happen - you might get the output down to 50mV or a bit less.