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

Ryan115

Well-Known Member
View Badges
Joined
Dec 28, 2010
Messages
586
Reaction score
1,085
Location
Mississippi
Rating - 0%
0   0   0
The internal relays on the ADJ strip are the same brand and family of relays that are on the 8 channel relay boards. They are Songle branded SRD relays. The 8 channel boards are 5v relays, and the ADJ strip are 12v relays. Both are rated at 10amps at 250V, meaning for longevity running them under 5 amps is wise.

Here is the SRD family datasheet
https://www.google.com/url?sa=t&sou...FjAAegQIAhAB&usg=AOvVaw1jp0lAaqaJ9gb15aqbN-6t
Good to know for the ADJ. So they would be serviceable, but I would guess most hobbyist soldering irons would have a hard time desoldering the heavy contacts on the relays without damaging the board.

So for a low load (~1-2Amps) and an interval of 30seconds on operations , the MTBF should be in the 3-5 year range.
 

Dave B

New Member
View Badges
Joined
Dec 21, 2018
Messages
10
Reaction score
20
Rating - 0%
0   0   0
How long are your sensor leads? And how many sensors?
Once you have ruled out faulty wiring, how long are your sensor runs? Very long runs or several sensors in the string, may require the pullup resistor to be lower than 4.7K ohms. I wouldn't go too low with it but you can go to 2.2kohms if needed.
I actually did not extend the leads as a test. The cable is just 3 feet with only one sensor. That is why I am leaning to a cold joint on the socket or maybe a loose jump wire. I will post back the results. once I figure this out, I want to add a second sensor and lead length of bout 6' each. With that, where do you insert the pull up resistor? I do have a resistor on the pi hat as per the original build spec that is posted.
 

crusso1993

7500 Club Member
View Badges
Joined
Oct 21, 2018
Messages
8,671
Reaction score
44,651
Location
SW, FL, USA
Rating - 0%
0   0   0
I run mine the opposite way because aqueon pros are solid state, not bimetal strips. My heaters control temp, and reef pi is set a degree higher in case the heater control goes haywire. Plus with aqueons being electronic control, switching on and off alot probably isnt good for them

+1 on this set up!
 

Diamond1

Valuable Member
View Badges
Joined
Oct 17, 2013
Messages
1,368
Reaction score
1,914
Location
Cleveland Ohio
Rating - 0%
0   0   0
I run my heaters with their internal thermostat turned up higher than the reef-pi threshold so basically the heater is in a constant on state and let reef-pi control turning it off and on.Even if the heater fails in the on position reef-pi controls the temperature by turning the outlet for the heater off. In my mind that's a safer option since I've never had a heater fail in the off position.
 

Erica-Renee

Valuable Member
View Badges
Joined
Oct 4, 2017
Messages
1,596
Reaction score
3,290
Location
lost
Rating - 0%
0   0   0
I actually did not extend the leads as a test. The cable is just 3 feet with only one sensor. That is why I am leaning to a cold joint on the socket or maybe a loose jump wire. I will post back the results. once I figure this out, I want to add a second sensor and lead length of bout 6' each. With that, where do you insert the pull up resistor? I do have a resistor on the pi hat as per the original build spec that is posted.
with 6 feet you should have no issues at all. You should use a cat3 or lower stranded wire not cat5 or 6 network cable for anything longer then 10 feet from my experiments . I cut all of my sensors to 1 foot and went cat3 32 gauge wire the longest one i have is 30 feet . its in my Over flow box my controller is in the basement near my sump
 

DirtDiggler2823

If I can't break it, it doesn't exist
View Badges
Joined
Jul 31, 2018
Messages
1,667
Reaction score
2,077
Location
Gambrills
Rating - 0%
0   0   0
I run mine the opposite way because aqueon pros are solid state, not bimetal strips. My heaters control temp, and reef pi is set a degree higher in case the heater control goes haywire. Plus with aqueons being electronic control, switching on and off alot probably isnt good for them

Running eheim heaters here, so bi-metallic strips for me. I figure is one fails, the other will catch it.
 

dmolavi

Well-Known Member
View Badges
Joined
Jan 3, 2015
Messages
509
Reaction score
646
Location
United States
Rating - 0%
0   0   0
Running eheim heaters here, so bi-metallic strips for me. I figure is one fails, the other will catch it.
Ah...yeah mine are eheim too. Two of them in a ranco controller. I have the heaters set a degree or two higher than the ranco. Should it be the other way around?
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,848
Reaction score
17,081
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
I'm getting down to the make part but getting the following error:

pwd = /home/bishop/gospace/src/github.com/ranjib/reef-pi
make
make go
make[1]: Entering directory '/home/bishop/gospace/src/github.com/ranjib/reef-pi'
go build -o bin/reef-pi -ldflags "-s -w -X main.Version=2.1-20-g7415295" ./commands
commands/daemon.go:11:2: cannot find package "github.com/reef-pi/reef-pi/controller/daemon" in any of:
/usr/lib/go/src/github.com/reef-pi/reef-pi/controller/daemon (from $GOROOT)
/home/bishop/gospace/src/github.com/reef-pi/reef-pi/controller/daemon (from $GOPATH)
commands/reset_password.go:8:2: cannot find package "github.com/reef-pi/reef-pi/controller/storage" in any of:
/usr/lib/go/src/github.com/reef-pi/reef-pi/controller/storage (from $GOROOT)
/home/bishop/gospace/src/github.com/reef-pi/reef-pi/controller/storage (from $GOPATH)
make[1]: *** [Makefile:21: go] Error 1
make[1]: Leaving directory '/home/bishop/gospace/src/github.com/ranjib/reef-pi'
make: *** [Makefile:12: bin] Error 2
Like I said its probably something obvious but I'm tired, if you have any ideas on what I am missing let me know, the next part compiling the jsx code worked, just the make part that I am having issues with...

Thanks :)
I'm getting down to the make part but getting the following error:

pwd = /home/bishop/gospace/src/github.com/ranjib/reef-pi
make
make go
make[1]: Entering directory '/home/bishop/gospace/src/github.com/ranjib/reef-pi'
go build -o bin/reef-pi -ldflags "-s -w -X main.Version=2.1-20-g7415295" ./commands
commands/daemon.go:11:2: cannot find package "github.com/reef-pi/reef-pi/controller/daemon" in any of:
/usr/lib/go/src/github.com/reef-pi/reef-pi/controller/daemon (from $GOROOT)
/home/bishop/gospace/src/github.com/reef-pi/reef-pi/controller/daemon (from $GOPATH)
commands/reset_password.go:8:2: cannot find package "github.com/reef-pi/reef-pi/controller/storage" in any of:
/usr/lib/go/src/github.com/reef-pi/reef-pi/controller/storage (from $GOROOT)
/home/bishop/gospace/src/github.com/reef-pi/reef-pi/controller/storage (from $GOPATH)
make[1]: *** [Makefile:21: go] Error 1
make[1]: Leaving directory '/home/bishop/gospace/src/github.com/ranjib/reef-pi'
make: *** [Makefile:12: bin] Error 2
Like I said its probably something obvious but I'm tired, if you have any ideas on what I am missing let me know, the next part compiling the jsx code worked, just the make part that I am having issues with...

Thanks :)
I have to update the developer documentation. it should not use ranjib/reef-pi , that was before 1.0 .
 

DirtDiggler2823

If I can't break it, it doesn't exist
View Badges
Joined
Jul 31, 2018
Messages
1,667
Reaction score
2,077
Location
Gambrills
Rating - 0%
0   0   0
Ah...yeah mine are eheim too. Two of them in a ranco controller. I have the heaters set a degree or two higher than the ranco. Should it be the other way around?
The way mine are set is how you have them. If the controller locks up and it fails closed, the native control in the heater should save the tank from overheating.
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,848
Reaction score
17,081
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
Good to know for the ADJ. So they would be serviceable, but I would guess most hobbyist soldering irons would have a hard time desoldering the heavy contacts on the relays without damaging the board.

