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

BenB

Community Member
View Badges
Joined
Jun 11, 2019
Messages
78
Reaction score
125
Thank you for this tutorial. I tried to add a PH sensor to my RPI4 with reef-pi version 3.5. All the steps are clear but I run into a problem, maybe you know the solution?


When I connect the PH probe and card (PH-4502C) to the RPI4, the RPI4 won't boot. When I disconnect the 5v to the PH-4502C, the RPi4 boots normally. When I plug the 5v from the RPI4 to the PH-4502C when the RPI4 runs, the system runs normally but doesn't find any signal from the PH probe...

Hopefully my problem is clear and someone knows what is going wrong?

Thanks in advance.

When I worked on this,
The ads1115 was connected to the 3.3 v and ground of the pi, the phboard was connected to th 5v and to the ground of the pi. The signal out of the phboard connected to pin0 of the ads1115. And the ads1115 needs to be connected to the pi with sda and scl.

I hope this helps.
 
Lazys Coral House

belly.89

New Member
View Badges
Joined
Jul 12, 2020
Messages
2
Reaction score
0
Location
Netherlands
When I worked on this,
The ads1115 was connected to the 3.3 v and ground of the pi, the phboard was connected to th 5v and to the ground of the pi. The signal out of the phboard connected to pin0 of the ads1115. And the ads1115 needs to be connected to the pi with sda and scl.

I hope this helps.

Thank you for your response. That is exactly how I connected everything. That looks like I did it alright. Strang that the RPi doesn’t boot anymore.
 

Yov

Community Member
View Badges
Joined
May 24, 2020
Messages
48
Reaction score
41
@Ranjib I have a strange problem with the Macro's.
i made a macro :
1603697065569.png

-Spray system Wifi on
-wait 15sec
-Spray system Wifi off
-Fan4 relais on
-Fan 2 relais on
-wait 10sec
-Spray system Wifi off (second time! i wil explane/ not in picture i wil also explane)
-wait 600sec
-Fan4 relais off
-Fan 2 relais off

So , i first made this macro without the extra spray system off, This worked problem i notioced whas that sometimes i got a communication error and the spray system kept on going. So for this i made an extra "spray system off"

first problem i came up to: when the macro is reversible 'yes' wel then it takes the "off" comand as "on".
Second problem, suddenly my macro was "reversed" (not visual) but i heart my fans go "off" (on) first then wait 610sec then go off and spray then go off after 15sec...

very confusing.... So what i did, i just made another macro in exactly the same way, this time i did reversible "off" press run and yes this works perfect! but as soon as i add this to a timer.... nothing happens?
1603698440338.png


i put reversible "on" and exactly the same thing as the old macro happens, it works the outher way around and it turns my spray system "on" when i ask "off". Also it added up this time to the time i already had (reversed) from the old macro?"
1603698400330.png


timer at 8Pm + 610 sec : spray. (old wrong reversed way)
Now, Timer on at 8Pm +610 +610 (sprayers on at 8:20) ....

i cant get my head around this ?! is there something wrong with the macro's/timers? Strange that when i hit RUN everything works like normal, but with the timers it just goes south!
 

Des Westcott

Well-Known Member
View Badges
Joined
May 29, 2018
Messages
578
Reaction score
946
Location
Durban - South Africa
@Ranjib I think you maybe need to have a look at safety in the case of failure of a temp probe.

I'm having intermittent failures of one of my temp probes (3) and am waiting for new ones to be delivered. I've had a couple of instances where the faulty probe fails causing all three to go bad. If the Temperature Control has my heaters on when this happens, they stay on. In my case, the internal heater control in the heater takes over and cuts them off about 1.5deg higher, but if someone was using a dedicated heater unit without a built in thermostat, they could get into trouble.

I do get the "Temp Probe Failure" messages and "Temp out of Range" messages, but I have had it happen at night when I'm asleep and "actively ignoring emails" ;)

Maybe an option to "disable control" like the ATO? But would probably need the default state to de defined. Or just default to off in case of a failure.
 

Des Westcott

Well-Known Member
View Badges
Joined
May 29, 2018
Messages
578
Reaction score
946
Location
Durban - South Africa
@Ranjib I have a strange problem with the Macro's.
i made a macro :
1603697065569.png

-Spray system Wifi on
-wait 15sec
-Spray system Wifi off
-Fan4 relais on
-Fan 2 relais on
-wait 10sec
-Spray system Wifi off (second time! i wil explane/ not in picture i wil also explane)
-wait 600sec
-Fan4 relais off
-Fan 2 relais off

So , i first made this macro without the extra spray system off, This worked problem i notioced whas that sometimes i got a communication error and the spray system kept on going. So for this i made an extra "spray system off"

