Hello all, I have finaly got my PH reading device going. The only problem now is that when i do read the ADC value, it keeps jumping around. I can read the opamp output with a multimeater, and it is very stable, but when i attach the ADC, it will go up and down about 150 steps. I am using a 12 bit ADC so the whole range is only 0-4095, so a change of 150 is quite high when i am mesuriung PH. I have tried to add bypass caps before the ADC, about .1µf, but it did not help. Can anyone please give me some tips on what i can do to make the ADC abit more stabe.
You may consider two things:
1. Take a few readings (5-10) and calculate the average ..
2. Try to condition the input signal to the ADC by adding an opamp integrator .. see picture below ..
Implementing both strategies should make the result pretty stable ..
Don't try to correct by software or integration a possible hardware error.
The effect you say could be the inadequate input impedance or PH electrode leackage current or bad cable shielding.
Check easily this asumption: use an 1.2V battery with a series resistor of 100Mohm and connect it to your PH meter input. If the reading is stable and reproducible, your electronics is ok. If not...
Does your ADC has an Voltage reference input (Vref). Cause if it does you would like to have that value as stable as possible. Variations on this input cause serious unstability on your output, so it would be better if you used some kind of voltage regulator or a programable zener like TL431 to supress any Vdd noise you could have on your reference.
Hi all, thanks for the suggestions, i will try them shortly.
The VREF i am using is a 5v voltage refrence chip from analog devices, cant remember the part now, so i dont think it will be a supply problem.
Also, i cant do any kind of avarging in the software as there is too many low readings, and that would bring the final value down too much.
I have also tried to feed the ADC with a regulated 1.6v, and the readings are OK. there is no jumping around at all, so i guess that the problem has too be with the op amps. Do you think that using a in-amp would help?
Unstable readings results most of the time from noise on your signal. If you use relatively long cables that are not properly shielded, many noise sources can couple to your signal.
I saw that problem once when the measure instrument was powered by a cheap switching power supply.
You can look closely (on a small scale) to your signal with an oscilloscope to make sure that it's not noisy before trying to implement any correction measure.
Hi All, i have made this work witht he opamp integrator method
i have checked all my books about op-amps and cant find any info about this. Can sombody please tell me how\why it works, or suggest somthing i can read.
Hi All, i have made this work witht he opamp integrator method
i have checked all my books about op-amps and cant find any info about this. Can sombody please tell me how\why it works, or suggest somthing i can read.
An integrator is killing the signal speed with a rate of R*C. Fortunately for a PH reading this will only slighty increase the reading time and add a measuring error equal with the noise integration value. If your noise component is simmetrical (you have a *real* noise) then after integration the DC component wil be near zero and you'll be happy.
markdem,
Your multimeter will measure the average value of the input voltage. It will average out any noise that is present. This is also what the circuit that IanP suggested will do. Look at the input with a 'scope configured as AC coupled. This will reveal any noise on the input. Also, you may have a grounding problem. Make sure that the current from the digital circuitry does not flow through the input signal ground path.
Regards,
Kral