I have a circuit made of a sensor whose output is subtracted by a number and then multiplied. I do this with operational amplifiers:
U2.2 subtracts 3.3/2 volts from the sensor output. This is then multiplied by 2 by U2.1. I have tested voltages at key points (voltage divider R9-R10 and U2.1 output) and they are as I expect. The current consumed by the whole circuit is ~250uA, which is expected as per the OPA2344PA datasheet.
Also, as you can notice, I have not added any filter or decoupling capacitor whatsoever (yet). This applies as well to the sensor, which is not visible in this circuit as I didn't find it as a component in my circuit designer app.
The output Vout is the following:
As you can see, it is not stable. I believe it is not oscillating because, as far as I understand, if it were oscillatinng I would see it either sticking to a rail (0 or 3.3V) or bouncing from rail to rail. However, the output remains around 1V.
My question is, is it oscillating? If not, is it normal that it's not stable, considering that the LMT87 output is constantly (slightly) changing its value (due to the fact that temperature is never fully constant)? How is it that the output changes in such a regular manner (like a deformed sine wave)? Shouldn't it jump randomly?
If this is expected, this can be solved with a capacitor at the sensor's output I think. Or should I put it at U2.1's output? How can I estimate how big the capacitor needs to be?
EDIT
As the comments request, I have obtained more captures.
The problem doesn't seem to be the power supply (it is an EVENTEK KPS3100D, this is the only reference I have found). The captures are below:
It normally looks like this:
But I also catched it doing this:
The voltage divide seams pretty stable:
That captures the voltage divider node before R2, that is, the junction of R9 and R2.
However, the ripple clearly comes from the U2.2
negative terminal; this is the capture of the junction of R2 and U2.2
pin 2:
I have tried to remove the connection between U2.2
pin 1 and U2.1
pin 5 and the result is the same.
Also, the voltage at lmt87 is:
And the voltage at U2.2
pin 1 is: