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

robsworld78

Well-Known Member
View Badges
Joined
Feb 14, 2020
Messages
952
Reaction score
1,280
Location
Edmonton, Canada
Rating - 0%
0   0   0
Here's an updated AC 120v - 240v power bar I've been working on for Reef-pi. I've been offering these for quite a while and stand behind it but just added a snubber to protect the relays from inductive loads such as motors and added a DB9 socket to match the Reef-pi controller so you only need one cable to controller.

It was designed to be wire free internally, the AC outlets are held firmly in place by a strong 3D printed plate and soldered directly to the board, the 5th image is what you have when its fully assembled. Then it easily drops in the case and is secured with 17 screws overall.

The power bar has an internal 120v - 240v AC-DC module which powers the relays. If Reef-pi is turned off or DB9 is unplugged all outlets turn off.

In the near future I plan to offer a small module that will add an emergency power outage feature. This will plug into the power bar DB9 and have dip switches so you can set each outlet to go to a specific mode if power to controller is lost or DB9 is unplugged. For example you could have outlet 1, 3 and 7 stay on and the remaining turn off. You could also plug something into any outlet and it will only turn on if power goes out or DB9 is unplugged. If you plug the power bar into a UPS you'll have an emergency backup mode for power outages and no need to keep the controller running under battery power.

As you can see this board has North America outlets but soon I will have a version with Australian plugs that work for many countries and another with the large universal outlets to cover the rest. I'm planning to run a Kickstarter soon if any one is interested. If you already have Reef-pi running you can get a DB9 to screw terminals adapter so it would connect easy to your system.

You can also solder wire to the pads on the circuit board and use your own outlets.

I messed up the board so had to put relays on top, I wanted them on the other side of board. Those and the other components will all be on the other side which trim about 14mm off the height of the case. And in the large image the outlets are supposed to be flush with the top but I messed up and ran out of filament, SMH...

US_power_bar_clips.jpg


power_bar_schematic.png
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,825
Reaction score
17,041
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
Here's an updated AC 120v - 240v power bar I've been working on for Reef-pi. I've been offering these for quite a while and stand behind it but just added a snubber to protect the relays from inductive loads such as motors and added a DB9 socket to match the Reef-pi controller so you only need one cable to controller.

It was designed to be wire free internally, the AC outlets are held firmly in place by a strong 3D printed plate and soldered directly to the board, the 5th image is what you have when its fully assembled. Then it easily drops in the case and is secured with 17 screws overall.

The power bar has an internal 120v - 240v AC-DC module which powers the relays. If Reef-pi is turned off or DB9 is unplugged all outlets turn off.

In the near future I plan to offer a small module that will add an emergency power outage feature. This will plug into the power bar DB9 and have dip switches so you can set each outlet to go to a specific mode if power to controller is lost or DB9 is unplugged. For example you could have outlet 1, 3 and 7 stay on and the remaining turn off. You could also plug something into any outlet and it will only turn on if power goes out or DB9 is unplugged. If you plug the power bar into a UPS you'll have an emergency backup mode for power outages and no need to keep the controller running under battery power.

As you can see this board has North America outlets but soon I will have a version with Australian plugs that work for many countries and another with the large universal outlets to cover the rest. I'm planning to run a Kickstarter soon if any one is interested. If you already have Reef-pi running you can get a DB9 to screw terminals adapter so it would connect easy to your system.

You can also solder wire to the pads on the circuit board and use your own outlets.

I messed up the board so had to put relays on top, I wanted them on the other side of board. Those and the other components will all be on the other side which trim about 14mm off the height of the case. And in the large image the outlets are supposed to be flush with the top but I messed up and ran out of filament, SMH...

US_power_bar_clips.jpg


power_bar_schematic.png
This is awesome.
The db9 and sink type 12v wiring came from us retrofitting to control adj power strip, it was not our preferred design. I would recommend allowing 5v or whatever is more appropriate circuit for the use case. Don’t stick to the db9 layout if it does not are sense.
 

robsworld78

Well-Known Member
View Badges
Joined
Feb 14, 2020
Messages
952
Reaction score
1,280
Location
Edmonton, Canada
Rating - 0%
0   0   0
This is awesome.
The db9 and sink type 12v wiring came from us retrofitting to control adj power strip, it was not our preferred design. I would recommend allowing 5v or whatever is more appropriate circuit for the use case. Don’t stick to the db9 layout if it does not are sense.

