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

OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,876
Reaction score
16,680
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
Hi, Ranjib! First, I apologize, I didn't even see your first reply to me, but as always, thank you for your time and help! I just want to double check if you think that Reef-Pi could control the NanoBox V3.1 array. I am asking because I had another member in a different thread tell me that I shouldn't use Reef-Pi because that LED array is 5 channels. Do you see any problem with Reef-Pi controlling 5 separate channels? I'm still learning, but I thought the pca9685 board (which I already have) gave you multiple PWM signals.

If/when you do start a thread at NR, could you let us know here please? I would like to be apart of that thread for sure.

I do now have Reef-Pi installed and running on my Pi, I'm going to start playing with the "easier" builds like the power switch relays and maybe temperature monitoring over the next few days, and I will continue to be researching and hopefully learning how the lights will work.

Thank you again for your help!

-Fish Fan
I have already started a thread on NR, under nano-box in sponsor forum.
You should be able to control as many as 18 channels with reef-pi, 16 from pca9685 and 2 from Pi
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,876
Reaction score
16,680
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
Any benefit to using the electromechanical relays vs the solid state relays?
generally, solid state relays have lower current ratings (2-5 amp), while electro mechanical ones have higher current rating (10-20 amp). solid state relays are quite, while electro mechanical relays have that clicky sound. Some folks have said solid state relays last longer (due to no mechanical parts involved), but i have not tested so much that i can validate this.
The ADJ SR2 powerstrip that i am recommending going forward (in US) , uses electromechanical relays.
 

Fish Fan

Master of Disaster
View Badges
Joined
Dec 8, 2017
Messages
12,922
Reaction score
33,647
Location
461 Ocean Boulevard
Rating - 100%
6   0   0
I have already started a thread on NR, under nano-box in sponsor forum.
You should be able to control as many as 18 channels with reef-pi, 16 from pca9685 and 2 from Pi
Thank you, Ranjib!

-FF
 

DirtDiggler2823

If I can't break it, it doesn't exist
View Badges
Joined
Jul 31, 2018
Messages
1,667
Reaction score
2,075
Location
Gambrills
Rating - 0%
0   0   0
generally, solid state relays have lower current ratings (2-5 amp), while electro mechanical ones have higher current rating (10-20 amp). solid state relays are quite, while electro mechanical relays have that clicky sound. Some folks have said solid state relays last longer (due to no mechanical parts involved), but i have not tested so much that i can validate this.
The ADJ SR2 powerstrip that i am recommending going forward (in US) , uses electromechanical relays.

I can see what you're talking about regarding the load differences. Thank you for that information. I'm old-school, so some clicking sounds are probably comforting at the end of the day.
 

Ryan115

Well-Known Member
View Badges
Joined
Dec 28, 2010
Messages
586
Reaction score
1,085
Location
Mississippi
Rating - 0%
0   0   0
I have already started a thread on NR, under nano-box in sponsor forum.
You should be able to control as many as 18 channels with reef-pi, 16 from pca9685 and 2 from Pi
Would reef-pi support multiple pca9685s?
With the addressable pins, we can daisy-chain 16 units.
994 individual channels (992 + 2 on Pi)!!!

Not sure when this would come in to play, but it would be an awesome lighting/dosing setup!
 

AlgaeBarn

Marine Aquariums Made Easy!
View Badges
Joined
Oct 14, 2013
Messages
2,491
Reaction score
3,431
Location
Denver, Colorado
Rating - 100%
1   0   0
generally, solid state relays have lower current ratings (2-5 amp), while electro mechanical ones have higher current rating (10-20 amp). solid state relays are quite, while electro mechanical relays have that clicky sound. Some folks have said solid state relays last longer (due to no mechanical parts involved), but i have not tested so much that i can validate this.
The ADJ SR2 powerstrip that i am recommending going forward (in US) , uses electromechanical relays.


Hey Ranjib,

This if the first time I'm seeing the reefPi! Great idea! I was actually looking into making controller that we would use in house based upon a raspberry pi or similar windows based single chip computer.

Have you checked out the American DJ SR P8? You have 8 individual relays with some sort of serial connector packed up really nice. I was tempted to use a USB to serial module cable, and start trying to send signals to fire the relays, but with so much to do, I haven't been able to break away.