So for a low load (~1-2Amps) and an interval of 30seconds on operations , the MTBF should be in the 3-5 year range.
I so love this type of discussion :). I was doing very similar math. We want to know and predict when these equipment should fail.
 

Bigtrout

Valuable Member
View Badges
Joined
Dec 16, 2018
Messages
1,189
Reaction score
2,826
Rating - 0%
0   0   0
Ah...yeah mine are eheim too. Two of them in a ranco controller. I have the heaters set a degree or two higher than the ranco. Should it be the other way around?
Depends on what you want to control the temp, and what you want to be the failsafe
 

Bigtrout

Valuable Member
View Badges
Joined
Dec 16, 2018
Messages
1,189
Reaction score
2,826
Rating - 0%
0   0   0
I actually did not extend the leads as a test. The cable is just 3 feet with only one sensor. That is why I am leaning to a cold joint on the socket or maybe a loose jump wire. I will post back the results. once I figure this out, I want to add a second sensor and lead length of bout 6' each. With that, where do you insert the pull up resistor? I do have a resistor on the pi hat as per the original build spec that is posted.
With those lengths you should be good, and the 4.7 k in place as per the guide. Im running 3 sensors each 10 feet long(3meters) with the 4.7k as per specs with no issues at all.
Time to get out the meter and look at continuity.
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,848
Reaction score
17,081
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
How long should 'make ui-dev' take? It's been sitting here for almost 5 minutes....

dari@sheldon:~/gospace/src/github.com/reef-pi/reef-pi$ make ui-dev
npm run ui-dev

> [email protected] ui-dev /home/dari/gospace/src/github.com/reef-pi/reef-pi
> webpack -d --watch

clean-webpack-plugin: /home/dari/gospace/src/github.com/reef-pi/reef-pi/ui has been removed.

Webpack is watching the files…

Hash: 6b2e9022514358ae6c6c
Version: webpack 4.14.0
Time: 13607ms
Built at: 01/20/2019 9:03:12 AM
Asset Size Chunks Chunk Names
assets/css/main.3ace807c456ac8cb6683.css 160 KiB main [emitted] main
assets/js/main.41cd4f81d10cf7efbe79.js 1.43 MiB main [emitted] main
assets/js/vendors~main.867036f7abcecbc2c2b9.js 10.6 MiB vendors~main [emitted] vendors~main
favicon.ico 3.69 KiB [emitted]
home.html 542 bytes [emitted]
[./assets/sass/style.scss] 39 bytes {main} [built]
[./jsx/app.jsx] 3.07 KiB {main} [built]
[./jsx/ato/main.jsx] 3.67 KiB {main} [built]
[./jsx/camera/main.jsx] 4.64 KiB {main} [built]
[./jsx/configuration/main.jsx] 3.91 KiB {main} [built]
[./jsx/dashboard/main.jsx] 8.89 KiB {main} [built]
[./jsx/dlipower/main.jsx] 2.35 KiB {main} [built]
[./jsx/doser/main.jsx] 7.37 KiB {main} [built]
[./jsx/entry.js] 339 bytes {main} [built]
[./jsx/main_panel.jsx] 8.06 KiB {main} [built]
[./jsx/redux/reducer.js] 4.93 KiB {main} [built]
[./jsx/redux/store.js] 851 bytes {main} [built]
[./jsx/sign_in.jsx] 6.35 KiB {main} [built]
[./jsx/timers/main.jsx] 6.58 KiB {main} [built]
[./jsx/ui_components/error_boundary.jsx] 3.1 KiB {main} [built]
+ 944 hidden modules
Child html-webpack-plugin for "home.html":
1 asset
[./node_modules/html-webpack-plugin/lib/loader.js!./assets/home.html] 453 bytes {0} [built]
[./node_modules/webpack/buildin/global.js] (webpack)/buildin/global.js 489 bytes {0} [built]
[./node_modules/webpack/buildin/module.js] (webpack)/buildin/module.js 497 bytes {0} [built]
+ 1 hidden module
Child mini-css-extract-plugin node_modules/css-loader/index.js!node_modules/postcss-loader/src/index.js??ref--5-2!node_modules/sass-loader/lib/loader.js!assets/sass/style.scss:
[./node_modules/css-loader/index.js!./node_modules/postcss-loader/src/index.js??ref--5-2!./node_modules/sass-loader/lib/loader.js!./assets/sass/style.scss] ./node_modules/css-loader!./node_modules/postcss-loader/src??ref--5-2!./node_modules/sass-loader/lib/loader.js!./assets/sass/style.scss 166 KiB {mini-css-extract-plugin} [built]
+ 1 hidden module
it will run forever. It watches any changes in your jsx files and recompile things when needed. you should not expect it to stop.
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,848
Reaction score
17,081
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
With reef-pi controlling the heater, and the heater set higher, the bi-metallic strip in the heater should typically remain closed. That should tremendously extend the life of the heater.
The 8 channel boards are cheap and easy to switch out should a relay fail (or change the relay itself). As far as the ADJ boards, what are they running internally? Would you be able to service them to replace a relay if one failed? If not, that may be a situation of having the heater control itself and have reef-pi running as the secondary control.
Currently I dont think that we would ever know if either the heater or relay failed on, as we do not have any way of sensing whether a device is actually on. @Ranjib is power/voltage/current sensing in the works at all? I know it has been mentioned in the past, but I dont know if it is going anywhere.
How does Apex monitor power?
not currently. but we'll definitely have this in future, exactly for the reasons you have described. may be a 4.0 thing, or earlier ... who knows. The recent HAL work that we did , will introduce generic analog inputs. this should make things lot simpler in terms of adding new driver/probes. But theres a long way to go before we use that data for something good. These discussions are very helpful in that regard, it gives me some understanding on what user experience (UX) we are aiming for. I don't want to just add the ability to monitor current, I want a streamlined story like if we add current monitoring, it will seamlessly work with the rest of the system to detect and alert failure, and users should not have to know a whole lot of things.

On the same note, I think we can do a lot more even without the current monitoring... just by analyzing the trends (heater usage for example).
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,848
Reaction score
17,081
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
I'm getting down to the make part but getting the following error:

pwd = /home/bishop/gospace/src/github.com/ranjib/reef-pi
make
make go
make[1]: Entering directory '/home/bishop/gospace/src/github.com/ranjib/reef-pi'
go build -o bin/reef-pi -ldflags "-s -w -X main.Version=2.1-20-g7415295" ./commands
commands/daemon.go:11:2: cannot find package "github.com/reef-pi/reef-pi/controller/daemon" in any of:
/usr/lib/go/src/github.com/reef-pi/reef-pi/controller/daemon (from $GOROOT)
/home/bishop/gospace/src/github.com/reef-pi/reef-pi/controller/daemon (from $GOPATH)
commands/reset_password.go:8:2: cannot find package "github.com/reef-pi/reef-pi/controller/storage" in any of:
/usr/lib/go/src/github.com/reef-pi/reef-pi/controller/storage (from $GOROOT)
/home/bishop/gospace/src/github.com/reef-pi/reef-pi/controller/storage (from $GOPATH)
make[1]: *** [Makefile:21: go] Error 1
make[1]: Leaving directory '/home/bishop/gospace/src/github.com/ranjib/reef-pi'
make: *** [Makefile:12: bin] Error 2
Like I said its probably something obvious but I'm tired, if you have any ideas on what I am missing let me know, the next part compiling the jsx code worked, just the make part that I am having issues with...

Thanks :)
@Tom Bishop which document you are following? I am not able to spot anything that reference ranjib/reef-pi, I am looking at this: https://reef-pi.github.io/additional-documentation/development/
 
Back
Top