I’m happy to troubleshoot software issues that I can replicate on the hardware. If they turn out to be hardware issues, at least the device is on my bench, with my instruments ( voltmeter, oscilloscope, etc) and I can take a methodical approach.
Here you are presenting a new problem but you have not resolved the problem of a few days ago where the voltages were randomly dropping. My approach is to assume things like this are related. For example:
In the last round of trying to insulate the software from VTs that were not running, I put in check before sampling the VT. The software looks for two readings from the VT that are 20 counts different with a timeout of 2 milliseconds. That’s not a big difference, and noise could easily satisfy this test.
Now you have this other problem that is intermittent low readings on your VTs that has not been reconciled, but it appears to be a bad connection someplace.
There are tools built into iotawatt to look at the quality of the signals. They are not yet available through the app, but you can get to them with a URL command in a browser. One such tool returns all of the samples on a channel for one cycle. That’s what I used to get to clean signals in my board design.
The op-amp can oscillate. You have substituted different capacitors, have a different board layout, and probably use different tolerance components. 20 ADC counts isnt very much noise. The oscillations are typically at a harmonic frequency of the AC line. You have three phase with several frequencies. If your circuit breeds oscillation, the combinations are endless.
All that said, you might try to find the zero detection code I mentioned (it’s in two places) and increase the number of counts (from 20 to say 200) and see anything changes. Look at the samples for a CT with nothing connected. If the opamp is oscillating, you will see there.
I’m not an electrical engineer. I’ve learned all this through a lot of experimentation over the last year. When you say nothing is different or it’s the same except, you ignore the fact that it is different by virtue of the fact that it is working differently. The differences are enormous.