Reef Pi Build

ph123uk

Active Member
View Badges
Joined
Jan 3, 2019
Messages
191
Reaction score
303
Rating - 0%
0   0   0
Hold on, are the relays 12v or 5v - earlier in the thread you put 12v relay, but the above seems like its 5v?

Think i'm going to give this a pass sadly, too many components with voltage changes and things I simply don't understand! - thankyou for the effort though, the more I read the more confused I get so probably not a great iea for me to be messing with my only light!

Doesn't help that im in the UK and most components you linked aren't readily available e.g the relay is this one - without a "high / low" - whatever that means, that your link has

https://www.amazon.co.uk/ELEGOO-Channel-Optocoupler-Arduino-Raspberry/dp/B06XK6HCQC/ref=sr_1_6?s=electronics&ie=UTF8&qid=1548153511&sr=1-6&keywords=5v+relay&th=1

Edit: Its also going to cost £60 ($78) (and I already have the pi)

I cant understand why if the Pi has PWM control, I cant just splice into the PWM wire/s on the light and use the pi to control that :( (and keep everything else inside my light unit)
 
Last edited:
OP
OP
Diamond1

Diamond1

Valuable Member
View Badges
Joined
Oct 17, 2013
Messages
1,368
Reaction score
1,911
Location
Cleveland Ohio
Rating - 0%
0   0   0
Hold on, are the relays 12v or 5v - earlier in the thread you put 12v relay, but the above seems like its 5v?

Think i'm going to give this a pass sadly, too many components with voltage changes and things I simply don't understand! - thankyou for the effort though, the more I read the more confused I get so probably not a great iea for me to be messing with my only light!

Doesn't help that im in the UK and most components you linked aren't readily available e.g the relay is this one - without a "high / low" - whatever that means, that your link has

https://www.amazon.co.uk/ELEGOO-Channel-Optocoupler-Arduino-Raspberry/dp/B06XK6HCQC/ref=sr_1_6?s=electronics&ie=UTF8&qid=1548153511&sr=1-6&keywords=5v+relay&th=1

Edit: Its also going to cost £60 ($78) (and I already have the pi)

I cant understand why if the Pi has PWM control, I cant just splice into the PWM wire/s on the light and use the pi to control that :( (and keep everything else inside my light unit)

I started off using 12v relays but switched to 5v relays.
The problem with running without the relays is powering on the fixture and the fact that the drivers are not dimmable to 0%. The drivers start off at 10% when powered up via the relays then the pwm controls the ramping from there. You should be able to use any 5v 2 channel relay it doesn't have to be the ones I linked. I'm not sure about the vipraspectras but my OR t247 doesn't have enough room inside the fixture for adding the components inside.
@Jonathan Troutt modded his Viprspectras to use with reef-pi maybe he could say if there's enough room inside.

These relays would work just fine and cost 3 pounds.
https://www.ebay.co.uk/itm/5V-1-2-4...aaf76edcb:m:mdbiogK3bG3MfWb_sjDpLvw:rk:2:pf:0
 
OP
OP
Diamond1

Diamond1

Valuable Member
View Badges
Joined
Oct 17, 2013
Messages
1,368
Reaction score
1,911
Location
Cleveland Ohio
Rating - 0%
0   0   0
OP
OP
Diamond1

Diamond1

Valuable Member
View Badges
Joined
Oct 17, 2013
Messages
1,368
Reaction score
1,911
Location
Cleveland Ohio
Rating - 0%
0   0   0
The power supply you linked requires a 12v power supply to convert power from 12v to 5v. The power supply I use requires 110v and converts that to 5v.
If you want to simplify everything you can just use a raspberry pi power supply to run both the pi and the relay and not worry about the meanwell. That gets you down to 1 power supply for everything.
 

ph123uk

Active Member
View Badges
Joined
Jan 3, 2019
Messages
191
Reaction score
303
Rating - 0%
0   0   0
So in my case I need a PSU which converts 230v to 5v - ok, I think I get that - as in mains power converted to 5v for powering the Pi and most other ancillaries.

Or I could get a 230 - 12v PSU and use a buckpuck dialled down to 5v - which also makes me able to use the PSU for other items too? e.g. A 12v Led strip or similar

Did I grasp that correctly?
 
OP
OP
Diamond1

Diamond1

Valuable Member
View Badges
Joined
Oct 17, 2013
Messages
1,368
Reaction score
1,911
Location
Cleveland Ohio
Rating - 0%
0   0   0
This one in the 4 amp configuration would be great. https://www.ebay.co.uk/itm/2-x-DC5V...001d165c:m:mBlQBseWTyCGaqL0GuWXAfA:rk:27:pf:0

So in my case I need a PSU which converts 230v to 5v - ok, I think I get that - as in mains power converted to 5v for powering the Pi and most other ancillaries.

Or I could get a 230 - 12v PSU and use a buckpuck dialled down to 5v - which also makes me able to use the PSU for other items too? e.g. A 12v Led strip or similar

Did I grasp that correctly?

Correct. It all depends on what you want your unit to control.
 

crusso1993

7500 Club Member
View Badges
Joined
Oct 21, 2018
Messages
8,671
Reaction score
44,649
Location
SW, FL, USA
Rating - 0%
0   0   0
OP
OP
Diamond1

Diamond1

Valuable Member
View Badges
Joined
Oct 17, 2013
Messages
1,368
Reaction score
1,911
Location
Cleveland Ohio
Rating - 0%
0   0   0
Here is the basic circuit construction I used to control my lights. GPIO 18 and 19 are the Rpi pwm channels and I used gpio pins 20 and 21 to control the relays. The relays are powered from the 5v rail on the right side of the PI hat. The grounds from the light are actually run from the ground on the 5v rail not the 3.3v rail.
In the second pic ignore the buck converter. I used that during testing, the actual power for the pi and relays comes from the meanwell 5v PS.


perma proto pi hat 5 volt relays.png



The wires in the circuit are:
Blue = GPIO 20 & 21 that control the relays
Yellow = GPIO pins 18 & 19 that control pwm to the lights
Black = Ground from the lights
Black and Red (twisted) is the 5v power supply to the relays
Black and Red on the right is the power supply into the board from the meanwell. This supplies power to the pi and the relays.

IMG_4635.JPG
 

Bigtrout

Valuable Member
View Badges
Joined
Dec 16, 2018
Messages
1,189
Reaction score
2,826
Rating - 0%
0   0   0

crusso1993

7500 Club Member
View Badges
Joined
Oct 21, 2018
Messages
8,671
Reaction score
44,649
Location
SW, FL, USA
Rating - 0%
0   0   0
I agree with this fully, I was using wall warts and under load I could watch voltage waver so I went with 2 of the meanwell rs-15-5 and the voltage stays right where I set them and stays steady.

Hard to beat a Meanwell for the money...
 

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,843
Reaction score
17,058
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
I agree with this fully, I was using wall warts and under load I could watch voltage waver so I went with 2 of the meanwell rs-15-5 and the voltage stays right where I set them and stays steady.
That is very interesting. Thank you for sharing, I have some known gremlins in couple of my builds , I’ll re-analyze them from this perspective
 

Bigtrout

Valuable Member
View Badges
Joined
Dec 16, 2018
Messages
1,189
Reaction score
2,826
Rating - 0%
0   0   0
That is very interesting. Thank you for sharing, I have some known gremlins in couple of my builds , I’ll re-analyze them from this perspective
@Ranjib
The problem with most wall warts is, who made them, can you look up specs? With most you can not other than what printed on them. I suspect that most wont put out a good steady voltage at their rated current.
I am a service engineer for a high end cnc machinery company, and their machines only use 2 brands of power supplies, IDEC and Meanwell, if they trust them for critical machinery, I trust them for my aquarium ;)

That being said, the mountable power supplies have much better specs, but if you are having trouble with a build that would be hard to change from a wall wart, Meanwell makes some wall warts with good specs, but they are relatively expensive compared to the RS line of power supplies. Most branded laptop plug in supplies are good but then you need to step down with an lm2596.

At first I used Samsung 5v 2amp wall warts because they were laying around. Upon testing with just a pi zero, and 8 relays on a relay board all powered on, I watched voltage dip from 5.1V to 4.85V. And it would fluctuate while turning relays on and off. The meanwell stayed at 5.099V no matter what I did.
 

Making aqua concoctions: Have you ever tried the Reef Moonshiner Method?

  • I currently use the moonshiner method.

    Votes: 48 20.6%
  • I don’t currently use the moonshiner method, but I have in the past.

    Votes: 4 1.7%
  • I have not used the moonshiner method.

    Votes: 169 72.5%
  • Other.

    Votes: 12 5.2%
Back
Top