first problem i came up to: when the macro is reversible 'yes' wel then it takes the "off" comand as "on".
Second problem, suddenly my macro was "reversed" (not visual) but i heart my fans go "off" (on) first then wait 610sec then go off and spray then go off after 15sec...

very confusing.... So what i did, i just made another macro in exactly the same way, this time i did reversible "off" press run and yes this works perfect! but as soon as i add this to a timer.... nothing happens?
1603698440338.png


i put reversible "on" and exactly the same thing as the old macro happens, it works the outher way around and it turns my spray system "on" when i ask "off". Also it added up this time to the time i already had (reversed) from the old macro?"
1603698400330.png


timer at 8Pm + 610 sec : spray. (old wrong reversed way)
Now, Timer on at 8Pm +610 +610 (sprayers on at 8:20) ....

i cant get my head around this ?! is there something wrong with the macro's/timers? Strange that when i hit RUN everything works like normal, but with the timers it just goes south!

I've posted how to deal with this is detail before. There is a problem with the reversible macros and running macros from macros and timers. In short, a macro or a timer can only trigger a macro if it is reversible, and then it will only run it in reverse. My work around for this is to write my macros I want to trigger from another macro or timer in reverse - you need to reverse order and state - and then use those from your timer / macro (reversible)

Hope that makes sense. I'll try find my original post on the issue.
 
  • Like
Reactions: Yov

Des Westcott

Well-Known Member
View Badges
Joined
May 29, 2018
Messages
578
Reaction score
946
Location
Durban - South Africa
@Ranjib I have a strange problem with the Macro's.
i made a macro :
1603697065569.png

-Spray system Wifi on
-wait 15sec
-Spray system Wifi off
-Fan4 relais on
-Fan 2 relais on
-wait 10sec
-Spray system Wifi off (second time! i wil explane/ not in picture i wil also explane)
-wait 600sec
-Fan4 relais off
-Fan 2 relais off

So , i first made this macro without the extra spray system off, This worked problem i notioced whas that sometimes i got a communication error and the spray system kept on going. So for this i made an extra "spray system off"

first problem i came up to: when the macro is reversible 'yes' wel then it takes the "off" comand as "on".
Second problem, suddenly my macro was "reversed" (not visual) but i heart my fans go "off" (on) first then wait 610sec then go off and spray then go off after 15sec...

very confusing.... So what i did, i just made another macro in exactly the same way, this time i did reversible "off" press run and yes this works perfect! but as soon as i add this to a timer.... nothing happens?
1603698440338.png


i put reversible "on" and exactly the same thing as the old macro happens, it works the outher way around and it turns my spray system "on" when i ask "off". Also it added up this time to the time i already had (reversed) from the old macro?"
1603698400330.png


timer at 8Pm + 610 sec : spray. (old wrong reversed way)
Now, Timer on at 8Pm +610 +610 (sprayers on at 8:20) ....

i cant get my head around this ?! is there something wrong with the macro's/timers? Strange that when i hit RUN everything works like normal, but with the timers it just goes south!


Here's my original post

 

drm2215

New Member
View Badges
Joined
Sep 14, 2020
Messages
8
Reaction score
1
Location
Chicago
@Ranjib

Hello,
I am new to Reef-Pi and relatively unexperienced when it comes to Linux and Raspberry Pi. I am excited to get Reef-Pi up and running on my Nano Tank. I have made it through the power management section successfully and would like to focus on lighting control, but I have a question about the guide you made on Adafruit for lighting. I understand the construction and design intent but what I can't seem to figure out is how does the new Pi Zero interact with the original Reef-Pi setup? Is it completely separate and needs a separate IP address/web browser to control or does it interact with the base system?
 

Mikeneedsahobby

Active Member
View Badges
Joined
Sep 16, 2018
Messages
446
Reaction score
807
@Ranjib

Hello,
I am new to Reef-Pi and relatively unexperienced when it comes to Linux and Raspberry Pi. I am excited to get Reef-Pi up and running on my Nano Tank. I have made it through the power management section successfully and would like to focus on lighting control, but I have a question about the guide you made on Adafruit for lighting. I understand the construction and design intent but what I can't seem to figure out is how does the new Pi Zero interact with the original Reef-Pi setup? Is it completely separate and needs a separate IP address/web browser to control or does it interact with the base system?
Normally you can add the new module with the existing module. Ie only one pi zero.

Check out this build. https://www.reef2reef.com/threads/reef-pi-build.482170/
 

drm2215

New Member
View Badges
Joined
Sep 14, 2020
Messages
8
Reaction score
1
Location
Chicago

Mikeneedsahobby

