reef-pi :: An opensource reef tank controller based on Raspberry Pi.

OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,825
Reaction score
17,041
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
As I said, the documentation doesn't cover any of that. It only references his pre-built image that already has the equipment and connectors already added. And as I said, yes - a wiring diagram would be great, although what would be best is:
Working image
Screenshot of connectors tab of reef-pi from someone who has this setup
Wiring diagram so I can figure out what goes where
We hear you , but repeating yourself does not help us either. Start a dedicated thread, and be as specific as possible (e.g connectors configuration ) when seeking help. Screen shot of ui or hardware will help us diagnosing the issues .
 

bishoptf

Valuable Member
View Badges
Joined
Jan 1, 2019
Messages
1,344
Reaction score
1,720
Location
Missouri
Rating - 0%
0   0   0
Disregard!
I was going to say to use the import function from the admin page...
import-reef-pi.png
 

mpoltorak7

New Member
View Badges
Joined
May 6, 2022
Messages
5
Reaction score
3
Location
Chicago
Rating - 0%
0   0   0
I am having trouble figuring out how to add new charts to the dashboard. The UI Overview guide alludes to dashboard charts will be added automatically when new sensors are added? I have two temp probes and a ph probem. All 3 work and I can review the graph from inside of each device. i.e. from the temp or ph screens. How can I get the same graphs into the dashboard?

I also don't have a "customize" button on the bottom right of my dashboard. I only have a "configure".

secondary question. When I first added the PH probe it took a reading on the graph. It has not since. I have it configured to take a reading every 60 seconds. I am not sure this is working. I assume that the device can be monitored from the command line? Does anyone have a quick reference on how to find the PH probe from cmd and/or how to verify it is working.

When I hit the calibrate button I get the following error.
{"error":"strconv.ParseFloat: parsing \"3.\\xb8\\xb9\\xb8\\x80\\x00\\x80\\x80\\x00\\x00\\x80\\x00\\x80\\x80\\x00\\x80\\x80\\x00\\x00\\x00\\x80\\x80\\x80\\x00\\x00\\x00\\x80\": invalid syntax"} | HTTP 404
Hum I have never had a chart be created automatically on the dashboard. However it is added automatically to the dashboard configuration were you add the charts you want to see. The configuration button is the button you are looking for.

For your second question, after you added the device did you reload the config? I believe i have seen the same error and that was my issue. However just basing this off of the error you have posted it maybe the pH driver you are using.

Here is a link to a guide created by RoboTank I found much more helpful then the docs I found in the reef-pi document portal. Maybe helpful as it seems you are running into some of the same issue when I was getting started with my build. https://docs.google.com/document/d/1tjz9fLcwKz_VgTcj1oM2Nvs4kynVYJLV/edit#heading=h.30j0zll
And here is a link to his website.
 

mpoltorak7

New Member
View Badges
Joined
May 6, 2022
Messages
5
Reaction score
3
Location
Chicago
Rating - 0%
0   0   0
@Ranjib I was looking at the github repository for reef-pi and noticed that there is a docker file as part of the source code. Do you know if reef-pi can be containerized? I was looking a reef-pi build in dockerhub but do not see one?
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,825
Reaction score
17,041
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
@Ranjib I was looking at the github repository for reef-pi and noticed that there is a docker file as part of the source code. Do you know if reef-pi can be containerized? I was looking a reef-pi build in dockerhub but do not see one?
you should be able to do this as theres nothing explicitly that blocks containerization. I personally do not use it for development.
 

Krheigh

New Member
View Badges
Joined
Apr 17, 2020
Messages
21
Reaction score
16
Rating - 0%
0   0   0
Any ideas what to do?
I recently installed a pH probe it works but it fluctuate way to much (see image)
When in calibration fluids it doesn't fluctuate at all.
Screenshot_2022-06-06-09-56-58-060_com.android.chrome.jpg
 

Sral

Valuable Member
View Badges
Joined
May 2, 2022
Messages
1,005
Reaction score
971
Location
Germany
Rating - 0%
0   0   0
Any ideas what to do?
I recently installed a pH probe it works but it fluctuate way to much (see image)
When in calibration fluids it doesn't fluctuate at all.
Screenshot_2022-06-06-09-56-58-060_com.android.chrome.jpg
I would open a separate thread for that.
Here is another thread to look at.

Other electrical equipment can have a big influence, so it might be a good idea to unplug other devices one at a time, if possible, or ground your tank. Refer to the linked thread I gave above. Hope that will put you on the right track ;)
 

Krheigh

New Member
View Badges
Joined
Apr 17, 2020
Messages
21
Reaction score
16
Rating - 0%
0   0   0
I would open a separate thread for that.
Here is another thread to look at.

