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

burningbaal

Active Member
View Badges
Joined
Aug 13, 2019
Messages
232
Reaction score
252
Location
Near Seattle
Rating - 0%
0   0   0
Not sure what changed. It did power cycle because I moved where the rpi was plugged in, but I had tried reboots before to no avail.
But now it works by hostname just fine...weird
 

AbjectMaelstroM

Valuable Member
View Badges
Joined
Jul 21, 2019
Messages
1,535
Reaction score
1,709
Location
RVA
Rating - 100%
1   0   0
Where it falls apart for me is that the ATO plug is 4 wires, the float switch is two. I wasn't sure if the other two wires were related to the relay circuit.



So in this case you are setting up the relay as a separate power bar/outlet, that makes sense to me, although it confuses me even more about why the ATO would need 4 wires...



I'm into some homemade 4-year old corn whiskey myself, which probably isn't helping...

Yeah I'm not sure about float switches, I'm using a no-contact sensor on the side of the sump which measures water level through the glass. It has a 4-wire plug.

As for power outlets, you had it right, it's a 5v 8 channel relay that controls 8 outlets triggered by pi GPIOs.
 

burningbaal

Active Member
View Badges
Joined
Aug 13, 2019
Messages
232
Reaction score
252
Location
Near Seattle
Rating - 0%
0   0   0
okay @Ranjib (don't rush...Today's Christmas and I'll be out of town until the weekend). But I finally got ssh'd into my reef-pi to check on that issue where my temp sensors would disappear on me. It happened again now that I've rebuilt the image from scratch (with reef-pi 3). I've got the whole thing working with my ADJ 8ch and timers/etc.
In the temp tab, I picked one of the three in the dropdowns as a temp gauge, but it soon disappeared.

so I have these directories:
$ ls /sys/bus/w1/devices/


22-29c8000a14c0 22-69c8000a14c0 22-a9c8000a14c0 w1_bus_master1


with this error message:
Failed to read sensor temp 1. Error:open /sys/bus/w1/devices/28-0119123f5374/w1_slave: no such file or directory
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,876
Reaction score
16,682
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
okay @Ranjib (don't rush...Today's Christmas and I'll be out of town until the weekend). But I finally got ssh'd into my reef-pi to check on that issue where my temp sensors would disappear on me. It happened again now that I've rebuilt the image from scratch (with reef-pi 3). I've got the whole thing working with my ADJ 8ch and timers/etc.
In the temp tab, I picked one of the three in the dropdowns as a temp gauge, but it soon disappeared.

so I have these directories:
$ ls /sys/bus/w1/devices/


22-29c8000a14c0 22-69c8000a14c0 22-a9c8000a14c0 w1_bus_master1


with this error message:
Failed to read sensor temp 1. Error:eek:pen /sys/bus/w1/devices/28-0119123f5374/w1_slave: no such file or directory
You have three different sensors detected , but none of them are the one that you had configured. Remind us about your setup? Any build thread I can look at?
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,876
Reaction score
16,682
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
Where it falls apart for me is that the ATO plug is 4 wires, the float switch is two. I wasn't sure if the other two wires were related to the relay circuit.



So in this case you are setting up the relay as a separate power bar/outlet, that makes sense to me, although it confuses me even more about why the ATO would need 4 wires...



I'm into some homemade 4-year old corn whiskey myself, which probably isn't helping...
:-) im going with home made old fashioned this time, with Gentleman Jack (i prefer bourbon over rye).
The 4 wires are intended for phote electrics probes (such as the one by dfrobot, mentioned in the adafruit guide). You can use the first two wires of those 4 wires for float switch.
I'll let @Michael Lane confirm.
 

Alaa

Community Member
View Badges
Joined
Nov 28, 2018
Messages
74
Reaction score
80
Rating - 0%
0   0   0
I run one of @Michael Lane Reef-Pi Hats and had exactly the same question as you

1577304984509.png

As per the image above, you can see that there are the 5V GPIO pins labeled IO21 to IO5 or "Power 1". These are made to run 5V relays directly off the RPi. Below are the pins labeled IO8 to IO23 or "Power 2". These are meant to run 12V relays powered through 12V supplied by the "12V Power" port and the ULN2803A.

What I am doing is running 8 x 5V relays through the ULN2803A by supplying 5V to the "12V Power" port. Then I run 8 x 5V relays directly off the GPIO pins. Below is the picture Michael sent me when I asked him the same questions.

1577305487201.png
Much appreciated, very nice diagram.
 

Des Westcott

Well-Known Member
View Badges
Joined
May 29, 2018
Messages
646
Reaction score
1,025
Location
Durban - South Africa
Rating - 0%
0   0   0
Where it falls apart for me is that the ATO plug is 4 wires, the float switch is two. I wasn't sure if the other two wires were related to the relay circuit.



So in this case you are setting up the relay as a separate power bar/outlet, that makes sense to me, although it confuses me even more about why the ATO would need 4 wires...



I'm into some homemade 4-year old corn whiskey myself, which probably isn't helping...

The float switch can be wired into the gnd and IOxx Pins on the jst plug for the ATO. The other two wires aren’t needed
 

Des Westcott

Well-Known Member
View Badges
Joined
May 29, 2018
Messages
646
Reaction score
1,025
Location
Durban - South Africa
Rating - 0%
0   0   0
:) im going with home made old fashioned this time, with Gentleman Jack (i prefer bourbon over rye).
The 4 wires are intended for phote electrics probes (such as the one by dfrobot, mentioned in the adafruit guide). You can use the first two wires of those 4 wires for float switch.
I'll let @Michael Lane confirm.

See below from @Michael Lane. These optical sensors can be bought very cheaply without the "control boards" that the DFRobot ones come with. I'm running one in parallel with a float switch to test reliability. Some reports I've read seem to say that they suffer a weak point and possible water ingress where the wire enters the sensor. I'm testing a solution to that and I'll report back on my Reef-Pi build thread.

*Quote* I've also confirmed that the optical switches work as long as you put a resistor (around 400 - 500 ohms) inline with the LED wire. I also had to set the Inlet as reversed since the output is high when the sensor is dry, and low when it's wet. Here's how I connected it.
1574035672160.png

*End Quote*
 
Last edited:

Des Westcott

Well-Known Member
View Badges
Joined
May 29, 2018
Messages
646
Reaction score
1,025
Location
Durban - South Africa
Rating - 0%
0   0   0
BTW @Ranjib, since I've been doing Auto Water Changes, I have been wondering more and more about monitoring Salinity / SG / EC. Any idea if this could be incorporated into Reef-Pi? Is a reasonable probe / sensor even available?
 

Michael Lane

Well-Known Member
View Badges
Joined
Aug 11, 2018
Messages
677
Reaction score
1,121
Rating - 0%
0   0   0
For dosing. I’m using cheap jaebo dosers and may have come across the need to dose less than 1 ml. My pumps are calibrated so that 1 second at 85% duty cycle gets me 1 ml. Is it safe to say that if I run 42% duty cycle I should get close to .5ml?
That makes sense, but I'm doubtful it would work. The DC motors have a lower threshold to turn on, and I've found that mine seem to need at least 50% to turn. I tend to tweak time and schedule in order to keep my levels where I want them, so dosing half as often would be the approach I take. Then again, I have an hourly dosing schedule now...
 

Michael Lane

Well-Known Member
View Badges
Joined
Aug 11, 2018
Messages
677
Reaction score
1,121
Rating - 0%
0   0   0
@Alaa Des Westcott's answer is correct. I need to pull these diagrams together and post them with the FAQ.

@raketemensch I like individual build threads so I can refer to specific build details. The goby hat does not require it's own power; it can use power from the rpi.

The JST wire colors may not match the temperature sensor wire colors. A few people have had questions about that, so I think I'll rearrange the ports on the next redesign to make temp sensors a little easier.

The ATO port can accommodate multiple kinds of ATO sensors. Depending on the type of sensor, you may not have to use all pins. Let me know if it's still an issue; I can draw a wiring diagram if it would be helpful.
 

Alaa

Community Member
View Badges
Joined
Nov 28, 2018
Messages
74
Reaction score
80
Rating - 0%
0   0   0
@Alaa Des Westcott's answer is correct. I need to pull these diagrams together and post them with the FAQ.

