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

Dallas temperature sensor request #5

Open
Vado75 opened this issue Jul 22, 2024 · 7 comments
Open

Dallas temperature sensor request #5

Vado75 opened this issue Jul 22, 2024 · 7 comments

Comments

@Vado75
Copy link

Vado75 commented Jul 22, 2024

Hi, thanks for the ph library. Would you be so kind as to add functionality for the Dallas external temp sensor to compensate ph from temp please? I want to use the ph probe in the pipe and measure the temperature using dallas. Thank you.

@nthnn
Copy link
Owner

nthnn commented Jul 22, 2024

Hi! The PH4502C sensor typically have a temperature output pin on breakout boards. Can you please clarify what do you mean by "Dallas external temperature sensor"? Perhaps you mean DS18B20? (I found it on a quick Google search.)

@Vado75
Copy link
Author

Vado75 commented Jul 22, 2024

yes, the temperature sensor is on the PCB, but if you want to compensate the ph of the measured solution, you need the temperature of the solution. In fact, measuring the temperature on the board is useless for this reason. That's why I wanted to ask you for a variation of the measurement with an external temperature sensor - the ideal candidate is the DS18B20 - it has a waterproof case, it is easily implemented in the measured pipe together with the PH probe.
Can you please share the part of the code with temperature compensation with respect to PH?
Note, I can use OneWire to read the temperature from Dallas if you extend your program for example ph4502.read_ph_level_single(temperature)
thank you

@nthnn
Copy link
Owner

nthnn commented Jul 22, 2024

Ohhh, right! I now understand what do you mean earlier. However, I'm afraid I currently don't have an allocated budget to buy my own DS18B20 for testing, experimentations, and validation. Additionally, I just borrowed the PH4502C sensor while developing this library.

So unfortunately, it may take some time to do that update. But thank you for that great idea!

@Vado75
Copy link
Author

Vado75 commented Jul 22, 2024

ok i understand. And does your library compensate for PH based on temperature?

@nthnn
Copy link
Owner

nthnn commented Jul 22, 2024

Currently, no. It does not compensate pH calculations based on temperature.

@Vado75
Copy link
Author

Vado75 commented Jul 22, 2024

understand, temperature is only for information, not for compesantion... thank you, have a nice day

@nthnn
Copy link
Owner

nthnn commented Jul 22, 2024

Have a nice day!

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