Other electrical equipment can have a big influence, so it might be a good idea to unplug other devices one at a time, if possible, or ground your tank. Refer to the linked thread I gave above. Hope that will put you on the right track ;)
Yeah I figured that i had to add a grounding probe this is after adding that...
I'll take a look on your link
 

PlantedAquaChicago

New Member
View Badges
Joined
May 10, 2022
Messages
13
Reaction score
18
Location
Chicago
Rating - 0%
0   0   0
I'm having a heck of a time adding an EZO pH probe to my setup. I'm using a Leviathan Reef Pi board which I'm not going to comment on at this point. The main problem I have is that there's never an analog input to choose from when I go to add it in the pH section. I have:

Manually configured the EZO board to i2c (blue LED)
Configured the EZO board to multiple different i2c addresses
Scanned using i2cdetect and seen the EZO board show up just fine in the RPi OS at whatever address I give it
Added the driver in reefpi using the correct i2c address - have no problems there
When I try to add a connector and select the ph driver, I have no option to select pin 0 or any pin at all, the dropdown is blank. If I try to select a pin before I select a driver, the lowest number pin I can select is 2, there is no 0. Once I select the driver as pH, I cannot select a pin.
If I try to click save, I get the error:{"ERROR":"Failed to create. Error: Inlet pH did not get associated with a driver pin: inlet pH driver lookup failire: driver Atlas Scientific EZO(pH) is not an input driver"} HTTP 500

Any help?
 

bishoptf

Valuable Member
View Badges
Joined
Jan 1, 2019
Messages
1,344
Reaction score
1,720
Location
Missouri
Rating - 0%
0   0   0
I'm having a heck of a time adding an EZO pH probe to my setup. I'm using a Leviathan Reef Pi board which I'm not going to comment on at this point. The main problem I have is that there's never an analog input to choose from when I go to add it in the pH section. I have:

Manually configured the EZO board to i2c (blue LED)
Configured the EZO board to multiple different i2c addresses
Scanned using i2cdetect and seen the EZO board show up just fine in the RPi OS at whatever address I give it
Added the driver in reefpi using the correct i2c address - have no problems there
When I try to add a connector and select the ph driver, I have no option to select pin 0 or any pin at all, the dropdown is blank. If I try to select a pin before I select a driver, the lowest number pin I can select is 2, there is no 0. Once I select the driver as pH, I cannot select a pin.
If I try to click save, I get the error:{"ERROR":"Failed to create. Error: Inlet pH did not get associated with a driver pin: inlet pH driver lookup failire: driver Atlas Scientific EZO(pH) is not an input driver"} HTTP 500

Any help?
Did you do a reload from the admin screen after adding the driver? Might try that and see if it changes anything...
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,825
Reaction score
17,041
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
I'm having a heck of a time adding an EZO pH probe to my setup. I'm using a Leviathan Reef Pi board which I'm not going to comment on at this point. The main problem I have is that there's never an analog input to choose from when I go to add it in the pH section. I have:

Manually configured the EZO board to i2c (blue LED)
Configured the EZO board to multiple different i2c addresses
Scanned using i2cdetect and seen the EZO board show up just fine in the RPi OS at whatever address I give it
Added the driver in reefpi using the correct i2c address - have no problems there
When I try to add a connector and select the ph driver, I have no option to select pin 0 or any pin at all, the dropdown is blank. If I try to select a pin before I select a driver, the lowest number pin I can select is 2, there is no 0. Once I select the driver as pH, I cannot select a pin.
If I try to click save, I get the error:{"ERROR":"Failed to create. Error: Inlet pH did not get associated with a driver pin: inlet pH driver lookup failire: driver Atlas Scientific EZO(pH) is not an input driver"} HTTP 500

Any help?
After you add the new driver, you are not able to create an analog connector with that driver? the connector type is analog input, not inlet (digital input), or outlet (digital output) or jack (pwm)
 

Krheigh

New Member
View Badges
Joined
Apr 17, 2020
Messages
21
Reaction score
16
Rating - 0%
0   0   0
Which circuit you are using? does it have galvanic isolation?
I'm not sure what you mean...
I'm using a pH module from diy more, a cheap probe with no name and a ads1115 analogue to digital converter.
What should be galvanic isolated?

I'm quick fixing it atm with a macro that fill a small 3d printer camber then measure pH
But after i had to add a "wait" in the macro it won't trigger any macro
 

PlantedAquaChicago

New Member
View Badges
Joined
May 10, 2022
Messages
13
Reaction score
18
Location
Chicago
Rating - 0%
0   0   0
I'm having a heck of a time adding an EZO pH probe to my setup. I'm using a Leviathan Reef Pi board which I'm not going to comment on at this point. The main problem I have is that there's never an analog input to choose from when I go to add it in the pH section. I have:

