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

Michael Lane

Well-Known Member
View Badges
Joined
Aug 11, 2018
Messages
677
Reaction score
1,123
Rating - 0%
0   0   0
@Michael Lane on the goby hat there are 2 ATO connections, I am thinking of how I want to set up and thinking I may want three float connections, can any of the other connections be used in addition to the ATO ones?

Thanks :)

Now that I think about it, I think I can have 2 floats in one circuit in series. What I want is a low level float in the ATO tank and and another low level float in the sump. I want the circuit to not kick in if the low level float in the ATO has been activated just as a safety measure, also need to figure out how to keep the ato from getting stuck and putting to much rodi in the sump. I'm not concerned about overflowing the sump since my ATO will be pretty small but it could effect the salinity since its only a 29g tank with a 20g sump. Just looking for options to make it semi fail safe.
I would go with 2 floats in series. It sounds like you are concerned about running the ATO dry by the way you are describing it. While I think that's worth preventing, my preference is to wire a float valve where I want my water level, and then another one (upside down) a little above that. Every once in a while, the bottom float will stick, but then the top float will activate and open the circuit.

Any of the pins on Power1 can also be wired as an ATO input since they have exactly the same supporting circuitry. The ATO ports are convenience.
 

CL Ingus

New Member
View Badges
Joined
May 19, 2018
Messages
7
Reaction score
4
Rating - 0%
0   0   0
hey guys, i need some help. i bought this https://www.waveshare.com/wiki/1.3inch_OLED_HAT. with the intention of having a simple led display to show me info from the system. in order to reduce the wiring i converted it to i2c per their directions but right now it only works as a hat when all the pins are connected. any idea, based on teh schematic what the required pins for this thing are to work in i2c so i dont have to have it sitting as a hat? ive tried all the obvious configurations but cant get it to work. any thoughts?
 

Bliff

New Member
View Badges
Joined
Apr 6, 2020
Messages
18
Reaction score
41
Rating - 0%
0   0   0
... wifi problems ...

reefpi would not load in browser. Refresh or trying later sometimes worked

reefpi would load but Only loaded the equipment and health widget. Sensor and everything else missing. Even though I could not see in the interface all programmed functions where operating (ATO, Dosers, etc).

reefpi would load but buttons where slow to respond

I would get to the password page but no passwords worked.

This sounds a lot like you're getting a lot of interference over the wifi channels. Pi's AFAIK only use 2.4GHz (except the pi4, I think) and there's really only 3 usable channels on 2.4G spectrum. It might help to see what your local wifi spectrum is like, using something like wifi analyser on your phone to see what channels the closest neighbouring APs are using. Maybe even using powerline adaptors for your pi would be an option. If you have a bunch low-bandwidth devices in a general area, then a powerline adaptor to a switch could help as well, thereby removing several wireless devices (all competing for wirless bandwidth on your network) from your own network.
 

Bliff

New Member
View Badges
Joined
Apr 6, 2020
Messages
18
Reaction score
41
Rating - 0%
0   0   0
I would go with 2 floats in series. It sounds like you are concerned about running the ATO dry by the way you are describing it.

I have another tank that has a sump, and the main tank pump is run from a very basic single relay + 2 float switches arrangement. If the main tank goes too high, one normally closed float switch opens OR if the sump tank goes too low, a normally closed float switch opens.
Either of those two switches break the circuit that when powered, holds the relay in closed position - so if either float trips, AC power is cut to the pump. It has worked reliably for over 10 years.
 

Dave's Reef

Active Member
View Badges
Joined
Nov 4, 2018
Messages
102
Reaction score
150
Rating - 0%
0   0   0
Hey everyone hopefully you are doing well and staying safe. I am looking at adding PH to my build. what brand is everyone using? I was thinking of just buying this kit off amazon will this work? Also how accurate is it and how easy is it to get up and running? My Pi is currently at the max capacity as far as I/O goes but these use I2c correct? So does that mean I can tie it into my PCA9685?

Thanks for all the help.

Amazon product

Atlas Scientific pH Kit 0-14 pH
 
Last edited:

bishoptf

Valuable Member
View Badges
Joined
Jan 1, 2019
Messages
1,349
Reaction score
1,724
Location
Missouri
Rating - 0%
0   0   0
I would go with 2 floats in series. It sounds like you are concerned about running the ATO dry by the way you are describing it. While I think that's worth preventing, my preference is to wire a float valve where I want my water level, and then another one (upside down) a little above that. Every once in a while, the bottom float will stick, but then the top float will activate and open the circuit.

Any of the pins on Power1 can also be wired as an ATO input since they have exactly the same supporting circuitry. The ATO ports are convenience.

Thanks, yeah I tend to overthink things but still haven't come up with a solution that I like for ATO, pretty sure I am overthinking it as usual. :)

I do have one question about feeding your hat and the dosing module 12v, would a 2.5a power supply be enough for those 2 functions? I believe it should be and that was my direction that I am heading but wanted to verify, I think it should be plenty but wanted to ask.

Here are a couple pictures of my current build, see my build thread for more details:
IMG_20200417_074416.jpg

IMG_20200417_074425.jpg


:)
 

Bigtrout

Valuable Member
View Badges
Joined
Dec 16, 2018
Messages
1,189
Reaction score
2,826
Rating - 0%
0   0   0
Mine were in a star to begin with and I was having issues with them dropping out after changing to linear they are working fine now. I am no expert but the article I attached is what made me even try it. I had already tried different resistors and also using 5v supply and it would only work reliably for a limited amount of time. Like I said I'm no expert this is just what worked for me.
Linear vs star does not matter quite as much as how much capacitance is in the wiring as a whole and whether impedances in a star match. Capacitance causes digital signals to be smoothed out and become unreadable. And mismatched impedances from different cable lengths in a star config cause signal reflections. Capacitance depends on cable used, how its layed out and a number of other boring technical factors.

In general cable capacitace is less with a shielded cable and twisted pairs have less than non twisted cables. Smaller conductors also help, which is why many have had luck using good cat 5 cables. In my case the temp sensors I bought used shielded cable and I havent had a problem with 3 hooked up in a star and have played with 5 that all worked. I do have all thw same length and type of cables to all of the sensors.
Another problem could be interference. Keep the temp sensors as far away as possible from large AC cords or large dc power cords to motors etc., and if you must have them close its better to cross them at right angles vs running them parallel with each other. Shielded and twisted pair cables help mitigate interference as well.
 
Last edited:

Bigtrout

Valuable Member
View Badges
Joined
Dec 16, 2018
Messages
1,189
Reaction score
2,826
Rating - 0%
0   0   0
While the reefpi is technically hardwired. It’s still operating via WiFi extender which remedies all my issues. I’m thinking maybe the onboard WiFi adapter on the raspberry is not very robust.

255D2CBC-489F-4BF0-BEE2-4294DEFDC666.jpeg
The wifi can be affected if your pi is in an all metal case, and yes I have found the wifi in a pi zero is not the most robust.
 

Bigtrout

Valuable Member
View Badges
Joined
Dec 16, 2018
Messages
1,189
Reaction score
2,826
Rating - 0%
0   0   0
Hey everyone hopefully you are doing well and staying safe. I am looking at adding PH to my build. what brand is everyone using? I was thinking of just buying this kit off amazon will this work? Also how accurate is it and how easy is it to get up and running? My Pi is currently at the max capacity as far as I/O goes but these use I2c correct? So does that mean I can tie it into my PCA9685?

Thanks for all the help.

Amazon product

Atlas Scientific pH Kit 0-14 pH

Thats a working solution but expensive.
For example:
Reef pi ph board from a number of members who make them: $40
Milwaukee ph probe: $40
Calibration packets 5 packets each of 4.01, 6.86 and 9.18 $10
Distilled water to make calibration solution $1

So a working pi ph system can cost about $91 if you do it right...and yes it is i2c and can hook to the pca9685 board easily if you have a standalone one from adafruit which has passthru connectors for the i2c.
 

Dave's Reef

Active Member
View Badges
Joined
Nov 4, 2018
Messages
102
Reaction score
150
Rating - 0%
0   0   0
Linear vs star does not matter quite as much as how much capacitance is in the wiring as a whole and whether impedances in a star match. Capacitance causes digital signals to be smoothed out and become unreadable. And mismatched impedances from different cable lengths in a star config cause signal reflections. Capacitance depends on cable used, how its layed out and a number of other boring technical factors.

In general cable capacitace is less with a shielded cable and twisted pairs have less than non twisted cables. Smaller conductors also help, which is why many have had luck using good cat 5 cables. In my case the temp sensors I bought used shielded cable and I havent had a problem with 3 hooked up in a star and have played with 5 that all worked. I do have all thw same length and type of cables to all of the sensors.
Another problem could be interference. Keep the temp sensors as far away as possible from large AC cords or large dc power cords to motors etc., and if you must have them close its better to cross them at right angles vs running them parallel with each other. Shielded and twisted pair cables help mitigate interference as well.

Apparently it does in my situation after changing to linear I have had no issues. I was running 3 on my old setup for a year or so it worked fine its the 4th and 5th after a few hours they would drop out so yeah playing around on the bench 5 in a star pattern worked fine for me when I tested everything but after installing it and letting it run in place after a couple hours one or two would drop out. I tried everything after reading the article I attached in one of my other post it sated that a star pattern is not Ideal yeah it works but not very well. I attached the it if your interested in reading it.

 
Last edited:

Dave's Reef

Active Member
View Badges
Joined
Nov 4, 2018
Messages
102
Reaction score
150
Rating - 0%
0   0   0
Thats a working solution but expensive.
For example:
Reef pi ph board from a number of members who make them: $40
Milwaukee ph probe: $40
Calibration packets 5 packets each of 4.01, 6.86 and 9.18 $10
Distilled water to make calibration solution $1