HI, I can't really tell now as i have a strange situation, my raspberry pi appears to be dead i connected the HAT yesterday, using the raspberry pi power supply, tested the voltage and found 5.1 V on the 5V power port on the HAT, and the power pins on the GPIO breakout side, and 2.3 V on the HAT 12 volt power port (i don't know if it should read like that) i didn't try to access reef pi or raspberry pi through the browser as it was late.
Today i turned on pi and nothing happened, it seamed to be dead only the red led indicator on with no blinking from the green one, i connected through HDMI and got nothing, tried to remove and re-insert the micro-SD with no luck,

it was working last weekend with prema-porto with 3 temp, 16 (2x8) relays and three ATO

I have another pi I'll setup and try to test
did i do anything wrong testing the voltage on the Pi-HAT
 

Alaa

Community Member
View Badges
Joined
Nov 28, 2018
Messages
74
Reaction score
80
Rating - 0%
0   0   0
Hi, @Michael Lane, Pi-Hat pin continuity test
before i setup and test the new ras-pi with pi-HAT i tested the pins for continuity, and this is what i got
5 v pin connected properly to pH1, pH2, ATO1, ATO2, ATO3, 5v pin on GPIO breakout
ground connected properly all ground points on the board
3.3v pin NOT connected to any temp ports, or any other pin on the board
GPIO 4 connected to all temp ports
i don't know if the 3.3 v should be like this showing no continuity because of the 470k resistor or this is a bad connection
do i use this board on my new res-pi
 

Bigtrout

Valuable Member
View Badges
Joined
Dec 16, 2018
Messages
1,189
Reaction score
2,811
Rating - 0%
0   0   0
Is there a guide discussing or recommending advantages / disadvantages to different Rapsberry PI hardware for the primary device?
Dont think there is a guide discussing this simply because a $10 pi zero W is plenty to do anything you want. Any pi with better specs is almost overkill requiring more power for little additional benefit unless you have to connect to a monitor and dont run headless. I look at my reef pi exclusively thru the webgui so the pi zero w is plenty

I run a pi zero w and have 3 temp sensors, 4 lighting channels and 8 outlets 2 inputs, and a slew of macros. Memory usage hovers at 8 percent and cpu usage is practically nil at .15 percent
 

lmm1967

Well-Known Member
View Badges
Joined
Sep 12, 2017
Messages
563
Reaction score
809
Location
North Georgia
Rating - 0%
0   0   0
Dont think there is a guide discussing this simply because a $10 pi zero W is plenty to do anything you want. Any pi with better specs is almost overkill requiring more power for little additional benefit unless you have to connect to a monitor and dont run headless. I look at my reef pi exclusively thru the webgui so the pi zero w is plenty

I run a pi zero w and have 3 temp sensors, 4 lighting channels and 8 outlets 2 inputs, and a slew of macros. Memory usage hovers at 8 percent and cpu usage is practically nil at .15 percent

Thank You!
 

lmm1967

Well-Known Member
View Badges
Joined
Sep 12, 2017
Messages
563
Reaction score
809
Location
North Georgia
Rating - 0%
0   0   0
I will start a thread up.

Temp monitoring / controlling
PH monitoring
ATO
Dosing
Remote access & control.
Control on/off of pumps / skimmers

My lighting setup is easy - on/off is the extent of it so that is done using alexa & smart plugs
Flow inside the tank is simply on/off as well - at least today.

The above things for 3 tank setups.
One is comprised of a frag tank, display tank & sump.
One 30 gallon cube - mini mixed reef
One fish only (and only 1 fish) 180 gallon tank
 

TOP 10 Trending Threads

DO YOU THINK TECHNOLOGICAL ADVANCEMENTS ARE MORE HELPFUL OR HURTFUL TO REEFING?

  • More helpful.

    Votes: 53 42.1%
  • More hurtful.

    Votes: 5 4.0%
  • I think it depends mostly on the technology.

    Votes: 49 38.9%
  • I think it dependsmostly on the reefer behind the technology.

    Votes: 37 29.4%
Back
Top
Home
Post thread…
Market
What's new