Manually configured the EZO board to i2c (blue LED)
Configured the EZO board to multiple different i2c addresses
Scanned using i2cdetect and seen the EZO board show up just fine in the RPi OS at whatever address I give it
Added the driver in reefpi using the correct i2c address - have no problems there
When I try to add a connector and select the ph driver, I have no option to select pin 0 or any pin at all, the dropdown is blank. If I try to select a pin before I select a driver, the lowest number pin I can select is 2, there is no 0. Once I select the driver as pH, I cannot select a pin.
If I try to click save, I get the error:{"ERROR":"Failed to create. Error: Inlet pH did not get associated with a driver pin: inlet pH driver lookup failire: driver Atlas Scientific EZO(pH) is not an input driver"} HTTP 500

Any help?
I wanted to give an update on this. The issue was in Reef Pi itself. The web page was loading in a way that the option for adding inlets wasn't showing on the webpage, possibly due to a smaller monitor I was using and formatting? When I connected to reef pi remotely using a browser, I saw the options I needed and it started working correctly.

I got everything calibrated and working perfectly last night sitting on my counter. As soon as I moved the whole setup over to the aquarium and put the probes in the water, the pH probe started giving readings of 21 through 23 pH levels. When I would take my calibration liquids over to the aquarium, pull out the probe and test I was getting correct readings - but in the aquarium water I was consistently getting readings as high as 25 and the lowest was 14. Using litmus paper and test strips I have repeatedly verified that my pH is 6.45 in my aquarium. Does anyone know why the pH probe would give such crazy readings? Is it a light-based sensor, and could my bright LED lights be causing it to freak out?
 

Sral

Valuable Member
View Badges
Joined
May 2, 2022
Messages
1,005
Reaction score
971
Location
Germany
Rating - 0%
0   0   0
I wanted to give an update on this. The issue was in Reef Pi itself. The web page was loading in a way that the option for adding inlets wasn't showing on the webpage, possibly due to a smaller monitor I was using and formatting? When I connected to reef pi remotely using a browser, I saw the options I needed and it started working correctly.

I got everything calibrated and working perfectly last night sitting on my counter. As soon as I moved the whole setup over to the aquarium and put the probes in the water, the pH probe started giving readings of 21 through 23 pH levels. When I would take my calibration liquids over to the aquarium, pull out the probe and test I was getting correct readings - but in the aquarium water I was consistently getting readings as high as 25 and the lowest was 14. Using litmus paper and test strips I have repeatedly verified that my pH is 6.45 in my aquarium. Does anyone know why the pH probe would give such crazy readings? Is it a light-based sensor, and could my bright LED lights be causing it to freak out?
If the probe reads correctly in the liquid but shows 14-24 in the water it probably means that the probe is getting electrically disturbed.
It basically measures a small voltage (+-120 mV or so) over a high resistance (electrical potential between an electrode in the water and an electrode in a pH 7.0 reference liquid that are connected through high resistivity glass and your water, as far as I understand). Any stray current that wants to correct potential differences across the probe will influence that voltage. 20 pH means it reads something like -1 Volt, so I think you might have an isolation problem.
 

PlantedAquaChicago

New Member
View Badges
Joined
May 10, 2022
Messages
13
Reaction score
18
Location
Chicago
Rating - 0%
0   0   0
If the probe reads correctly in the liquid but shows 14-24 in the water it probably means that the probe is getting electrically disturbed.
It basically measures a small voltage (+-120 mV or so) over a high resistance (electrical potential between an electrode in the water and an electrode in a pH 7.0 reference liquid that are connected through high resistivity glass and your water, as far as I understand). Any stray current that wants to correct potential differences across the probe will influence that voltage. 20 pH means it reads something like -1 Volt, so I think you might have an isolation problem.
Any idea how I'd resolve this? I just turned off everything in my tank to try to isolate the issue, all pumps, lights, power heads, even the co2. Made no difference. When I check the pH with the calibration fluids on top of the aquarium I get slightly higher than normal readings (by about 1 pH) but when its inside the aquarium water it's adding like 15 pH.
 

Sral

Valuable Member
View Badges
Joined
May 2, 2022
Messages
1,005
Reaction score
971
Location
Germany
Rating - 0%
0   0   0
@PlantedAquaChicago
  • First thing: is your pH probe galvanically isolated ?
    • From what you are writing I am going to assume that you are using the Atlas Instruments EZO pH circuit with a Leviathan board. Did you plug it directly into the I2C port on the Leviathan board, or do you have an isolation circuit in between ? The Atlas Instruments one has an old Style and a new Style, with both you plug the EZO circuit into the isolator circuit with 2 x 3 header style pins.
    • It basically acts as a (very) big resistance for currents that want to use the EZO circuit to get the power lines. That way the voltage created by those currents acts on the isolation circuit and not your EZO probe circuit.
  • Second: try and find the electric disturbance.
    • Typically you will switch equipment off.
    • If that doesn't help, you also unplug it.
      • You never know if the switches interrupt all lines, especially Ground and Earth
    • You can also try to ground your aquarium water using a grounding probe and preferably the ground pins on the AC socket that you run all the equipment from. Looks something like this
      • That is a two edged sword however. As soon as your water is grounded (and your pH circuit has access to ground as well) it acts as a loop of wire with the pH circuit being one of the highest resistances in that loop. So any current induced by electrical interference will cause a voltage in the pH circuit additional to the desired voltage of the pH signal. Again, this will be somewhat mediated by an isolation circuit, as it will be even higher resistance than the pH circuit, reducing the induced current and therefore the influence.
 

