Hey guys! So I am trying to make a simple opamp circuit. I am using a LM358 in a non-inverting configuration. My R2 is 470 ohm and my R1 is 330 ohm. Using the formula Av = R2 / R1 + 1, we should have a gain of 2.42.
Here is where I suspect I am doing something wrong. I am feeding in a square wave from an arduino.
Theoretically this should change the signal from 0-5v to 12.1v right?
However, my positive supply to the opamp is only 5v.
BUT, looking at the input and output signals on the scope, they are almost identical. They have nearly the exact same amplitude and frequency, it just appears to have a little distortion added. This signal is the EXACT same output I get when using a voltage follower configuration.
So what am I doing wrong? (besides only having a 5v rail and expecting 12.1v (that should just clamp it to 5v right?)) Let me know if you need more info.