-
-
Notifications
You must be signed in to change notification settings - Fork 483
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
error on Begin/Clear Calibration with Atlas PH ( I2C Mode ) #425
Comments
Thanks for the bug report. I'll push a fix later today and make a release for you to upgrade and try the new code. |
thx for fast reply !!! and thanks for sharing this great project !! |
What version Mycodo? |
Mycodo Version: 5.6.4 |
got a little error on status bar but worked !!!! huge thx Success: Calibration: high (10.0 pH): ('error', OSError(121, 'Remote I/O error')) Calibration Complete |
Did that error only appear at the last part? |
no it also appeared while i was calibrating with the solutions |
If that's the case, I don't think calibration was successful. Can you verify it's actually been calibrated? |
I think I may have a fix. Can you change this: Mycodo/mycodo/utils/calibration.py Lines 26 to 28 in 226bce6
to this: self.ph_sensor_i2c = AtlasScientificI2C(
i2c_address=int(str(sensor_sel.location), 16),
i2c_bus=sensor_sel.i2c_bus) save, then restart the frontend with then reload the page and try calibration again. That should fix the IO errors and allow calibration to work. If not, can you paste the new error? |
it is calibrated , i verified with the ph4/7/10 solutions . i also have a 2nd PH probe to verify . |
The error you showed indicates the calibration command was never sent to the board. Did you see lights flashing on th board to indicate communication? |
Did you clear the calibration before attempting the calibration? |
no , but my Atlas probe is brand new and wasn't calibrated when i first plugged |
I'm skeptical your calibration was successful. If you can confirm the above code change causes no errors, then the fix will have allowed the calibration commands to be communicated with the pH circuit. If the errors go away, then it most likely means the initial calibration with the errors did not work. Did you test the probe before calibration to determine if the calibration was successful? If not, there's not a good way to know if the calibration procedure worked or not. You will have to trust me that the error being returned indicates there were no commands successfully reaching the pH circuit. |
Does that indicate it's been calibrated? I don't think it does. |
I would actually think the pH would read nearly exactly 10 if it were properly calibrated. |
I have to go to sleep. If you make the above code edit and restart the frontend and retry the calibration, let me know if the errors have been resolved. |
Just thought of something... Did you see the actual pH returned on the page during the calibration? There should have been a pH displayed next to the countdown clock, slowing your measured pH. If there wasn't a live updated pH measurement displayed, then it also suggests the calibration wouldn't work as well. |
After reviewing the code again after a good night's sleep, I've strengthened my position that none of the calibration procedure was working. I believe my fix is the solution to the issue. Your measurement in a pH 10 solution strengthens the argument because of your inaccurate measurement following calibration. Let me know if you're willing to test the code change, otherwise I'm going to implement it in the next software release, as the change brings the calibration code to the same operation as the measurement code (why measurements worked and calibration didn't). |
The text was updated successfully, but these errors were encountered: