PH probe issues

Sral

Valuable Member
View Badges
Joined
May 2, 2022
Messages
1,006
Reaction score
976
Location
Germany
Rating - 0%
0   0   0
Ok, so an update to this for anyone else that might be having this issue or for those who are yet to come lol. Well it kept giving me problems with dropping out and reboots and even the 3/300 was hit or miss. I'm am 100% ignorant on how the i2c bus works and talks, but there is some kind of a timing issue that causes the problem, guessing bus side. So I could look through the API "readings" and the drops were at specific intervals. At one point I changed it to 5m interval and looking through the log, it would drop every hour at the 9th minute, i.e 4:09, 5:09, 6:09. I tried to put the PH on i2c4, but could not get reef-pi to see it. Tried totally removing it from reef-pi and starting over. Now I need to recalibrate it lol. Guessing Reef-pi only searches on the primary bus, but @Ranjib could confirm that if that is the case. So I ended up putting it back on the primary bus, and disconnected my RTC. Verified the only thing on the bus was the PH and let it go. I added 2 statistic charts for testing purposes, one to show min, and other max. It is reporting as of 10:50pm last night (since it was alone on bus) the lowest report was 7.92 and highest 8.09. Today I will add the RTC to the second bus and get it set back up and hopefully everything will continue to be stable.

Ignore the temp dropouts, those were from the setup, testing, and troubleshooting (PH) of the entire build on my workbench.

dashboard.JPG
Interesting. Reminds me of two other cases:
-First where @bishoptf had kind of regular low-voltage warnings by the hour.
- Second where @bishoptf had kind of regular reboot messages in the log without a reboot.

Writing it like that I can now see a strange connection there .... :grinning-face-with-sweat:
 

Sral

Valuable Member
View Badges
Joined
May 2, 2022
Messages
1,006
Reaction score
976
Location
Germany
Rating - 0%
0   0   0
Ok, so an update to this for anyone else that might be having this issue or for those who are yet to come lol. Well it kept giving me problems with dropping out and reboots and even the 3/300 was hit or miss. I'm am 100% ignorant on how the i2c bus works and talks, but there is some kind of a timing issue that causes the problem, guessing bus side. So I could look through the API "readings" and the drops were at specific intervals. At one point I changed it to 5m interval and looking through the log, it would drop every hour at the 9th minute, i.e 4:09, 5:09, 6:09. I tried to put the PH on i2c4, but could not get reef-pi to see it. Tried totally removing it from reef-pi and starting over. Now I need to recalibrate it lol. Guessing Reef-pi only searches on the primary bus, but @Ranjib could confirm that if that is the case. So I ended up putting it back on the primary bus, and disconnected my RTC. Verified the only thing on the bus was the PH and let it go. I added 2 statistic charts for testing purposes, one to show min, and other max. It is reporting as of 10:50pm last night (since it was alone on bus) the lowest report was 7.92 and highest 8.09. Today I will add the RTC to the second bus and get it set back up and hopefully everything will continue to be stable.

Ignore the temp dropouts, those were from the setup, testing, and troubleshooting (PH) of the entire build on my workbench.

dashboard.JPG
Oh, I got another possible solution to your problem:

I could write you a service, like @robsworld78's flowmeter script here or like my SCD30 script on github that querries the pH regularly and writes the value to a file, that you can read with ReefPi.

I would write that program so that it only updates the value in the file when it gets an actual value. You can choose the update period as desired, sometimes the value might just be one period old, if the last querry failed.
 
OP
OP
Inamo

Inamo

Active Member
View Badges
Joined
Jul 4, 2023
Messages
107
Reaction score
76
Location
Crestview
Rating - 100%
1   0   0
I did find those posts and it did seem similar.

Let me see how this goes and I might take you up on that service. I'm hoping this will clear it up. Started doing it again after I recalibrate the probe, but up until then one just like 2 drops all day, which I'm guessing is normal for i2c.
 
OP
OP
Inamo

Inamo

Active Member
View Badges
Joined
Jul 4, 2023
Messages
107
Reaction score
76
Location
Crestview
Rating - 100%
1   0   0
I ended up using the Atlas IoT as it had MQTT built into it and also exports data to a SQlite DB file. From what I can see in Home assistant there have been zero drops, looked through the DB and don't see any either, but that is only one entry per minute. The Atlas Dashboard looks like it is updating every second. The plotting seems very smooth. I might try adding my RTC back to the same bus and see if it continues to work this way.
 
OP
OP
Inamo

Inamo

Active Member
View Badges
Joined
Jul 4, 2023
Messages
107
Reaction score
76
Location
Crestview
Rating - 100%
1   0   0
Just an update for anyone else who might stumble upon this. Since utilizing the Atlas IoT and removing the PH probe from Reef-Pi I have had ZERO issues. So I'm not sure what the issue was. Not blaming reef-pi as I'm sure there are many others using it without issues, so I'll chalk it up to one of life's mysteries.
 

Sral

Valuable Member
View Badges
Joined
May 2, 2022
Messages
1,006
Reaction score
976
Location
Germany
Rating - 0%
0   0   0
Just an update for anyone else who might stumble upon this. Since utilizing the Atlas IoT and removing the PH probe from Reef-Pi I have had ZERO issues. So I'm not sure what the issue was. Not blaming reef-pi as I'm sure there are many others using it without issues, so I'll chalk it up to one of life's mysteries.
Well, I can imagine that the Atlas IoT software has more advanced communication error handling than ReefPi.
@Ranjib I imagine that the ReefPi driver simply reports zeros on encountering an error, instead of old data or querrying the sensor again ?
 
OP
OP
Inamo

Inamo

Active Member
View Badges
Joined
Jul 4, 2023
Messages
107
Reaction score
76
Location
Crestview
Rating - 100%
1   0   0
I would imagine the same. When loading up in the IoT gui it updates like every second, in HA it updates via MQTT every 3 sec.
 

theatrus

Valuable Member
View Badges
Joined
Mar 26, 2016
Messages
1,959
Reaction score
3,357
Location
Sacramento, CA area
Rating - 0%
0   0   0

iamdan

Community Member
View Badges
Joined
Jul 1, 2022
Messages
62
Reaction score
61
Location
Western Australia
Rating - 0%
0   0   0
I been having the same issue with 2 separate reef-pi installs using Robo tank boards I’ve just had to learn to ignore it until a fix is released
 
OP
OP
Inamo

Inamo

Active Member
View Badges
Joined
Jul 4, 2023
Messages
107
Reaction score
76
Location
Crestview
Rating - 100%
1   0   0
I been having the same issue with 2 separate reef-pi installs using Robo tank boards I’ve just had to learn to ignore it until a fix is released
If you are using an external dashboard other than reef-pi, then setting up the Atlas IoT works well pushing the data via MQTT
 

iamdan

Community Member
View Badges
Joined
Jul 1, 2022
Messages
62
Reaction score
61
Location
Western Australia
Rating - 0%
0   0   0
Since we don't know when that will be I'll try to find the time programming the external quick-fix.
That would be awesome! Would shout you a carton of beer if we were in the same city hehe

@Inamo I would if I could but I’m using Robo tanks reef-pi circuitry
 

Sral

Valuable Member
View Badges
Joined
May 2, 2022
Messages
1,006
Reaction score
976
Location
Germany
Rating - 0%
0   0   0
Wishing you all the luck crossing all fingers and toes
Well, I got the code up and running, but my pH circuit seems to have died. I can't get it to show up on an I2C scan ...

I'll try to make a dummy in the code to test this digitally as far as I can, but I'm afraid somebody else would need to test the real thing :(
 

Reefing threads: Do you wear gear from reef brands?

  • I wear reef gear everywhere.

    Votes: 41 16.5%
  • I wear reef gear primarily at fish events and my LFS.

    Votes: 15 6.0%
  • I wear reef gear primarily for water changes and tank maintenance.

    Votes: 1 0.4%
  • I wear reef gear primarily to relax where I live.

    Votes: 30 12.0%
  • I don’t wear gear from reef brands.

    Votes: 144 57.8%
  • Other.

    Votes: 18 7.2%
Back
Top