Glad you like it, I don't mind the DB9 other than the size and need at least 8 wires so it works good. Power isn't needed, it has it's own power supply.

EDIT: Curious, what was your preferred design?
 
Last edited:

Bigtrout

Valuable Member
View Badges
Joined
Dec 16, 2018
Messages
1,189
Reaction score
2,826
Rating - 0%
0   0   0
Here's an updated AC 120v - 240v power bar I've been working on for Reef-pi. I've been offering these for quite a while and stand behind it but just added a snubber to protect the relays from inductive loads such as motors and added a DB9 socket to match the Reef-pi controller so you only need one cable to controller.

It was designed to be wire free internally, the AC outlets are held firmly in place by a strong 3D printed plate and soldered directly to the board, the 5th image is what you have when its fully assembled. Then it easily drops in the case and is secured with 17 screws overall.

The power bar has an internal 120v - 240v AC-DC module which powers the relays. If Reef-pi is turned off or DB9 is unplugged all outlets turn off.

In the near future I plan to offer a small module that will add an emergency power outage feature. This will plug into the power bar DB9 and have dip switches so you can set each outlet to go to a specific mode if power to controller is lost or DB9 is unplugged. For example you could have outlet 1, 3 and 7 stay on and the remaining turn off. You could also plug something into any outlet and it will only turn on if power goes out or DB9 is unplugged. If you plug the power bar into a UPS you'll have an emergency backup mode for power outages and no need to keep the controller running under battery power.

As you can see this board has North America outlets but soon I will have a version with Australian plugs that work for many countries and another with the large universal outlets to cover the rest. I'm planning to run a Kickstarter soon if any one is interested. If you already have Reef-pi running you can get a DB9 to screw terminals adapter so it would connect easy to your system.

You can also solder wire to the pads on the circuit board and use your own outlets.

I messed up the board so had to put relays on top, I wanted them on the other side of board. Those and the other components will all be on the other side which trim about 14mm off the height of the case. And in the large image the outlets are supposed to be flush with the top but I messed up and ran out of filament, SMH...

US_power_bar_clips.jpg


power_bar_schematic.png
This is some great work! The only suggestion I would have is some kind of option to make the relays NO or NC. I don t know if you can get the songle relays in a socketable version but user replacable relays without soldering would make this even better!

I been fooling around with a few circuits for mosfet modules for pwm on rgbw led strips and the driverless led lights such as the beamswork and finnex type. I just dont have the time to get into the pcb design. We may have to talk!!!
 

AbjectMaelstroM

Valuable Member
View Badges
Joined
Jul 21, 2019
Messages
1,526
Reaction score
1,810
Location
RVA
Rating - 100%
1   0   0
This is some great work! The only suggestion I would have is some kind of option to make the relays NO or NC. I don t know if you can get the songle relays in a socketable version but user replacable relays without soldering would make this even better!

I been fooling around with a few circuits for mosfet modules for pwm on rgbw led strips and the driverless led lights such as the beamswork and finnex type. I just dont have the time to get into the pcb design. We may have to talk!!!

Yeah, user replaceable relays would be an instant buy for me, though I suppose to could re-solder new ones. I've already had to replace a relay board in my powerstrip as on two of the sockets the relays died after a couple months of use....Chinese QC, you get what you pay for.
 

cwalton00

Active Member
View Badges
Joined
Jan 19, 2017
Messages
324
Reaction score
249
Rating - 0%
0   0   0
Here's an updated AC 120v - 240v power bar I've been working on for Reef-pi. I've been offering these for quite a while and stand behind it but just added a snubber to protect the relays from inductive loads such as motors and added a DB9 socket to match the Reef-pi controller so you only need one cable to controller.

It was designed to be wire free internally, the AC outlets are held firmly in place by a strong 3D printed plate and soldered directly to the board, the 5th image is what you have when its fully assembled. Then it easily drops in the case and is secured with 17 screws overall.

The power bar has an internal 120v - 240v AC-DC module which powers the relays. If Reef-pi is turned off or DB9 is unplugged all outlets turn off.

In the near future I plan to offer a small module that will add an emergency power outage feature. This will plug into the power bar DB9 and have dip switches so you can set each outlet to go to a specific mode if power to controller is lost or DB9 is unplugged. For example you could have outlet 1, 3 and 7 stay on and the remaining turn off. You could also plug something into any outlet and it will only turn on if power goes out or DB9 is unplugged. If you plug the power bar into a UPS you'll have an emergency backup mode for power outages and no need to keep the controller running under battery power.

