I have a 3.3V supply going through a variable resistor "R" into the analog read pin of a ESP32 board. When the resistance increases the voltage drop is more which is reflected in the serial print plots. Since I want to see the rise of resistance and not the drop in voltage, I grounded the analog read pin through a resistance and now the arduino plotter graph rises (instead of falling) when the voltage drops (I guess that's because this is now a voltage divider configuration?)
Anyways, my problem is that the voltage drop I am seeing is only few ADC values. I'd like to magnify it (without using a finer adc). How do I do it? I tried a non-inverting amplifier with 10X gain using a LM324 powered between 3.3V and GND, but output from the amplifier is showing no change with change in resistance..
So this is actually a conductivity sensor with two electrodes submerged in water.
Below is the block diagram. I have used this design to convert DC to to AC so ionic migration doesn't play spoil sport. There are 4 switches used to switch the direction of potential difference across the submerged electrodes. switch 1 and four open together and switch 3 and 2 open together, alternatingly.
Since the variable resistance is water itself its a very low resistance, so low in fact that without the grounding of the analog read pin I can't see any change in the readings and the output is a full 3.3V (4096ADC). When the readings do change (when analog pin is grounded) like when the quantity of water changes between the electrodes, the following happens.
I read the resistance of tap water is very low, like 2-200 ohms. My theory might be going wrong somewhere, I'd be happy to be corrected, but the thing is what I want to happen is happening, its just not happening good enough. How do I make it better? How do I make that rise in graph larger?
My language might be wrong. I mean the switches work in a way that when 1st electrode is connected to 3.3V, the second is connected to analog read pin. When the second is connected to 3.3V, the first is connected to analog read pin. The connections keep alternating.
Measured it. I am confused, its high, like close to 1MOhm. How can it be so high and still give an output without any voltage drop? Also the resistance measured is constantly rising, which I guess is to be expected as the multimeter is supplying DC and their is ionic migration happening in the water. I guess my set up might be a better judge of finding the resistivity of water.
Try this circuit:
Apply 1V to the probe connection and adjust R6 untill the voltage at T1 reads zero.
Revove the 1V and connect your probe.
You can use the LM324 you have
Ok, I'll repeat it just so I'm sure I got you right. Correct me if I am wrong. The output which I was feeding into the analog read now goes into R17, and I alter R6 until the point where R7 meets U1 gives zero volts? That correct?