So a working pi ph system can cost about $91 if you do it right...and yes it is i2c and can hook to the pca9685 board easily if you have a standalone one from adafruit which has passthru connectors for the i2c.
It does have the pass through connectors so I am good there. Thank you for the help
 

Bigtrout

Valuable Member
View Badges
Joined
Dec 16, 2018
Messages
1,189
Reaction score
2,826
Rating - 0%
0   0   0
Apparently it does in my situation after changing to linear I have had no issues running 3 on my old setup for a year or so it worked fine its the 4th and 5th after a few hours they would drop out so yeah playing around on the bench 5 in a star pattern worked fine for me when I tested everything but after installing it and letting it run in place after a couple hours one or two would drop out.
Glad it worked! Thats where capacitance and interference can cause every tank and sensor setup to be different.
 

Michael Lane

Well-Known Member
View Badges
Joined
Aug 11, 2018
Messages
677
Reaction score
1,123
Rating - 0%
0   0   0
Thanks, yeah I tend to overthink things but still haven't come up with a solution that I like for ATO, pretty sure I am overthinking it as usual. :)

I do have one question about feeding your hat and the dosing module 12v, would a 2.5a power supply be enough for those 2 functions? I believe it should be and that was my direction that I am heading but wanted to verify, I think it should be plenty but wanted to ask.

Here are a couple pictures of my current build, see my build thread for more details:
IMG_20200417_074416.jpg

IMG_20200417_074425.jpg


:)
2.5 amps should be fine. Each pump used at mos t 150 mA when I measured my doser, but you usually don't dose multiple elements at the same time.
 

Urtoo

Well-Known Member
View Badges
Joined
Jul 1, 2019
Messages
688
Reaction score
925
Rating - 0%
0   0   0
2.5 amps should be fine. Each pump used at mos t 150 mA when I measured my doser, but you usually don't dose multiple elements at the same time.
Have you made an AWC for your system yet?
I am starting to seriously look into creating one. I guess carrying up buckets from the basement is wearing on me.
I have 2 ports open on the Jebao, but question the reliability of a basically full time pump of that quality.
Anyone have any suggestion?
 

b4tn

Valuable Member
View Badges
Joined
Jun 17, 2015
Messages
1,673
Reaction score
2,244
Location
Columbia MD
Rating - 0%
0   0   0
My next step in my reefpi adventure is first set up auto top off direct from my RODI. I’m thinking to use a mechanical float valve just like you would with a float in your storage container but put a solenoid in-line controlled by reefpi as a backup if the mechanical float fails. Opinions?

Second is push button macro water changes. This is the part I’m having a hard time figuring out and could use some advice on. I’m trying to avoid using 2 pumps but cant think of away around it. I would like to have a pump that moves around 5 gallons per minute and can use 1/4 rodi push fittings. I can tee into my RODI drain line that’s 10 feet from my tank tapped into the bathroom sink. But I would need a second pump to to pump water from my 30 gallon reservoir 15 feet from my tank on the opposite wall. Any suggestions on pumps?

I used to use these for alcohol injection in my race car but they are expensive so not sure if there are better options.

Amazon product
 
Last edited:

Des Westcott

Well-Known Member
View Badges
Joined
May 29, 2018
Messages
646
Reaction score
1,035
Location
Durban - South Africa
Rating - 0%
0   0   0
My next step in my reefpi adventure is first set up auto top off direct from my RODI. I’m thinking to use a mechanical float valve just like you would with a float in your storage container but put a solenoid in-line controlled by reefpi as a backup if the mechanical float fails. Opinions?

Second is push button macro water changes. This is the part I’m having a hard time figuring out and could use some advice on. I’m trying to avoid using 2 pumps but cant think of away around it. I would like to have a pump that moves around 5 gallons per minute and can use 1/4 rodi push fittings. I can tee into my RODI drain line that’s 10 feet from my tank tapped into the bathroom sink. But I would need a second pump to to pump water from my 30 gallon reservoir 15 feet from my tank on the opposite wall. Any suggestions on pumps?

I used to use these for alcohol injection in my race car but they are expensive so not sure if there are better options.

Amazon product


I've had the RODI connected to the ATO for a while. I used a 12V DC actuated normally closed solenoid valve on the inlet to the RODI unit.

I have AWC done and working. Manually triggered macro and with timer triggering in reef-pi. Theres been a few posts about it.

Over the next few days I plan to have a test of a Physical Button that I can assign to trigger macros etc. I'll post details here when I have it done.
 

HAVE YOU EVER KEPT A RARE/UNCOMMON FISH, CORAL, OR INVERT? SHOW IT OFF IN THE THREAD!

  • Yes!

    Votes: 32 45.7%
  • Not yet, but I have one that I want to buy in mind!

    Votes: 9 12.9%
  • No.

    Votes: 26 37.1%
  • Other (please explain).

    Votes: 3 4.3%
Back
Top