As you can see this board has North America outlets but soon I will have a version with Australian plugs that work for many countries and another with the large universal outlets to cover the rest. I'm planning to run a Kickstarter soon if any one is interested. If you already have Reef-pi running you can get a DB9 to screw terminals adapter so it would connect easy to your system.

You can also solder wire to the pads on the circuit board and use your own outlets.

I messed up the board so had to put relays on top, I wanted them on the other side of board. Those and the other components will all be on the other side which trim about 14mm off the height of the case. And in the large image the outlets are supposed to be flush with the top but I messed up and ran out of filament, SMH...

US_power_bar_clips.jpg


power_bar_schematic.png
This looks like a really clean setup. Are you planning on selling them or are you planning on listing the files for people to build their own?
 

robsworld78

Well-Known Member
View Badges
Joined
Feb 14, 2020
Messages
952
Reaction score
1,280
Location
Edmonton, Canada
Rating - 0%
0   0   0
This is some great work! The only suggestion I would have is some kind of option to make the relays NO or NC. I don t know if you can get the songle relays in a socketable version but user replacable relays without soldering would make this even better!

I been fooling around with a few circuits for mosfet modules for pwm on rgbw led strips and the driverless led lights such as the beamswork and finnex type. I just dont have the time to get into the pcb design. We may have to talk!!!

Thanks, the small add-on I'll be making will give the option for NO or NC.

They probably have sockets for relays but at what cost. I added a heavy duty snubber which should protect the relay, they can die prematurely when motors are switched off because a high voltage surge will hit the relay. This should help a lot.

The Reef-pi controller I made will run up to 8 channels of 12v LED strip lights. You can connect rgbw to a separate port and have independent control of each. Each port can handle up to 4 amps but the board is limited to 8 amps for accessories.

Speaking of this I actually have plans to make a 16 channel LED controller with mosfets and other features. I made one for a customer once and it was pretty cool. You'll be able to run lights for the tank and all around the house. :) I have many boards to come and like ideas.

Yeah, user replaceable relays would be an instant buy for me, though I suppose to could re-solder new ones. I've already had to replace a relay board in my powerstrip as on two of the sockets the relays died after a couple months of use....Chinese QC, you get what you pay for.

As I mentioned the relays should have adequate protection and they can be removed without too much trouble. I also have a power bar that uses Triacs so very reliable and monitors energy, at some point I'll probably redo it for Reef-pi without the energy monitoring.

This looks like a really clean setup. Are you planning on selling them or are you planning on listing the files for people to build their own?

Thanks, I do sell them and will be running a Kickstarter soon, once I get things finalized I'll be listing some files.
 
Last edited:

Alaa

Community Member
View Badges
Joined
Nov 28, 2018
Messages
74
Reaction score
80
Rating - 0%
0   0   0
Hi
question about macros
is there any way to add logic functions to macros, like if equipment X is on then activate Y weather it is alarm, equipment, or other macros, etc...
 

robsworld78

Well-Known Member
View Badges
Joined
Feb 14, 2020
Messages
952
Reaction score
1,280
Location
Edmonton, Canada
Rating - 0%
0   0   0
Is there a way a person can setup Reef-pi for easy editing basically like an Arduino, as in make a small change, upload and view? I mostly use Visual Studio Code on windows. I'm dying to see what makes it tick and to know if I have any chance of contributing to it. As a challenge these are the two things I would like to see if I could pull off.

The first it appears a dosing pump can only be activated with a schedule and calibration, it would be nice to trigger one at any given time using a macro. Looks like they are only enabled/disabled via the macro.

The other is with the equipment tab, thinking an option when you add a piece of equipment to select AC or DC, if DC is selected you can set a min/max speed. I see this useful for pumps, fans, lights etc. that you might only want to run based on sensor feedback and need to change the speed. Its fine now but everything runs at 100%.
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,825
Reaction score
17,041
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
Is there a way a person can setup Reef-pi for easy editing basically like an Arduino, as in make a small change, upload and view? I mostly use Visual Studio Code on windows. I'm dying to see what makes it tick and to know if I have any chance of contributing to it. As a challenge these are the two things I would like to see if I could pull off.

The first it appears a dosing pump can only be activated with a schedule and calibration, it would be nice to trigger one at any given time using a macro. Looks like they are only enabled/disabled via the macro.

The other is with the equipment tab, thinking an option when you add a piece of equipment to select AC or DC, if DC is selected you can set a min/max speed. I see this useful for pumps, fans, lights etc. that you might only want to run based on sensor feedback and need to change the speed. Its fine now but everything runs at 100%.
reef-pi is more involved compared to Arduino or circuit python. Its more similar to how web services are written to power cloud-based services, websites etc with a combination frontend, backend technology and the development practices involve continuous integration, code review etc. You can get close to very similar to arduino like experience in development, where you can see the effect of your code change instantly, but it's with limited capability and running on your local laptop/workstation mostly. I have used Pi for some development, but it's morbidly slow for most development tools.
 

robsworld78

Well-Known Member
View Badges
Joined
Feb 14, 2020
Messages
952
Reaction score
1,280
Location
Edmonton, Canada
Rating - 0%
0   0   0
reef-pi is more involved compared to Arduino or circuit python. Its more similar to how web services are written to power cloud-based services, websites etc with a combination frontend, backend technology and the development practices involve continuous integration, code review etc. You can get close to very similar to arduino like experience in development, where you can see the effect of your code change instantly, but it's with limited capability and running on your local laptop/workstation mostly. I have used Pi for some development, but it's morbidly slow for most development tools.

Thanks, it does look complicated, that's what scared from the Pi. At some point I'm still going to give it a shot, gotta learn somehow.

On a different note, I just hooked up one of these pH circuits, it works and I get -8036 which sounds ok based on what I've read but how do I get it to show an actual pH value?

https://github.com/reef-pi/pH-Board
 

AbjectMaelstroM

Valuable Member
View Badges
Joined
Jul 21, 2019
Messages
1,526
Reaction score
1,810
Location
RVA
Rating - 100%
1   0   0
Thanks, it does look complicated, that's what scared from the Pi. At some point I'm still going to give it a shot, gotta learn somehow.

On a different note, I just hooked up one of these pH circuits, it works and I get -8036 which sounds ok based on what I've read but how do I get it to show an actual pH value?

https://github.com/reef-pi/pH-Board

To get a Ph reading the probe needs to be calibrated.
 

robsworld78

Well-Known Member
View Badges
Joined
Feb 14, 2020
Messages
952
Reaction score
1,280
Location
Edmonton, Canada
Rating - 0%
0   0   0
Last edited:

AbjectMaelstroM

Valuable Member
View Badges
Joined
Jul 21, 2019
Messages
1,526
Reaction score
1,810
Location
RVA
Rating - 100%
1   0   0
Thanks, would that still be using this method?

https://www.reef2reef.com/threads/r...troller-based-on-raspberry-pi.289256/page-556

Not sure what this at the end means though?

you'll need a build from master.

Also where would I put the calibration.json file?

All you need to do to calibrate is get your hands on reference solution for example 7ph and 10ph, go into the pH tab in reefpi, make sure probe is disabled then click on the calibrate button. It will bring up a promp with two reference fields: Midpoint and Endpoint, enter the value if the calibration solution in the box, put your probe into that solution, wait for the current reading value to stabilize and then hit Run. Repeat for the second reference fluid. That's it.
 

robsworld78

Well-Known Member
View Badges
Joined
Feb 14, 2020
Messages
952
Reaction score
1,280
Location
Edmonton, Canada
Rating - 0%
0   0   0
lol oh boy, just spent 2 hours searching. I tried with mid which changed the pH but it was still wrong, never thought to try both. Thanks for your help.
 

AbjectMaelstroM

Valuable Member
View Badges
Joined
Jul 21, 2019
Messages
1,526
Reaction score
1,810
Location
RVA
Rating - 100%
1   0   0
lol oh boy, just spent 2 hours searching. I tried with mid which changed the pH but it was still wrong, never thought to try both. Thanks for your help.

Just make sure the reading settles before you hit run (can take a min or two). Also, rinse the probe in rodi water between two fluids.
 

robsworld78

Well-Known Member
View Badges
Joined
Feb 14, 2020
Messages
952
Reaction score
1,280
Location
Edmonton, Canada
Rating - 0%
0   0   0
How stable of readings should one expect with this pH circuit?

https://github.com/reef-pi/pH-Board

I'm getting a range from 8.11 to 8.18, almost every reading the 100th is different by 3-4 points.

@Michael Lane is your circuit different? I noticed in the description it said it has a microcontroller but on the schematic I see the same components as the link above.
 
Back
Top