Good call! Apparently the ESP32 was holding the adc SDO signal low. I lifted the wire at adc SDO and voila, the signal appears. Channel 2 of plot is SDO at the adc.
Currently the SPI clock is operating at 100 kHz. Max clock for the adc is 2 MHz. Since adc conversion time is 17 ms, a 100 kHz clock really won't slow the process down. To send 16 bits takes 160 us at 100 kHz.
@BiduleOhm, what SPI clock rate are you planning on using?
One recomendation I could make is replacing opa991 with an instrumentation amplifier with the same gain. Now you are using the filter resistors together with R7 and R6 to create a difference amplifier. It should not be a big problem but mux is not transparent and you can introduce innacuracies in your measurements because you are taking it into the equation. Using an INA you will have high input impedance neglecting the mux innacuracies with the same result.
Good to see that you found the problem. I am 95% sure that replacing opa991 with an INA you will solve the problem because what I said. (maybe there is something else)Yellow trace is adc in. 2V/div
Purple trace is OpAmp out. 5V/div
I put the horizontal cursors on the yellow trace to measure peak voltage (5.8V). The protection diodes are conducting at this time.
Tomorrow I'll remove the input caps. Trace should look better then.
I read now that your input filter is 100k ohm, 0.1 uF and maybe the lack of high input after the mux is producing high inrush current discharging and charging the filter capacitor.
View attachment 42069
Yellow trace is adc in. 2V/div
Purple trace is OpAmp out. 5V/div
I put the horizontal cursors on the yellow trace to measure peak voltage (5.8V). The protection diodes are conducting at this time.
Tomorrow I'll remove the input caps. Trace should look better then.
Good to see that you found the problem. I am 95% sure that replacing opa991 with an INA you will solve the problem because what I said. (maybe there is something else)
Good to see that you found the problem. I am 95% sure that replacing opa991 with an INA you will solve the problem because what I said. (maybe there is something else)
How input impedance sorry.What is "high input"?
If you're talking about the MUX or op-amp input capacitances, they are in pF so negligable.
How input impedance sorry.