Not sure if you have answered this, but are you an electrical engineer?
 
Last edited:

sjeff35

Active Member
View Badges
Joined
Jun 14, 2018
Messages
172
Reaction score
356
Location
Corrales, NM
Rating - 0%
0   0   0
Hey Ranjib,

This if the first time I'm seeing the reefPi! Great idea! I was actually looking into making controller that we would use in house based upon a raspberry pi or similar windows based single chip computer.

Have you checked out the American DJ SR P8? You have 8 individual relays with some sort of serial connector packed up really nice. I was tempted to use a USB to serial module cable, and start trying to send signals to fire the relays, but with so much to do, I haven't been able to break away.

Not sure if you have answered this, but are you an electrical engineer?

He's not an Electrical engineer, but he did spend last night in a Holiday Inn express ...
 

AlgaeBarn

Marine Aquariums Made Easy!
View Badges
Joined
Oct 14, 2013
Messages
2,491
Reaction score
3,431
Location
Denver, Colorado
Rating - 100%
1   0   0
generally, solid state relays have lower current ratings (2-5 amp), while electro mechanical ones have higher current rating (10-20 amp). solid state relays are quite, while electro mechanical relays have that clicky sound. Some folks have said solid state relays last longer (due to no mechanical parts involved), but i have not tested so much that i can validate this.
The ADJ SR2 powerstrip that i am recommending going forward (in US) , uses electromechanical relays.

If memory serves me correct, most electromechanical relays state about 100,000 cycles on their datasheet. Some higher end ones go into >1,000,000 cycles. Electromechanical can also do DC voltage (not sure the benefit of controlling DC voltage using a relay in this hobby). I worked on a project where our electromechanical relays went into the millions, but they were pricey and when we rebuilt the testing equipment, we made the jump to solid state relays.

Solid state relays can do well into the 40A range, and much higher, but those guys are huge (~2in x ~3in) and if you are powering that much amperage, you need a big heatsink for them. Not so hobby friendly. The cheap, non brand name ones tend to be dishonest with their amp ratings. The cheap ones started blowing up.

If any device would gain the most from a solid state relay, it would likely be the heater. Less likelihood of a cheap electromechanical failing ON ( if the heater does not have its own internal temperature control). This would be a super rare occurrence, and the increased form factor from a solidstate + heatsink may not be worth the tradeoff.
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,876
Reaction score
16,680
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
Would reef-pi support multiple pca9685s?
With the addressable pins, we can daisy-chain 16 units.
994 individual channels (992 + 2 on Pi)!!!

Not sure when this would come in to play, but it would be an awesome lighting/dosing setup!
Not currently, since I have never seen it being used fully yet. But I don’t think this will be an issue , it will very little effort to add support for multiple pca9685.if you are building something that will use this, let me know I’ll make sure the software is there ...
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,876
Reaction score
16,680
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
Hey Ranjib,

This if the first time I'm seeing the reefPi! Great idea! I was actually looking into making controller that we would use in house based upon a raspberry pi or similar windows based single chip computer.

Have you checked out the American DJ SR P8? You have 8 individual relays with some sort of serial connector packed up really nice. I was tempted to use a USB to serial module cable, and start trying to send signals to fire the relays, but with so much to do, I haven't been able to break away.

Not sure if you have answered this, but are you an electrical engineer?
Yes, infact recently I have started using those (ADJ SR P8, with db9 connector),. They work awesome, you can easily control two of those power strips with each reef-pi.
I am a software engineer by profession.
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,876
Reaction score
16,680
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
If memory serves me correct, most electromechanical relays state about 100,000 cycles on their datasheet. Some higher end ones go into >1,000,000 cycles. Electromechanical can also do DC voltage (not sure the benefit of controlling DC voltage using a relay in this hobby). I worked on a project where our electromechanical relays went into the millions, but they were pricey and when we rebuilt the testing equipment, we made the jump to solid state relays.

Solid state relays can do well into the 40A range, and much higher, but those guys are huge (~2in x ~3in) and if you are powering that much amperage, you need a big heatsink for them. Not so hobby friendly. The cheap, non brand name ones tend to be dishonest with their amp ratings. The cheap ones started blowing up.

If any device would gain the most from a solid state relay, it would likely be the heater. Less likelihood of a cheap electromechanical failing ON ( if the heater does not have its own internal temperature control). This would be a super rare occurrence, and the increased form factor from a solidstate + heatsink may not be worth the tradeoff.
I have no clue how things will work above 20A load. I would assume we have to rethink most electrical wiring at that level. I tend to restrict our designs to the controller and peripheral electronics, which are mostly DC, under 24 V, and 3 A. We have a few electrical engineering experts here in r2r, I tend to reach out to them for anything thats beyond my understanding :-)
 

AlgaeBarn

Marine Aquariums Made Easy!
View Badges
Joined
Oct 14, 2013
Messages
2,491
Reaction score
3,431
Location
Denver, Colorado
Rating - 100%
1   0   0
Yes, infact recently I have started using those (ADJ SR P8, with db9 connector),. They work awesome, you can easily control two of those power strips with each reef-pi.
I am a software engineer by profession.

OMG! SOLD. I'll take 10 units! ;)

Are you just using a usb to serial cable? Are the libraries live? Do you have a setup guide for the ADJ SR P8 or was the integration pretty straightforward?
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,876
Reaction score
16,680
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
OMG! SOLD. I'll take 10 units! ;)

Are you just using a usb to serial cable? Are the libraries live? Do you have a setup guide for the ADJ SR P8 or was the integration pretty straightforward?
Nah.. nothing fancy, its db9, so 9 pin, each controls one channel, and a common +v. Let me dig up the pics.. I'll share again, I am pretty sure I have already shared them, but no harm in re-sharing :-)
 

MaccaPopEye

Well-Known Member
View Badges
Joined
Jan 5, 2016
Messages
697
Reaction score
1,224
Rating - 0%
0   0   0
So the HAT is ready to order PCB's for testing :)

upload_2018-7-31_11-34-31.png


It requires 12V input (and 5V to the PI) and offers an interface to max 16 external relais, 2 dosing pumps, I2C interface, 2 ATO's and interface to DS18B20 temperature sensors and fits directly on the PI ;Happy. So the whole device is the size of the PI, only slighty higher.

Due to its compactness I'm thinking of making a different PWM board which could fit on top as well. Have to think how to add more (I2C) boards on top such as the BNC interfaces.

Actual size:

upload_2018-7-31_11-42-42.png

Wykat this is awesome! Amazing job mate, I'm very keen to see how the HAT and PWM board fit together with the Pi :)

When you say 2 ATO's does that mean you can only use a maximum of 2 optical sensors or flat switches? If I wasn't going to use the dosing function (from the Pi at least) would I be able to use those GPIO pins for more optical sensors / float switches?

I can't remember if you replied before or not but would it be easy enough for me to get one of these shipped to Australia?

How the relays are connected to the board ? i.e. whats the connector type? It might be worth mounting the connector directly or think of how it upfront. I would love to see us settling on ADJ SR 2 power bars, which uses 12v , db9 connectors.

Ranjib I really like the look of the ADJ power bars it's a shame they can't be used by anyone outside of the US :(

I think it is better to leave the connectors off of the HAT and let the user wire up whatever connectors they want to use on the I/O side of the housing. While it takes a bit more work for the user to wire it up I think this makes the HAT way more versatile than having connectors directly on the board.
 

wykat

Active Member
View Badges
Joined
May 23, 2018
Messages
182
Reaction score
421
Rating - 0%
0   0   0
what program are you using , Please share...
I've used Kicad 4, just upgraded to version 5 this morning and FreeCAD to make some housings. Had to make some footprints (Kicad) and 3D models (FreeCAD) my self as well. Can share the .sch and .pcb or the files to order PCB's if you want, but note it has not yet been tested. I don't have a clear picture which footprints and 3D models or other files will be missing, but if you discover them I can share those as well.
The biggest problem I'm presently having is creating the BOM due to spaces in the directory and filenames. I think with the BOM I may get more information. Creating a BOM is a little tricky with Kicad, have to look into that. For the rest I'm very pleased with Kicad and there is very good support on the Inet :)
 

wykat

Active Member
View Badges
Joined
May 23, 2018
Messages
182
Reaction score
421
Rating - 0%
0   0   0
Would reef-pi support multiple pca9685s?
With the addressable pins, we can daisy-chain 16 units.
994 individual channels (992 + 2 on Pi)!!!

Not sure when this would come in to play, but it would be an awesome lighting/dosing setup!
On my I2C PWM module design you can set all 6 (a5-a0) addresses.
 

wykat

Active Member
View Badges
Joined
May 23, 2018
Messages
182
Reaction score
421
Rating - 0%
0   0   0
Wykat this is awesome! Amazing job mate, I'm very keen to see how the HAT and PWM board fit together with the Pi :)

When you say 2 ATO's does that mean you can only use a maximum of 2 optical sensors or flat switches? If I wasn't going to use the dosing function (from the Pi at least) would I be able to use those GPIO pins for more optical sensors / float switches?

I can't remember if you replied before or not but would it be easy enough for me to get one of these shipped to Australia?
As soon as I receive all components I'll will share pictures ;)

The 2 ATO interfaces are intended for optical switches. For the ATO's you don't need an additional interface board as the components are already on the HAT as Ranjib correctly saw. The dosing connectors provide 12V which is too high for an external FSS-IR02 interface.

Let me first test the present HAT and then I can think of a different version as it will be simpler to move the dosing function to an I2C board (similar to PWM). If I recall correctly, Ranjib stated that his dosing function was going only in one direction, then I think it could be very simple. (presently I'm using 5 GPIO ports which I think can be reduced). I had a separate discussion with Ranjib on this related to the number of available GPIO ports.

I think I did reply for shipment to Australia that I think it would be simpler if you order the PCB's yourself (10 pcs for $2 :D plus shipment). Otherwise I can ship.

With respect to J9 (relais connector), I've planned Socket_Strip_Angled_2x10_Pitch2.54mm
100Pcs-Per-Lot-2-54mm-Pitch-2x10-Pin-20-Pin-Female-Double-Row-Right-Angle-Pin.jpg_640x640.jpg

Alternatively you can of course solder wires to the board and connect a DB9 in the housing.



Below the whole schematic

upload_2018-8-2_9-7-42.png


upload_2018-7-31_11-42-42.png
 

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
If memory serves me correct, most electromechanical relays state about 100,000 cycles on their datasheet. Some higher end ones go into >1,000,000 cycles. Electromechanical can also do DC voltage (not sure the benefit of controlling DC voltage using a relay in this hobby). I worked on a project where our electromechanical relays went into the millions, but they were pricey and when we rebuilt the testing equipment, we made the jump to solid state relays.

Solid state relays can do well into the 40A range, and much higher, but those guys are huge (~2in x ~3in) and if you are powering that much amperage, you need a big heatsink for them. Not so hobby friendly. The cheap, non brand name ones tend to be dishonest with their amp ratings. The cheap ones started blowing up.

If any device would gain the most from a solid state relay, it would likely be the heater. Less likelihood of a cheap electromechanical failing ON ( if the heater does not have its own internal temperature control). This would be a super rare occurrence, and the increased form factor from a solidstate + heatsink may not be worth the tradeoff.

Interesting test on relays.



Funny guy too.
 

Erica-Renee

Valuable Member
View Badges
Joined
Oct 4, 2017
Messages
1,596
Reaction score
3,288
Location
lost
Rating - 0%
0   0   0
Interesting test on relays.



Funny guy too.

Interesting.. The relays were not meant to switch every second like that. Had he set it to even 3 seconds per cycle I bet it would have lasted much longer. The excess heat is the most likely cause of failure.. But of course the mechanical part failed. This can happen to any Mechanical relay at any time from its first switch to millions...

This does prove they are super Reliable
 

TOP 10 Trending Threads

WHAT AMOUNT OF LIVE ROCK AND SAND SHOULD BE PRIORITIZED FOR OPTIMAL BIODIVERSITY/FILTRATION?

  • 100% live rock + bagged sand

    Votes: 38 26.6%
  • 100% dry rock + 100% live sand

    Votes: 48 33.6%
  • 50/50 live/dry rock, 50/50 live/bagged sand

    Votes: 32 22.4%
  • 75% live rock, 25% live sand

    Votes: 15 10.5%
  • 25% live rock, 75% live sand

    Votes: 10 7.0%
Back
Top