Active Member
View Badges
Joined
Sep 16, 2018
Messages
446
Reaction score
807
Thanks for the build thread. I will read through it but the build guide explains the lighting module as a separate build with a different pi? Can you give me an idea where in your build thread you talk about the lighting build?
That isn’t my build thread. It is a build thread of a guy who built from scratch. He integrated several modules including lights I think. Think of the guides as written as stand alone but they all can be combined together with one pi.

For my builds I bought pre-made hats. This saves a ton of soldering and board layout headaches.
On my fresh water tank I used the pwm outputs on the hat to control mosfets that then send power to my lights. On my salt tank I built a 2nd box that contains the pwm circuits and other bits for lights and dosing. This is tied back to the main hat through i2c.

you can put your lighting module on the same board or a new board but this should be wired back to a single raspberry pi. Wire board 1 to board 2.

here is another build thread from scratch with lights. https://www.reef2reef.com/threads/another-reef-pi-build.506894/
His lights are now on my tank. I purchased them from him. I believe he builds the lighting circuit around page 6. Keep in mind that the way to control lights is different between the light manufacturers. My circuit for the beamswork light is different than my circuit for the ocean revive lights. And neither would work with kessil.
 

92Miata

Well-Known Member
View Badges
Joined
Feb 26, 2020
Messages
935
Reaction score
1,355
Location
Richmond, VA
Having some temperature alerting issues - it's possible it could be some queueing going on in my email/text or one of the subsystems - but it's tough to tell with no timestamps on the actual message.

Temp.is 77.1 on the temp probe page, system is alerting that it's below 77

Screenshot_20201027-100227.png



Edit:
5 minutes later - temp probe page is now reading 77, but alerting has stopped. Strange.
 
Last edited:

Mandelstam

Well-Known Member
View Badges
Joined
Oct 29, 2017
Messages
685
Reaction score
1,103
Location
Malmö, Sweden
Thanks for the build thread. I will read through it but the build guide explains the lighting module as a separate build with a different pi? Can you give me an idea where in your build thread you talk about the lighting build?

No need for separate Pis for each module you can run everything from just one. The guides only show one module per pi because (my guess) it would be complicated to have guides for every possible combination. Some people have more modules running than others etc. And at the moment I don't think it's possible to connect up more than one pi to a single Reef-Pi system, ie having slave boards for different modules. I remember Ranjib talking about it though and maybe it's in the pipeline.
 

drm2215

New Member
View Badges
Joined
Sep 14, 2020
Messages
8
Reaction score
1
Location
Chicago
That isn’t my build thread. It is a build thread of a guy who built from scratch. He integrated several modules including lights I think. Think of the guides as written as stand alone but they all can be combined together with one pi.

For my builds I bought pre-made hats. This saves a ton of soldering and board layout headaches.
On my fresh water tank I used the pwm outputs on the hat to control mosfets that then send power to my lights. On my salt tank I built a 2nd box that contains the pwm circuits and other bits for lights and dosing. This is tied back to the main hat through i2c.

you can put your lighting module on the same board or a new board but this should be wired back to a single raspberry pi. Wire board 1 to board 2.

here is another build thread from scratch with lights. https://www.reef2reef.com/threads/another-reef-pi-build.506894/
His lights are now on my tank. I purchased them from him. I believe he builds the lighting circuit around page 6. Keep in mind that the way to control lights is different between the light manufacturers. My circuit for the beamswork light is different than my circuit for the ocean revive lights. And neither would work with kessil.
Thank you very much for your help. Do you know of a build thread using Kessil lights? Of course that is what i have.
 

drm2215

New Member
View Badges
Joined
Sep 14, 2020
Messages
8
Reaction score
1
Location
Chicago
I have a Kessil A160WE and it will be the only light for my Fluval Evo 13.5. I read that if you only need two channels of lighting control you can use the GPIO 18 & 19 as lighting channels, does anyone have a wiring diagram/build thread on doing this specifically?
 

Martin Lowry

New Member
View Badges
Joined
Sep 19, 2017
Messages
10
Reaction score
9
Anyone had any experience hooking up Current Orbit Marine Pro light fixtures to Reef-Pi? I have two of them and was hoping to get them hooked up to my Reef-Pi at some point. The lights come with a programmable timer that allows LED intensity/brightness and various other settings so I'm assuming they are PWM driven.
 
Shop Online with Zoanthids.com!

Mikeneedsahobby

Active Member
View Badges
Joined
Sep 16, 2018
Messages
446
Reaction score
807
I have a Kessil A160WE and it will be the only light for my Fluval Evo 13.5. I read that if you only need two channels of lighting control you can use the GPIO 18 & 19 as lighting channels, does anyone have a wiring diagram/build thread on doing this specifically?
I don’t have kessil myself, so I’m not sure what they need for an input. The module build from @Ranjib is for a kessil though.
“For one part of the build, we'll extend our previous reef-pi build to control Kessil lights (A360, A80 or A160), Kessil allows controlling the spectrum and intensity of the light using 10V pulse width modulation (PWM).”
So from his guide he is using 10v pwm signals. I would follow his guide from there.

