Part Number: LMP91200
I had designed schematic using LMP91200 to communicate with PH sensor.
try to change PH value but ADC value i read not change.
i have probe at the pin INP of PH sensor, when i don't plug in PH sensor it is 1.6V and Vout is same Vin, i can't understand why it is 1.6V when i don't plugin PH sensor.
when i plugin Vin PH is 1.73, and Vout is 1.73?
Schematic and layout as bellow.
how i can calculate and measure PH value?
but it not successful.
Dear Hoang -
Thanks for posting!
I would remove/DNI the BAV199 part from your schematic. Also, what is the number of your sensor? - might want to put that on your drawing, next to the connector - that you should consider changing to use triax cable.
Also, perhaps consider connecting the VOCM output to another ADC channel and characterize, or adjust/remove the R47 and C54 as required by your MCU ADC.
We are glad that we were able to resolve this issue, and will now proceed to close this thread.
If you have further questions related to this thread, you may click "Ask a related question" below. The newly created question will be automatically linked to this question.
In reply to Josh Wyatt:
Thanks for your respond.
i have removed some component as you suggest, but this issue still happen.
I only using 1 PH sensor :
I have changed to use triax cable, but it not solve.
I have test my PH sensor with other device (PH kit of DFrobot) it is ok, that means Signal R57 to MCU is ok and PH sensor is OK
What should i do in the next step?
How can i calibrate PH and calculate PH value?
Thanks and best Regards.
In reply to Hoang Anh:
Perhaps i see it now - shouldn't your guard and VCM traces be at same potential - looks like you may have not connected them - see the LMP91200 EVM schematic here to refer to. https://www.ti.com/lit/ml/snau122a/snau122a.pdf (page 6)
then also make sure you have checked out this from the probe vendor, too - in case you modified the cable - as from them it should have SMA connector with an SMA to BNC adapter. https://www.atlas-scientific.com/files/pH_probe.pdf
i'm not understand about "shouldn't your guard and VCM traces be at same potential - looks like you may have not connected them", because i have traced VCM and Guard in difference layer, can you explain more a bout it?
In my case, i'm not modified cable, i only change BNC adapter to SMA.
Really, i try to understand how to get correctly PH value, but i don't know about how to calculate it,
in my schematic i used VDD=5VDC, Vref =3V3DC
i saw that on the datasheet LM91200 have a formula :
E = Eo + (2.3 RT/nF) log aH+
• E is the measured potential from the sensing electrode -> ADC value i will read directly form LM91200-> that right?
• Eo is related to the potential of the reference electrode -> It is Vref (3.3V)-? that right?
• (2.3 RT/nF) is the Nernst factor,
• log aH+ is the pH, (aH+ = activity of Hydrogen ions). -> That means log aH+ is the pH value (0-14) i need to find?
Beside that i saw: The output of a pH electrode ranges from 415 mV to −415 mV as the pH changes from 0 to 14 at 25°C, that means every PH probe have same this spec?
Thanks And Best Regards.
Sorry, you are correct, the Active Guard pins should be at same potential as the INP pin. Please see section 10.1 in the LMP91200 datasheet (page 17) for the complete explanation.
And if you have a look at pages 6 and 7 here, you can see how our EVM is laid out and copy that. https://www.ti.com/lit/ml/snau122a/snau122a.pdf
Regarding the formula - yes, logaH+ is what you are solving for. if you look on page 7 of the probe that you are using datasheet https://www.atlas-scientific.com/files/pH_probe.pdf, they simplify the formula for you, if that is helpful.
On our EVM, we used 3.3 for VDD and 2.5V regulator for VREF and in the datasheet, all the data presented there was with VDD and VREF @ 3.3VDC and the output is VOUT, as compared to VOCM.
@ 25C, your slope should theoretically look like this:
and over temp, it will theoretically look like this
thanks you so much for your explain.
-i saw that un the datasheet: we have a formula:
E=Eo + (2.3RT/nF)log aH+.
but in your replay, i saw slope = -2.3RT/nF and -59.18mV at 25oC, but follow the datasheet i saw it is 59.16 at 25oC. Do you have any misconception in this point.
- can you explain more detail about paraneter in the formula? as i know:
E = value from pin VOUT of LM91200 that is right?
Eo is reference electrode voltage. i don't understand this parameter, how can i calculate this parameter or where i can get it?.
- finally do we have any difference between use Vref =2.5V and Vref=3.5V
it is good if you can share with me your example about calculate pH value reality feild using LM91200.
Thanks and Best Regards.
E is your measured value
Eo is the zero that you set based on the reference. (if the reference is 3.2V then the zero is 1.6V)
The Nernst factor is a slope defined as 2.3 RT/nF. if you use a negative slope you will get a -59.18mV at 25oC if you define the slope as a positive then you will get a 59.18mV at 25oC. The ratio of the slope does not change. it's still 59.18mV at 25C.
it doesn't mater what you set the reference to.This value will matter if you have a 2.048V VREF on your ADC, then you may want to adjust the VREF of the LMP91200 to keep the zero or negative reference in the middle of your ADC VREF to get a wider and balanced output zero.
E = Eo + (2.3 RT/nF)log aH+
• E is the measured potential from the sensing electrode,
• Eo is related to the potential of the reference electrode
,• (2.3 RT/nF)is the Nernst factor,
• log aH+ is the pH, (aH+= activity of Hydrogenions)
Because you are not using a differential ADC, you will have to calculate the measured value by subtracting the zero to get a real measurement.
Sr. Applications / Systems Engineer
Easy and accurate temperature monitoring and protection
In reply to Gordon Varney:
Hi Gordon Varney.
Because i'm using STM32 to read ADC from LMP91200, VREF STM32 i set 3.3V, it is same VREF LMP91200, ADC resolution i used 12 bit =4096.
I have tested again om my PCB (Schematic i have posted last time),
i'm using formula as bellow:
volt = (value)*3.3/4096; pHvalue = ((volt - 1.65)*1000)/59.18;
+ Value = VOUT (Pin VOUt of LMP91200)
+ 1,65 is Eo, because VREF = 3.3V
+ 59.18 is Nernst factor at 25oC
But pH value i readed is 4 although i used pH liquid is 7 to test.
I'm don't know where is my mistake in this formula?
If i connected pin VCOM of LMP91200 to pin ADC of MCU then Eo = VCOM? and that can reduce more noise ?
(2.3 RT/nF)is the Nernst factor, can you explain to me more detail about "n" in this factor, i saw that n=1 at temperature = 25oC, but if temperature # 25oC how can i find "n"?
Yes, your formula is wrong.
E = Eo + ((2.3 RT/nF) * log aH+) [solve to get the voltage from a ph]
ph = 10^((E-Eo) / 2.3 RT/nF) example: ph = 10^((1.700-1.650) / 0.05918) [solve to get the ph from the voltage]
This should help
Thanks for your advice.
I have used your formula: ph = 10^((1.700-1.650) / 0.05918):
In my PCB, when i test with pH=7, i measured VOUT=1.8V that meanz pH value i readed about >200.
i have checked again but these value not change VOCM =1.65V and VOUT =1.8V.
Can you tell me: Where is my wrong in my schematic or PCB layout?
Thanks and best regards
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.