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

I've used it for years with no accuracy issue. The software use a running average to calculate the reading. The ping is in milliseconds, so will not affect any animals.

Interesting! I assume you use this on a sump? Also interested in any pics of your controller setup.
 
Hi all, I wanted to mention that adafruit.io has a very nice “notification” setting in the feed section. It will notify by e-mail if the reef-pi data feed (in my case temp) does not arrive as expected. My temp is updated every 2 min, and I have Adafruit set to notify me if goes more than 10 min without an update. It’s nice to know that my network, power, and reef-pi are all up and running.
 
So I am having a couple of problems that hopefully I can sort out.

Firstly, my temperature sensors drop out randomly. Today they randomly dropped out while I was not home and the heater got stuck on and my tank got to 102F.
It also failed to send an alert (alerts had been working previously)
I use a titanium heater that usually runs from its own controller but I decided to try reef-pi t control it.
If I power off my reef-pi and turn it back on, all the sensors are working again.

The other problem is that my metal halide does not turn off when I shut the relay off in the equipment tab. I tried other equipment on that outlet and it works perfectly, just seems the MH gets stuck on.

tempfail.PNG
 
So I am having a couple of problems that hopefully I can sort out.

Firstly, my temperature sensors drop out randomly. Today they randomly dropped out while I was not home and the heater got stuck on and my tank got to 102F.
It also failed to send an alert (alerts had been working previously)
I use a titanium heater that usually runs from its own controller but I decided to try reef-pi t control it.
If I power off my reef-pi and turn it back on, all the sensors are working again.

The other problem is that my metal halide does not turn off when I shut the relay off in the equipment tab. I tried other equipment on that outlet and it works perfectly, just seems the MH gets stuck on.

tempfail.PNG
How much draw does the MH light have in amps?
What are your relays rated at?

I ask because a metal halide ballast is a highly inductive load. When power is cut quickly on a highly inductive load, a voltage spike is produced that can damage a relay contacts.
To combat this, an RC network or MOV can be connected across the load to limit this spike.
With inductive loads, its better to oversize the relays and use some type of protection.
 
Last edited:
So I am having a couple of problems that hopefully I can sort out.

Firstly, my temperature sensors drop out randomly. Today they randomly dropped out while I was not home and the heater got stuck on and my tank got to 102F.
It also failed to send an alert (alerts had been working previously)
I use a titanium heater that usually runs from its own controller but I decided to try reef-pi t control it.
If I power off my reef-pi and turn it back on, all the sensors are working again.

The other problem is that my metal halide does not turn off when I shut the relay off in the equipment tab. I tried other equipment on that outlet and it works perfectly, just seems the MH gets stuck on.

tempfail.PNG
In respect to your temp sensors, how are they wired...have you checked all connections? How long are the cables and how many sensors? What size resistor did you use as a pull up resistor?
Try disconnecting the sensors one at a time to see if one sensor may be causing the problem. Troubleshoot further from there.
 
How much draw does the MH light have in amps?
What are your relays rated at?

I ask because a metal halide ballast is a highly inductive load. When power is cut quickly on a highly inductive load, a voltage spike is produced that can damage a relay contacts.
To combat this, a diode can be connected across the load to limit this spike, its called a flyback or freewheeling diode.
With inductive loads, its better to oversize the relays and use a protection diode.

Not a diode (thats for the coil) but instead an RC Snubber circuit. Sizing these requires some calculations.
 
Not a diode (thats for the coil) but instead an RC Snubber circuit. Sizing these requires some calculations.
Yes thats correct, my mistake(long day today) there, hes controlling an AC load, but yes rc network can be used here, along with oversizing the relay.
There is also a special bi directional diode called a TVS diode that can be used across the contacts. Similar to these;
https://m.littelfuse.com/products/tvs-diodes/leaded/ak1.aspx
 
Last edited:
So I am having a couple of problems that hopefully I can sort out.

Firstly, my temperature sensors drop out randomly. Today they randomly dropped out while I was not home and the heater got stuck on and my tank got to 102F.
It also failed to send an alert (alerts had been working previously)
I use a titanium heater that usually runs from its own controller but I decided to try reef-pi t control it.
If I power off my reef-pi and turn it back on, all the sensors are working again.

The other problem is that my metal halide does not turn off when I shut the relay off in the equipment tab. I tried other equipment on that outlet and it works perfectly, just seems the MH gets stuck on.

tempfail.PNG

As for the e-mail, did you turn on 2-factor authentication on Google since setting this up? If so, you need to use an app specific password to authenticate with the mail servers:

https://support.google.com/accounts/answer/185833?hl=en
 
How much draw does the MH light have in amps?
What are your relays rated at?

I ask because a metal halide ballast is a highly inductive load. When power is cut quickly on a highly inductive load, a voltage spike is produced that can damage a relay contacts.
To combat this, an RC network or MOV can be connected across the load to limit this spike.
With inductive loads, its better to oversize the relays and use some type of protection.

The metal halide is a 250w with a magnetic ballast. Running on 240v so that would be about 1 amp?
Interestingly, If a shut off the MH after it has been on only for a few minutes it will switch off. If the MH has been on for a while I found that if I toggle the relay off and on several times it will eventually turn off.
Im using these relays https://www.amazon.com/JBtek-Channel-Module-Arduino-Raspberry/dp/B00KTELP3I

In respect to your temp sensors, how are they wired...have you checked all connections? How long are the cables and how many sensors? What size resistor did you use as a pull up resistor?
Try disconnecting the sensors one at a time to see if one sensor may be causing the problem. Troubleshoot further from there.
I am using wykats hat board which incorporates the resistor. I have wired my sensors like this (from wykats documentation).

tempwireing.PNG

I am using 5 sensors. 3 are on their own mini xlr plugs and the other two sensors are wired together and share a mini xlr plug. These have also been extended about 500mm. The sensor that controls the heater is on the shared plug.
They will work for days and days with no problem and then suddenly drop out. I will unplug all the sensors except the shared one and see if it still drops out, but this may take a few days to confirm.
 
The metal halide is a 250w with a magnetic ballast. Running on 240v so that would be about 1 amp?
Interestingly, If a shut off the MH after it has been on only for a few minutes it will switch off. If the MH has been on for a while I found that if I toggle the relay off and on several times it will eventually turn off.
Im using these relays https://www.amazon.com/JBtek-Channel-Module-Arduino-Raspberry/dp/B00KTELP3I


I am using wykats hat board which incorporates the resistor. I have wired my sensors like this (from wykats documentation).

tempwireing.PNG

I am using 5 sensors. 3 are on their own mini xlr plugs and the other two sensors are wired together and share a mini xlr plug. These have also been extended about 500mm. The sensor that controls the heater is on the shared plug.
They will work for days and days with no problem and then suddenly drop out. I will unplug all the sensors except the shared one and see if it still drops out, but this may take a few days to confirm.

Magnetic ballasts will have a huge kick back, and the relay probably just doesn't have enough force to separate the contacts in this case. You can try cascading a relay using a larger 240V coil relay as one option, or wire in an RC snubber or other transient suppressor as @Bigtrout suggested.

Do you have the schematic handy for Wykat's board? You're not the only one with problems using multiple sensors and the board, and I want to try suggested a few mods to improve comms reliability.
 
The metal halide is a 250w with a magnetic ballast. Running on 240v so that would be about 1 amp?
Interestingly, If a shut off the MH after it has been on only for a few minutes it will switch off. If the MH has been on for a while I found that if I toggle the relay off and on several times it will eventually turn off.
Im using these relays https://www.amazon.com/JBtek-Channel-Module-Arduino-Raspberry/dp/B00KTELP3I
The relays on those are rated at 10amps. But it almost sounds like that relay is weak or defective, does it act the same plugged in to a different relay position?

On the temp sensors, double check all your connections, maybe you have an intermittent connection on the double sensor.
 
The relays on those are rated at 10amps. But it almost sounds like that relay is weak or defective, does it act the same plugged in to a different relay position?

On the temp sensors, double check all your connections, maybe you have an intermittent connection on the double sensor.

Looks like 3A limit on inductive loads, if I can read the really bad formatting on this correctly. Still in range, but maybe somewhat marginal at the edges. A warmed up ballast and bulb combo on a magnetic ballast will have a horrific power factor and be mostly inductive.

https://www.mycomkits.com/reference/Songle_SRD(T73)_Relay.pdf
 
Magnetic ballasts will have a huge kick back, and the relay probably just doesn't have enough force to separate the contacts in this case. You can try cascading a relay using a larger 240V coil relay as one option, or wire in an RC snubber or other transient suppressor as @Bigtrout suggested.

Do you have the schematic handy for Wykat's board? You're not the only one with problems using multiple sensors and the board, and I want to try suggested a few mods to improve comms reliability.
Thanks, I have no clue about adding in another relay or subber so I would need more help there :D

Here is the schematic, let me know if it is too small to see.
sch.PNG


The relays on those are rated at 10amps. But it almost sounds like that relay is weak or defective, does it act the same plugged in to a different relay position?

On the temp sensors, double check all your connections, maybe you have an intermittent connection on the double sensor.
Thanks I will double check. I am pretty confident with my soldered connections and I did a continuity check on everything but it could be that!
 
Interesting! I assume you use this on a sump? Also interested in any pics of your controller setup.

I used it for ATO tank level on my first tank, but the reef controller was Ardunio based of @doughboy 's setup. Only problem for reef-pi is you need a separate processor (or something that can measure time of a pulse accurately) to find the distance consistently since linux is not a real time OS.
 
I thought I would mention that on this page -- https://reef-pi.github.io/guides/intro/ -- The "Dosing Controller" link is wrong. I put a PR in github to change it but I am not sure anyone monitors that github account.

Also on this page -- https://learn.adafruit.com/reef-pi-guide-5-dosing-controller/circuit-construction -- The fritzing diagram is slightly wrong. In the top middle the yellow wire is connected to the wrong line. The line it shows it shows is ground. It should moved one pin to the right. The pictures of the actual board are correct.
components_Screen_Shot_2018-11-12_at_10.01.13_AM.png
the github/website guide is not maintained, since i started hosting the guides to adafruit.com. Thank you for pointing out the circuit bug, I'll get fix it.
 
Hi all, I wanted to mention that adafruit.io has a very nice “notification” setting in the feed section. It will notify by e-mail if the reef-pi data feed (in my case temp) does not arrive as expected. My temp is updated every 2 min, and I have Adafruit set to notify me if goes more than 10 min without an update. It’s nice to know that my network, power, and reef-pi are all up and running.
Thank you for sharing this. This is extremely useful. I just noticed the same information in @Mikeneedsahobby 's thread as well. I am planning to update the official guide in adafruit.com .
 
So I am having a couple of problems that hopefully I can sort out.

Firstly, my temperature sensors drop out randomly. Today they randomly dropped out while I was not home and the heater got stuck on and my tank got to 102F.
It also failed to send an alert (alerts had been working previously)
I use a titanium heater that usually runs from its own controller but I decided to try reef-pi t control it.
If I power off my reef-pi and turn it back on, all the sensors are working again.

The other problem is that my metal halide does not turn off when I shut the relay off in the equipment tab. I tried other equipment on that outlet and it works perfectly, just seems the MH gets stuck on.

tempfail.PNG
So sorry to hear this. How is the livestock doing? please setup a adafruit.io notification.
 
So sorry to hear this. How is the livestock doing? please setup a adafruit.io notification.
Luckily its just a cycling tank so nothing to worry about :) The high temp might have made some die off and increased the cycle time but that is fine. All my stock is happy in a temporary tank at the moment.
Ill get the adafruit account shortly.
 

TOP 10 Trending Threads

ARE YOU READY TO CONFESS TO CRAZIEST, DUMBEST, FUNNIEST THING YOU’VE EVER DONE IN REEFING?

  • Yeah, I'll confess! (Share your story in the comments!)

    Votes: 26 57.8%
  • Nah, I'll keep mine a secret...(Don't be like that, share with the class!)

    Votes: 19 42.2%
Back
Top
Home
Post thread…
Market
What's new