Gpio are just on and off signals. They can be inputs or outputs. This would only be good for turning the lights on and off, but not for intensity. Pwm is for programming intensity changes. The pi has 2 3.3v pwm signals. You can get 16 more with a pca9685 chip. Then ranjib used an npn transistor to convert the 3.3v pwm to 10v pwm.
 

Mikeneedsahobby

Active Member
View Badges
Joined
Sep 16, 2018
Messages
446
Reaction score
807
Anyone had any experience hooking up Current Orbit Marine Pro light fixtures to Reef-Pi? I have two of them and was hoping to get them hooked up to my Reef-Pi at some point. The lights come with a programmable timer that allows LED intensity/brightness and various other settings so I'm assuming they are PWM driven.
I personally haven’t seen anyone do that yet. I have an orbit marine fixture but it’s gathering dust now. The controller that came with it quit. These lights have individually addressed leds. The feed to the lights is 3 channel and the current flows through. Gnd, power, signal? So does that mean the signal is digital to control the many channels? You might need to open up the lights and share pictures of the circuit to get help from people smarter than me.
 
Last edited:

Martin Lowry

New Member
View Badges
Joined
Sep 19, 2017
Messages
10
Reaction score
9
I personally haven’t seen anyone do that yet. I have an orbit marine fixture but it’s gathering dust now. The controller that came with it quit. The feed to the lights is 3 channel and the current flows through. Gnd, power, signal? So does that mean the signal is digital to control two channels. Or is it gnd, pwm power, pwm power to control 2 channels? You might need to open up the lights and share pictures of the circuit to get help from people smarter than me.
Yeah! My controller quit as well, luckily it was still in warranty so Current USA replaced it. It just occurred to me that I have the old one. I pulled it apart and it looks like there's C1, C2, V, and GD connections on the PCB. I have the two light setup so I guess it's C1, C2 V, Gnd going to each light. I think those 78M06's may be MOSFET's. Maybe there are some "Smarter than me" people out there who know more.....
ramp timer.jpg
 

drm2215

New Member
View Badges
Joined
Sep 14, 2020
Messages
8
Reaction score
1
Location
Chicago
I don’t have kessil myself, so I’m not sure what they need for an input. The module build from @Ranjib is for a kessil though.
“For one part of the build, we'll extend our previous reef-pi build to control Kessil lights (A360, A80 or A160), Kessil allows controlling the spectrum and intensity of the light using 10V pulse width modulation (PWM).”
So from his guide he is using 10v pwm signals. I would follow his guide from there.

Gpio are just on and off signals. They can be inputs or outputs. This would only be good for turning the lights on and off, but not for intensity. Pwm is for programming intensity changes. The pi has 2 3.3v pwm signals. You can get 16 more with a pca9685 chip. Then ranjib used an npn transistor to convert the 3.3v pwm to 10v pwm.
ok that makes sense. Do you know of a build thread that has used the 2 onboard pwm channels to control a single Kessil A160WE? The guide you quoted is awesome but it for 7 channels of lighting and I really only need 2 so the onboard channels are perfect and saves me the trouble of adding the PCA9685 chip. I'm hoping it simplifies the process significantly. Thanks for your help.
 

NeonRabbit221B

Valuable Member
View Badges
Joined
Jun 21, 2019
Messages
1,165
Reaction score
1,914
Location
Harrisonburg, Va
So I was moving apartments when I stumbled upon an old project I did several years ago called MagicMirror which essentially uses a screen behind a 1-way mirror/reflective plastic. After updating a module it broke so it kinda just sat in the corner but I am interested in restarting the project as a display for my reef-pi data. I have limited to no experience with the development side of using APIs but I can learn fairly quickly when it comes to programming. Before I get ahead of myself I was wondering if any of you brilliant developers/coders can answer a surface level question. Is this feasible for a newbie? Is the communication protocol fairly straight forward between reef-pi and MM? Here is the github link for the MM project. It has grown quite a bit over the last 3 years and definitely worth checking out if you have an unused monitor and some DIY ingenuity.

 
Lazys Coral House

How do you feel about showing off your tank to "non-reefing" guests?

  • I really enjoy it

    Votes: 128 32.2%
  • I like it if they are interested

    Votes: 201 50.5%
  • I really don't care either way

    Votes: 37 9.3%
  • I don't like showing my tank to people who don't understand it

    Votes: 19 4.8%
  • Other (please explain)

    Votes: 13 3.3%

Online statistics

Members online
705
Guests online
2,794
Total visitors
3,499
Top