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?