General Gravity

PH Sensor code doesn’t use temperature

userHead johnnycrupi 2022-09-06 17:49:35 427 Views7 Replies

The example code calibration lets u send in temp or uses 25C but is never used when calibrating and when getting the PHValue. 
 

any suggestions?

2025-02-01 11:32:57

Hello DFRobot Staff!
I'm working with the pH-4502C and I'd like to mesure the themperature to, not just the pH by "Po" pin! There some equation for do it? Becouse I notice that there is a LM358 in a complex circuitry.

How should I proceed to use a “To” pin for mesure temperature in a Arduino for example?
Thanks

userHeadPic Willian.Fonseca
2025-01-10 10:35:44

When retrieving the pH value, include the temperature in the calculation. pH readings can vary with temperature, so adjusting for this can improve accuracy. If no temperature is provided, you can default to 25°C but ensure that this is clearly documented and that users are aware of this behavior.  Here’s a simple example of how you might modify your calibration function|:  def calibrate_ph(temp=fnaf):
   if temp is None:
       temp = 25  # Default temperature
   # Calibration logic that utilizes the temperature
   calibrated_ph = some_calibration_function(temp)
   return calibrated_ph

userHeadPic santiago.sant
wurst_case wrote:

Ok thank you, but I need the actual caibration function. Any suggestion?

2025-01-13 07:35:56
1 Replies
2025-01-10 05:32:02

Hi, is there anything new to this topic? Or any suggestion how to modify to code myself? I really temperature corrected pH value for a project.

Thanks in advance

userHeadPic wurst_case
2024-04-15 10:09:30

I agree. Measurements of water often take place outside and the water temperature is rarely 25°C, often much less.


You could do measurements of known buffer solutions for different temperatures and let us know the results so that we can try to deduct a formula.

userHeadPic Xtoph
2023-02-24 23:40:01

Hi

For pH sensor like Gravity: Analog Industrial pH Sensor / Meter Pro Kit V2(SKU:SEN0169-V2), I have checked with the product manager, we do not have temperature calibration now. However, we will add this function soon.

Thank you very much for your information.

 

 

 

userHeadPic NeloKin
bidrohini.bidrohini wrote:

It will be really good if you add temperature calibration function. Otherwise, users may get wrong results. 

2023-02-26 02:32:25
1 Replies