My Reef pi build - Well, my Viparspectra PWM light controller :D

GK3

Valuable Member
View Badges
Joined
Jan 16, 2017
Messages
1,852
Reaction score
1,339
Location
Cincinnati
Rating - 100%
2   0   0
Where is your uln2803? That I think is your problem. You are trying to run the relays directly off of the raspberry pi outputs which draws too much current thru the pi output pins causing the undervoltage error. The uln2803 is part of the power controller for a few good reasons. It isolates your pi outputs from the relay board AND it handles the higher current relay power draw using only minimal current thru the pi output pins. In effect it "amplifies" the raspberry pi outputs so that you can run higher current items.

I am not sure what relays he is using but they look like the sain smart ones. Don’t those have the transistors in them that use the supplied 5V to power the actual mechanical relay and keep the current from the IO pin to <20 ma? I e used these before with Arduino and could power straight from an io pin.
 

GK3

Valuable Member
View Badges
Joined
Jan 16, 2017
Messages
1,852
Reaction score
1,339
Location
Cincinnati
Rating - 100%
2   0   0
This is how I was told to run the reefpi :( - the relays are 5v ones - should I use another convertor and run the relays at 12v? will this damage them? - Cheers for the reply - I'm only using it at the moment for light control (or will be when I get it connected up) this is how I have it set up (minus the feeds to the lights so far)

myschematic_bb.jpg

Couple things that would help us troubleshoot with this diagram

1) you switch colors for ground and power which makes it confusing. You start with red being 5vdc and black being ground but switch this on the pi rails. I believe this is just color convention in the diagram and no that you actually have ground and power crossed.

2) It would also help to have labels of what you think everything is so we can see what is going where. This is especially true of the lights because it’s hard to tell what is supposed to be what signal.
 

Bigtrout

Valuable Member
View Badges
Joined
Dec 16, 2018
Messages
1,189
Reaction score
2,826
Rating - 0%
0   0   0
I am not sure what relays he is using but they look like the sain smart ones. Don’t those have the transistors in them that use the supplied 5V to power the actual mechanical relay and keep the current from the IO pin to <20 ma? I e used these before with Arduino and could power straight from an io pin.
I saw that after he posted the fritzing pics.
Hes getting the error without relays hooked up so may be a buckpuck problem or a bad pi
 

Des Westcott

Well-Known Member
View Badges
Joined
May 29, 2018
Messages
646
Reaction score
1,035
Location
Durban - South Africa
Rating - 0%
0   0   0
Just a thought here......... I have made a light controller out of a PiZero, and I didn't use relays at all. I just used the PWM signal from the Pi (two channels) to dim the lights. PWM of zero was "off" and anything else was on at different levels.
 
OP
OP
ph123uk

ph123uk

Active Member
View Badges
Joined
Jan 3, 2019
Messages
191
Reaction score
303
Rating - 0%
0   0   0
Sorted it now it seems, as soon as I went headless and unplugged my Wireless / Bluetooth keyboard and mouse combo - I no longer get the error - presume the puck isn't giving the rated 3a MAX or even the 2a its meant to, but as long as its stable, I'm happy now. Will still pop a multimeter on it and measure the amps this weekend anyway!
 

Bigtrout

Valuable Member
View Badges
Joined
Dec 16, 2018
Messages
1,189
Reaction score
2,826
Rating - 0%
0   0   0
Sorted it now it seems, as soon as I went headless and unplugged my Wireless / Bluetooth keyboard and mouse combo - I no longer get the error - presume the puck isn't giving the rated 3a MAX or even the 2a its meant to, but as long as its stable, I'm happy now. Will still pop a multimeter on it and measure the amps this weekend anyway!
Thats why the buckpucks can be a crapshoot. They probably put out half the current that the specs say, if that. But as long as its stable now, should be just fine!
 
OP
OP
ph123uk

ph123uk

Active Member
View Badges
Joined
Jan 3, 2019
Messages
191
Reaction score
303
Rating - 0%
0   0   0
Well oh my, all sorted, got it working, wiring colours were different on my drivers but overall really easy and works well!

Now, going to get it all in a nice little box and get everything soldered to some db9 connectors.

Quick video to show functionality, did relatively big "jumps" to show it g happy :D

 

GK3

Valuable Member
View Badges
Joined
Jan 16, 2017
Messages
1,852
Reaction score
1,339
Location
Cincinnati
Rating - 100%
2   0   0
Well oh my, all sorted, got it working, wiring colours were different on my drivers but overall really easy and works well!

Now, going to get it all in a nice little box and get everything soldered to some db9 connectors.

Quick video to show functionality, did relatively big "jumps" to show it g happy :D



So what was the final issue? Just wiring?
 

trackerit

Community Member
View Badges
Joined
Apr 11, 2019
Messages
71
Reaction score
137
Rating - 0%
0   0   0
As above, was lack of amps to the pi, from the buck puck - once I removed the Bluetooth Keyboard and mouse controller from the USB and went headless, all problems solved :)
So the wiring original works? What is the schematics?
 
OP
OP
ph123uk

ph123uk

Active Member
View Badges
Joined
Jan 3, 2019
Messages
191
Reaction score
303
Rating - 0%
0   0   0
Yea, the original wiring works fine :)

Wiring guide on the first page :) - I can do a more comprehensive one when I get 2 mins - as my driver wire colours were different (but the PCB was labelled so no worries)
 
OP
OP
ph123uk

ph123uk

Active Member
View Badges
Joined
Jan 3, 2019
Messages
191
Reaction score
303
Rating - 0%
0   0   0
Ok, so here some pics, I've built the reefpi into the light fixture itself! - noted the wiring as requested :)

Viparspectra timer board, I left this in as I didn't want a big hole, also, if I ever sell the light, I can reconnect it back up properly:

IMG_20190524_100851.jpg


This directly correlates with the plug from the driver, I simply used little jumper cables pushed into the plug and secured with electricians tape.

IMG_20190524_100903.jpg


Couple of pics of the internals of the Vipar! As I understand it, not all have heatsinks and quiet fans :)

IMG_20190524_100909.jpg

IMG_20190524_100914.jpg


Power cable fed into the rear of the light via a grommet plug:

IMG_20190524_105903.jpg


All connected up and in the process of securing to the light, didn't get a pic of it all tidy and cable tied as I was excited:

IMG_20190524_105916.jpg


And now mounted, will tidy up the cabling once I have verified I have no problems, for now, all working as it should on Wifi.

IMG_20190524_114028.jpg
 
OP
OP
ph123uk

ph123uk

Active Member
View Badges
Joined
Jan 3, 2019
Messages
191
Reaction score
303
Rating - 0%
0   0   0
@Ranjib How come I cant get both Light schedule graphs on the same "graph" I have to have 2 separate ones on the dashboard - There must be a way to do it as I have seen pictures and others doing it somehow - when I configure my dashboard I select "light" but then it forces me to choose just one channel
 

Creating a strong bulwark: Did you consider floor support for your reef tank?

  • I put a major focus on floor support.

    Votes: 60 39.7%
  • I put minimal focus on floor support.

    Votes: 34 22.5%
  • I put no focus on floor support.

    Votes: 51 33.8%
  • Other.

    Votes: 6 4.0%
Back
Top