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

bishoptf

Valuable Member
View Badges
Joined
Jan 1, 2019
Messages
1,349
Reaction score
1,724
Location
Missouri
Rating - 0%
0   0   0
Yup! Thanks for the welcome all. This is a great project and community. I will definitely share my build soon :)

Welcome I'm a freshwater build also, I don't have my co2 regulator built completely but that is my goal. I do have three temp probes and my heaters running as a fail safe and my lights running from reef-pi. I want to add a ph sensor as a failsafe for co2 when I start running co2.

Welcome!
 

bishoptf

Valuable Member
View Badges
Joined
Jan 1, 2019
Messages
1,349
Reaction score
1,724
Location
Missouri
Rating - 0%
0   0   0
I know I should ask this in another thread but is it possible to do a nano saltwater build on a budget? Looking at all of the builds for you guys really has me intrigued, I already have a RODI setup that I use for my freshwater setup but seeing all the pretty pictures starts the wheels turning in my mind, but it sure does seem to be on a whole nother level.

:)
 

dmolavi

Well-Known Member
View Badges
Joined
Jan 3, 2015
Messages
509
Reaction score
646
Location
United States
Rating - 0%
0   0   0
The ADJ Power strips have the ability to chain multiple strips together. Does anyone know if there is a way to leverage that for use with the Reef-Pi?

You're really limited by the number of available GPIO pins. The 'standard' Pi only makes 20-something out of the 54 GPIO pins available to the user (the BCM SOC has 54 GPIO. I think the compute module makes 30-something available). It would depend on what other functionality you had implemented on your Reef-Pi, which dictates how many GPIO are available. You could always use a Pi-zero and 'cluster' the Reef-Pi, I suppose...use one Pi for power strips, and another Pi for everything else.
 

dmolavi

Well-Known Member
View Badges
Joined
Jan 3, 2015
Messages
509
Reaction score
646
Location
United States
Rating - 0%
0   0   0
I know I should ask this in another thread but is it possible to do a nano saltwater build on a budget? Looking at all of the builds for you guys really has me intrigued, I already have a RODI setup that I use for my freshwater setup but seeing all the pretty pictures starts the wheels turning in my mind, but it sure does seem to be on a whole nother level.

:)

Absolutely. My first saltwater was a 20-gallon nano. Got the tank at the Petco Dollar-per-gallon sale, picked up the matching stand for cheap. Small size = small pumps, etc. I think the most expensive part was my lights, because I had coral. If you're going FOWLR, you don't need spendy lights, either. I have some equipment from that setup leftover, too (HOB skimmer, Koralia pumps)...if you pull the trigger, PM me and i can send pix if you'd like to buy them.
 

stefanm

Active Member
View Badges
Joined
Oct 11, 2017
Messages
360
Reaction score
397
Location
Sweden
Rating - 0%
0   0   0
A couple of quick questions, how do I set the time zone correctly, do I need to do it on the console or within reef pi?

Secondly how to set a static ip address? mine keeps changing depending on how many devices are connected to the router.
 

Ryan115

Well-Known Member
View Badges
Joined
Dec 28, 2010
Messages
586
Reaction score
1,085
Location
Mississippi
Rating - 0%
0   0   0
You're really limited by the number of available GPIO pins. The 'standard' Pi only makes 20-something out of the 54 GPIO pins available to the user (the BCM SOC has 54 GPIO. I think the compute module makes 30-something available). It would depend on what other functionality you had implemented on your Reef-Pi, which dictates how many GPIO are available. You could always use a Pi-zero and 'cluster' the Reef-Pi, I suppose...use one Pi for power strips, and another Pi for everything else.
I believe one of the upcoming additions to reef-pi will allow multiple PCA9685s and will allow the individual PWM pins to be set as Output pins (set at 0% or 100% duty cycle).
These could be used to control the triggering of extra relays.
If that is the case, you could control upwards of 1000 relays on the single system.
@Ranjib, is all of this correct for the future upgrades?
 

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
You're really limited by the number of available GPIO pins. The 'standard' Pi only makes 20-something out of the 54 GPIO pins available to the user (the BCM SOC has 54 GPIO. I think the compute module makes 30-something available). It would depend on what other functionality you had implemented on your Reef-Pi, which dictates how many GPIO are available. You could always use a Pi-zero and 'cluster' the Reef-Pi, I suppose...use one Pi for power strips, and another Pi for everything else.

Makes sense. I'm maxing out my power strip, but I don't have anything else that needs to be powered/controlled. Do you know how those pin assignments work through the daisy chain configuration that ADJ allows, or would they both need their own dedicated DB9 connector?
 

stefanm

Active Member
View Badges
Joined
Oct 11, 2017
Messages
360
Reaction score
397
Location
Sweden
Rating - 0%
0   0   0
I believe one of the upcoming additions to reef-pi will allow multiple PCA9685s and will allow the individual PWM pins to be set as Output pins (set at 0% or 100% duty cycle).
These could be used to control the triggering of extra relays.
If that is the case, you could control upwards of 1000 relays on the single system.
@Ranjib, is all of this correct for the future upgrades?

I thought they could be daisy chained anyway?
 

dmolavi

Well-Known Member
View Badges
Joined
Jan 3, 2015
Messages
509
Reaction score
646
Location
United States
Rating - 0%
0   0   0
A couple of quick questions, how do I set the time zone correctly, do I need to do it on the console or within reef pi?

Secondly how to set a static ip address? mine keeps changing depending on how many devices are connected to the router.

You can SSH into your pi and use raspi-config to set the timezone, I believe.

WRT a static IP, you have 2 options - one is via the Pi itself (if you have the desktop version of Raspian, use the network config gui. if not, the 'ip addr' command is your friend). Or, you can go into your router and statically assign an IP to your Pi's MAC address, so that anytime it queries for an address, the router will give it the same one each time. Refer to your router documentation on how to do that (usually it's "MAC binding" or "DHCP reservations" or some such similar term).
 

Ryan115

Well-Known Member
View Badges
Joined
Dec 28, 2010
Messages
586
Reaction score
1,085
Location
Mississippi
Rating - 0%
0   0   0
I thought they could be daisy chained anyway?
The i2c PCA9685s can be daisy chained, but running multiple devices is not currently supported in reef-pi. Each device would also need it own address, which is also not currently supported, reef-pi defaults to the standard Adafruit PCA9685 address.
 
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 believe one of the upcoming additions to reef-pi will allow multiple PCA9685s and will allow the individual PWM pins to be set as Output pins (set at 0% or 100% duty cycle).
These could be used to control the triggering of extra relays.
If that is the case, you could control upwards of 1000 relays on the single system.
@Ranjib, is all of this correct for the future upgrades?
yes
 

theatrus

Valuable Member
View Badges
Joined
Mar 26, 2016
Messages
2,223
Reaction score
3,632
Location
Sacramento, CA area
Rating - 0%
0   0   0
Makes sense. I'm maxing out my power strip, but I don't have anything else that needs to be powered/controlled. Do you know how those pin assignments work through the daisy chain configuration that ADJ allows, or would they both need their own dedicated DB9 connector?

You can daisy chain, but both relays will simply fire on the same control signal.

I’m knocking up some extender modules for 3.0, including more relay control. The multiple PCA solution will also work with 3.0 as multiple PCA adapters can be supported.
 

b4tn

Valuable Member
View Badges
Joined
Jun 17, 2015
Messages
1,673
Reaction score
2,244
Location
Columbia MD
Rating - 0%
0   0   0
You can daisy chain, but both relays will simply fire on the same control signal.

I’m knocking up some extender modules for 3.0, including more relay control. The multiple PCA solution will also work with 3.0 as multiple PCA adapters can be supported.

This will be super cool. I’m looking forward to this as an easy way to add a bunch of outlets.
 

ScottF83

Community Member
View Badges
Joined
Apr 15, 2016
Messages
72
Reaction score
80
Rating - 0%
0   0   0

Bigtrout

Valuable Member
View Badges
Joined
Dec 16, 2018
Messages
1,189
Reaction score
2,826
Rating - 0%
0   0   0
Ok wiring up my pwm to lights...my pca9685 puts out 1.577 khz and wont change, did i miss something in configuration...
 
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

Bigtrout

Valuable Member
View Badges
Joined
Dec 16, 2018
Messages
1,189
Reaction score
2,826
Rating - 0%
0   0   0
Look on the configuration page, should be a setting for the Pi pwm and the pca9685 frequency. :)
I have it set to 200hz, but its definitely not putting that out. It will only put out 1577hz and wont change, and thats too fast to dim the lights with the modules im using...i need to be abke to set it lower than 1khz...



Testing voltage at the pca pins im getting a voltage change corresponding with the slider setting...99 percent =3.27v, 50 perxent=1.64v etc...but my meter reads 1.577 khz and im sure its accurate...

Theres not something needed in config txt for the pca is there?
I see it on the i2c bus at address 40 and 70

I have deleted all lights, associated jacks and lighting and disabled pca9685, rebooted and added back in and get the same results

Do i need to start over maybe and delete reef pi and redo my card from scratch
 

Bigtrout

Valuable Member
View Badges
Joined
Dec 16, 2018
Messages
1,189
Reaction score
2,826
Rating - 0%
0   0   0
I have it set to 200hz, but its definitely not putting that out. It will only put out 1577hz and wont change, and thats too fast to dim the lights with the modules im using...i need to be abke to set it lower than 1khz...



Testing voltage at the pca pins im getting a voltage change corresponding with the slider setting...99 percent =3.27v, 50 perxent=1.64v etc...but my meter reads 1.577 khz and im sure its accurate...

Theres not something needed in config txt for the pca is there?
I see it on the i2c bus at address 40 and 70

I have deleted all lights, associated jacks and lighting and disabled pca9685, rebooted and added back in and get the same results

Do i need to start over maybe and delete reef pi and redo my card from scratch
Everything else works...set light to 0 it goes off, set to anything else it comes on...because 1.577khz is too fast for my mosfet modules

I see the default in the reef pi pca driver is 1500hz which is what im seeing...hmm
 
Last edited:
Back
Top