PlantedAquaChicago

New Member
View Badges
Joined
May 10, 2022
Messages
13
Reaction score
18
Location
Chicago
Rating - 0%
0   0   0
@PlantedAquaChicago
  • First thing: is your pH probe galvanically isolated ?
    • From what you are writing I am going to assume that you are using the Atlas Instruments EZO pH circuit with a Leviathan board. Did you plug it directly into the I2C port on the Leviathan board, or do you have an isolation circuit in between ? The Atlas Instruments one has an old Style and a new Style, with both you plug the EZO circuit into the isolator circuit with 2 x 3 header style pins.
    • It basically acts as a (very) big resistance for currents that want to use the EZO circuit to get the power lines. That way the voltage created by those currents acts on the isolation circuit and not your EZO probe circuit.
  • Second: try and find the electric disturbance.
    • Typically you will switch equipment off.
    • If that doesn't help, you also unplug it.
      • You never know if the switches interrupt all lines, especially Ground and Earth
    • You can also try to ground your aquarium water using a grounding probe and preferably the ground pins on the AC socket that you run all the equipment from. Looks something like this
      • That is a two edged sword however. As soon as your water is grounded (and your pH circuit has access to ground as well) it acts as a loop of wire with the pH circuit being one of the highest resistances in that loop. So any current induced by electrical interference will cause a voltage in the pH circuit additional to the desired voltage of the pH signal. Again, this will be somewhat mediated by an isolation circuit, as it will be even higher resistance than the pH circuit, reducing the induced current and therefore the influence.
Great info, thank you so much! So yes, I did not only turn everything else off, I also unplugged it - thinking the same thing you mentioned. The pH still jumps to 25 as soon as it's in the aquarium water, but tests fine when I put the probe in the calibration solution sitting on top of my aquarium lid in cups.

To answer your question, yes - I have a breakout board inbetween the Leviathan and the probe itself. For the time being I'm using a solderless breadboard for all of my sensors. This works perfectly on my counter and at the aquarium, it's only when the pH probe is IN the aquarium water that I get the crazy readings.

Just for giggles I ran a ground line from my solderless breadboard and put the other end in the aquarium water. Guess what I get? Perfectly accurate readings. What the heck does that mean?

I'd rather not have a ground wire shoved in my tank, but if I have to do so I guess I can use stainless or titanium or something. I have each sensor on that breadboard with it's own dedicated ground, even though back at the Pi/Leviathan it's a floating ground with continuity between all grounds (tested >4 ohms resistance which is the same reading I get when touching the multi meter probes together, essentially saying these are all connected with no resistance).

Any ideas?
 

PlantedAquaChicago

New Member
View Badges
Joined
May 10, 2022
Messages
13
Reaction score
18
Location
Chicago
Rating - 0%
0   0   0
Great info, thank you so much! So yes, I did not only turn everything else off, I also unplugged it - thinking the same thing you mentioned. The pH still jumps to 25 as soon as it's in the aquarium water, but tests fine when I put the probe in the calibration solution sitting on top of my aquarium lid in cups.

To answer your question, yes - I have a breakout board inbetween the Leviathan and the probe itself. For the time being I'm using a solderless breadboard for all of my sensors. This works perfectly on my counter and at the aquarium, it's only when the pH probe is IN the aquarium water that I get the crazy readings.

Just for giggles I ran a ground line from my solderless breadboard and put the other end in the aquarium water. Guess what I get? Perfectly accurate readings. What the heck does that mean?

I'd rather not have a ground wire shoved in my tank, but if I have to do so I guess I can use stainless or titanium or something. I have each sensor on that breadboard with it's own dedicated ground, even though back at the Pi/Leviathan it's a floating ground with continuity between all grounds (tested >4 ohms resistance which is the same reading I get when touching the multi meter probes together, essentially saying these are all connected with no resistance).

Any ideas?
I wanted to add another piece of information - I pulled out my temperature and all other probes at the same time I unplugged everything besides the pH sensor.

So to repeat, I get normal (accurate) readings when I run a wire from the 5v - from my Leviathan and plug the other end into the water. When I remove that "water ground wire" I get crazy results, even with absolutely nothing else powered being plugged into or around the water.
 
Back
Top