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

brandon clow

Active Member
View Badges
Joined
Oct 22, 2017
Messages
121
Reaction score
155
Rating - 0%
0   0   0
I am only using the PCA for the PWM side of things. All of the other wires are running from pi to PCA. I should be running the PCA input ground to the Mean Well PSU as well?

LDD.png
 

Bigtrout

Valuable Member
View Badges
Joined
Dec 16, 2018
Messages
1,189
Reaction score
2,826
Rating - 0%
0   0   0
I am only using the PCA for the PWM side of things. All of the other wires are running from pi to PCA. I should be running the PCA input ground to the Mean Well PSU as well?

LDD.png
No you need a wire from the PCA pwm output ground to the light PSU ground.
What you are doing is making sure both grounds are common to each other so voltages have a common reference point. The meanwell driver takes +3.3v on the pwm pin to work. + 3.3v above its GND. When you send a seperate signal to the LDD that signal is referenced to what? Its not referenced to anything. By connecting the PCA output GND to the GND of the light PSU that +3.3 volts is now referenced to the LDD gnd.
Without a common reference point the PWM was a "floating" signal and may have been your problem.
 
Last edited:

brandon clow

Active Member
View Badges
Joined
Oct 22, 2017
Messages
121
Reaction score
155
Rating - 0%
0   0   0
No you need a wire from the PCA pwm output ground to the light PSU ground.
What you are doing is making sure both grounds are common to each other so voltages have a common reference point. The meanwell driver takes +3.3v on the pwm pin to work. + 3.3v above its GND. When you send a seperate signal to the LDD that signal is referenced to what? Its not referenced to anything. By connecting the PCA output GND to the GND of the light PSU that +3.3 volts is now referenced to the LDD gnd.
Without a common reference point the PWM was a "floating" signal and may have been your problem.


I did this and it works great, no more issue and it seems the general output is now increased by quite a bit per my par meter/visually! Thanks!
 

Bigtrout

Valuable Member
View Badges
Joined
Dec 16, 2018
Messages
1,189
Reaction score
2,826
Rating - 0%
0   0   0
Im good on the electronic end of things with reef pi, but I do have a software question. Can reef pi be setup to interface to IFFT or home assistant or the like?
Would be awesome to tell Alexa, im going to feed my fish, and have a macro started to shut off my filters for a time...etc
 

b4tn

Valuable Member
View Badges
Joined
Jun 17, 2015
Messages
1,673
Reaction score
2,244
Location
Columbia MD
Rating - 0%
0   0   0
Im good on the electronic end of things with reef pi, but I do have a software question. Can reef pi be setup to interface to IFFT or home assistant or the like?
Would be awesome to tell Alexa, im going to feed my fish, and have a macro started to shut off my filters for a time...etc

Now that would be cool!
 

b4tn

Valuable Member
View Badges
Joined
Jun 17, 2015
Messages
1,673
Reaction score
2,244
Location
Columbia MD
Rating - 0%
0   0   0
I’m having an issue with macros. Specifically turning off times. I need to switch off my power heads as part of a feeding routine. Since all my power heads are on timers if I select to turn it off it just comes back on after 30 seconds or so. I built a macro to turn off all my power head timers then turn them back on after 5 seconds to test and when I hit run nothing happens. Does this function not work yet?
 
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
Im good on the electronic end of things with reef pi, but I do have a software question. Can reef pi be setup to interface to IFFT or home assistant or the like?
Would be awesome to tell Alexa, im going to feed my fish, and have a macro started to shut off my filters for a time...etc
There’s api , so you can do pretty much anything you want. I know there are reef-pi google home assistant integration out there
 
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’m having an issue with macros. Specifically turning off times. I need to switch off my power heads as part of a feeding routine. Since all my power heads are on timers if I select to turn it off it just comes back on after 30 seconds or so. I built a macro to turn off all my power head timers then turn them back on after 5 seconds to test and when I hit run nothing happens. Does this function not work yet?
I think it’s a bug. Let me take a look
 

dmolavi

Well-Known Member
View Badges
Joined
Jan 3, 2015
Messages
509
Reaction score
646
Location
United States
Rating - 0%
0   0   0
There’s api , so you can do pretty much anything you want. I know there are reef-pi google home assistant integration out there

There is? Where? I use Google Home and it would be cool to have this (maybe...assuming my kids don't get carried away and shut everything off with it).
 

dmolavi

Well-Known Member
View Badges
Joined
Jan 3, 2015
Messages
509
Reaction score
646
Location
United States
Rating - 0%
0   0   0
could someone with no coding experience do this reefpi? sounds interesting.

You don't need any programming knowledge unless you want to modify the existing software baseline to support custom hardware (this is my case). Otherwise, as long as you're comfortable with hardware, you should be good to go.
 
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

Diamond1

Valuable Member
View Badges
Joined
Oct 17, 2013
Messages
1,368
Reaction score
1,914
Location
Cleveland Ohio
Rating - 0%
0   0   0
@Ranjib I don't know if anyone has mentioned this or if you have thought about this for a future release but I was looking around the Adafruit site and came across this TSL2561 light meter chip.
https://www.adafruit.com/product/439
Might be nice to look at for a future module.
It uses I2c interface and 3-5v power/logic control.

Would be nice to have a built in light meter that can give Lux value that could be converted into par. It could give a baseline at the water surface to get a better idea of how much light is getting into a tank and for those of us using t5 lights, it could give a heads up on reduced light output indicating time for a bulb change.
 

Bigtrout

Valuable Member
View Badges
Joined
Dec 16, 2018
Messages
1,189
Reaction score
2,826
Rating - 0%
0   0   0
@Ranjib I don't know if anyone has mentioned this or if you have thought about this for a future release but I was looking around the Adafruit site and came across this TSL2561 light meter chip.
https://www.adafruit.com/product/439
Might be nice to look at for a future module.
It uses I2c interface and 3-5v power/logic control.

Would be nice to have a built in light meter that can give Lux value that could be converted into par. It could give a baseline at the water surface to get a better idea of how much light is getting into a tank and for those of us using t5 lights, it could give a heads up on reduced light output indicating time for a bulb change.
That one only goes to 40,000 lux, reef lights may saturate it.
This one goes to 120,000 lux, still uses i2c may work better for intense reef lighting. Its based on the VEML7700 chip
https://www.dfrobot.com/product-1620.html

Im not a coder but the code to read the DFrobot sensor looks fairly simple its in this wiki:
https://www.dfrobot.com/wiki/index.php/Gravity:_I2C_VEML7700_Ambient_Light_Sensor_SKU:_SEN0228

I migjt add that the DFRobot Gravity P channel mosfet boards I receieved were very well made quality PCBs
 
Last edited:

Diamond1

Valuable Member
View Badges
Joined
Oct 17, 2013
Messages
1,368
Reaction score
1,914
Location
Cleveland Ohio
Rating - 0%
0   0   0
That one only goes to 40,000 lux, reef lights may saturate it.
This one goes to 120,000 lux, still uses i2c may work better for intense reef lighting. Its based on the VEML7700 chip
https://www.dfrobot.com/product-1620.html

Im not a coder but the code to read the DFrobot sensor looks fairly simple its in this wiki:
https://www.dfrobot.com/wiki/index.php/Gravity:_I2C_VEML7700_Ambient_Light_Sensor_SKU:_SEN0228

That does look like a better option for reef tank lights.
 
Back
Top