Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Temperature compensation missing in code #9

Open
erdinguma opened this issue Sep 11, 2022 · 2 comments
Open

Temperature compensation missing in code #9

erdinguma opened this issue Sep 11, 2022 · 2 comments

Comments

@erdinguma
Copy link

Any plans to add temperature compensation?

@erdinguma
Copy link
Author

There are functions that call the temperature reading but the formula doesn't actually use the temperature:

float DFRobot_PH::readPH(float voltage, float temperature)
{
float slope = (7.0-4.0)/((this->_neutralVoltage-1500.0)/3.0 - (this->_acidVoltage-1500.0)/3.0); // two point: (_neutralVoltage,7.0),(_acidVoltage,4.0)
float intercept = 7.0 - slope*(this->_neutralVoltage-1500.0)/3.0;
//Serial.print("slope:");
//Serial.print(slope);
//Serial.print(",intercept:");
//Serial.println(intercept);
this->_phValue = slope*(voltage-1500.0)/3.0+intercept; //y = k*x + b
return _phValue;
}

@jpagliaccio
Copy link

When will you be adding temperature compensation? On your forum NeloKin says .. "soon". On the wiki "In order to guarantee precision, a temperature sensor such as DS18B20 is needed, to execute automatic temperature compensation."

https://www.dfrobot.com/forum/topic/315463

2023-02-24 15:40:01
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants