A follow-up to a similar question from yesterday since the problem I've run into has differed enough to warrant something more than an edit.
I have built an integrator to act as a 5V 32Hz square wave to triangle wave converter.
This is my output.
We can see that the voltage is offset too high, which is strange because per my understanding of integrators, the voltage offset should be equal to the "ground" voltage, which is 2.5V.
One way of changing this behavior is modifying the high value feedback resistor. This is an example of the resistor (R2) with a reduced resistance (200k). The closer the feedback resistor is to 0, the lower the offset.
I am unsure why this has such an effect on the offset voltage. Since reducing the high value feedback resistor results in a more rounded triangle wave and I don't want that (I am using the triangle for modulation on a CD4046 VCO chip,) I'm trying to figure out a way to reduce the offset voltage without distorting the triangle wave.
The LTspice model if anyone needs it. If more info is needed for this issue, please let me know.
Edit: A close-up of the square wave.