Closed GArrigotti-cws closed 3 years ago
@GArrigotti-cws, thanks for your initial sleuthing of this issue!
I created a new develop
branch, where I cleaned up the code for the Y532 pH sensor and added a variant of your code for the Y533 ORP sensor, fully separating their functions.
I also looked back at my commit 574a31ce8a3755ce501438fd46fbc67808124c1b from October 2019, replicating that fix for ORP, which will be necessary to get all this to work in ModularSensors.
I'll close this issue and merge to master once everything is working with ModularSensors.
@aufdenkampe Thank you, let me know when I can pull and begin for implementation.
@GArrigotti-cws, I finally now have ORP working in ModularSensors (using the y533_ORP branch).
In a moment I'll commit an example into our private deployments repo.
@aufdenkampe Alright, I pulled your sample. I'll take a look to begin implementation. Thank you.
@GArrigotti-cws, I just updated your working sketch (Fernhill-1). Try that.
@GArrigotti-cws, btw, I created a `y533_ORP_backup branch to archive my commits from Friday morning separately from the merged commits that Sara made later that afternoon.
So for your Fernhill deployments, I would recommend:
lib_deps =
https://github.com/EnviroDIY/ModularSensors.git#y533_ORP_backup
@aufdenkampe You added a backup label to your branch?
I created a new branch, based on my last commit on Friday. You can see in this branch listing here (https://github.com/EnviroDIY/ModularSensors/branches) that my original branch has 47 more commits it in as the results of Sara's merge. Those commits are why you had a different experience compiling than I did just a few hours earlier.
These fixes have now been released into ModularSensors v0.30.0.
https://github.com/EnviroDIY/ModularSensors/releases/tag/v0.30.0
Rather than e-mail back and forth, after using the example software "Get Values" I noticed that the output for the Y533 Oxygen Reduction Potential sensor was providing the mV as pH, not actually mV.
I traced the YosmitechModbus.cpp to yosmitech::getValues method with a switch statement. I separated the Y532 pH and the Y533 statement out a bit, altering the Y532 start register and numeric quantity based on documentation to the following:
I now get the correct values from the sensor in the Get Values sketch. I'm assuming we have to incorporate that change to potentially solve my issue?