So I've been using this pH sensor for my water quality monitoring system, the problem I am getting is the voltage measured at the analog input of an Arduino is not stable.
Sometimes it gives 2.7V for 7.5pH (mineral water), sometimes it jumps to 3.1V and sometimes 2.5V, it may stay stable on certain reading for 10-15 mins then start to fluctuate again. It never stabilize on a certain output that I can rely on, and that of course effect the pH readings for my system.
I've tried many things such as using RC filter at the input, using 5V external power supply and using software filtering. Nothing seems to be the solution of this problem.
The pH sensor is connected like illustrated in here:
Good question.
The sketch from e-Gizmo makes this absolute sensor readout not only dependent on PH, but also on supply voltage of the Arduino.
They should have used the 3.3volt supply as Aref, both for stability and higher resolution.
Leo..
Actually that's right. When I use 3.3V to power this sensor I get a much stable readings. But still with some fluctuations every now and then.
I might try @stevemj suggestion and see what I will get.
Have you got a filtered supply to the sensor. I would suggest a low value resistor and decoupling capacitance; say 10 ohm and 10uF plus 100nF as a start.
You know a pH sensor circuit needs to be isolated from the rest of the world to a very high standard? 10^11 ohms or better... The sensor is extremely high impedance and is electrically connected to the solution being measured and its voltage needs to float with the voltage of the solution.
Hi
check the power connections between the arduino and the sensor.
If you use wires with connectors, they can give bad contact and cause variations in the supply voltage, which is also used as a reference.
Yes I have tried this, it made a slight change in the fluctuations but the problem is that the output voltage itself is increasing and decreasing on its own.
I think that's because of the high impedance the sensor have ..
Yes, insulate it completely using materials that are good insulators (wood would be hopeless for instance, polythene or glass or teflon are OK) pH sensors have impedances measured in gigaohms or higher.
From a quick look at the data sheet for the module, it's not clear if the the probe itself has the pre-amp built in or if it's just a basic probe with a lead and BNC connector.
If the pre-amp, an op amp suited to high impedance inputs, is in the probe itself, there should be no problems, but if the pre-amp is on the separate board, then you could be looking at fluctuations simply down to flexing the lead.
As others have said, the materials used, the coax lead and connectors all need to be high quality.
For Mahmoud's info, the flexing of the cable for high impedance circuitry can induce charge due to tribolectric charging and also through moving the conductors through a magnetic field.