Post History
There are so many problems here, it's hard to decide where to begin. I followed the calculation steps from ... Blindly following a recipe is no way to design anything. You need to understand the...
#1: Initial revision
There are so many problems here, it's hard to decide where to begin. <blockquote>I followed the calculation steps from ...</blockquote> Blindly following a recipe is no way to design anything. You need to <i>understand</i> the circuit. Once you understand it, there is little reason to follow dumbed-down formulas. You must be able to figure out on your own how to make the circuit do what you want. Your input signal has an average DC component. That will eventually saturate any true integrator. I see that you have a bleeder resistor across the integrating capacitor. That will allow the integrator to settle back to 0 if you wait long enough. In your case, the time constant for settling towards 0 is 190 seconds. That is significant relative to your input signal with a 120 second period. With 120 second input signal period, you will see some low pass filter effects, not just a pure integrator output. Your "integrator" is really a low pass filter with a rolloff frequency of 840 µHz. Put another way, it is only an integrator for frequencies somewhat above 840 µHz. The output you show doesn't make any sense, especially for a simulation. The opamp is powered from ±2.5 V. That means its output is limited to that range. In the real world, the positive supply might be a few mV high, but not in a simulation. It makes no sense for the output to be above 2.50000 V. Something is wrong. Ditch the simulator and <i>think</i>. You can go back to the simulation once you understand what is going on. Overall this integrator inverts. The output is really the negative of the integral of the input. Since your input is always 0 or positive, the output should always be negative. The output essentially stuck at the positive limit again makes no sense. The output waveform is not at all the integration of the input. Again, <i>think</i> about what should be happening. The sudden drop in the peak at the output when the input triangle changes direction shows the derivative, not the integral. The output doesn't start at 0. It seems you forgot to tell the simulator to start C1 with 0 volts on it. Remember that integrators have state. You need to initialize that state before use. Let's see what should happen. With 1 V fixed input, 1 µA flows thru R1. For now, let's ignore the bleeder resistor R2 and analyze this as a pure integrator. With an ideal opamp, that current can only flow thru C1, which causes it to rise 53 mV/s. The overall output with a fixed 1 V input should therefore be linearly falling at 53 mV/s. It would take 47.5 seconds for it to get to -2.5 V, again assuming an ideal opamp. A 0 to 1 V rising input, like the first half of the triangle wave you are putting in, has an average DC of 500 mV, and would therefore cause the output to saturate in 90 seconds or so. That means the first half of the first input cycle would be OK, but the integrator will saturate during the second half of the first cycle. Even considering the bleeder resistor, the integrator should still saturate quickly with your given input. At most, R2 will bleed off 250 nA, which is only half of the input current average value. I didn't look at the opamp datasheet (your job), but you need to make sure that the currents you intend to operate at are well above the input leakage current. The same goes for the integrating capacitor. So the overall lesson here is to stop and <i><b>think</b></i> what is supposed to happen and about what is actually happening. By blindly following recipes and then dumping the whole mess into a simulator, you have minimized the chance of actually understanding.
