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

MikeSpike

Community Member
View Badges
Joined
Jan 2, 2019
Messages
88
Reaction score
54
Rating - 0%
0   0   0
The relays are all fed of an independent 5V power source. Most of them work fine it’s just 2 of them. They do make a clicking sound when I turn them off but not as loud as the clicking sound made by the other relays that actually work
 

rushbattle

Valuable Member
View Badges
Joined
Oct 19, 2016
Messages
1,347
Reaction score
1,628
Location
Equality
Rating - 0%
0   0   0
The relays are all fed of an independent 5V power source. Most of them work fine it’s just 2 of them. They do make a clicking sound when I turn them off but not as loud as the clicking sound made by the other relays that actually work
Is there anything plugged into the outlets?
 

Halo_003

Community Member
View Badges
Joined
Apr 13, 2016
Messages
99
Reaction score
74
Rating - 0%
0   0   0
4 individual channels? No, as I believe pi only has 2 of its own pwm pins. However you could tie in multiple channels to one pin, but as I said you could only control 2 independently of each other. If that makes sense.

Thanks for the insight! One thing I came across was this: https://raspberrypi.stackexchange.c...i-use-the-gpio-for-pulse-width-modulation-pwm

Would software PWM over GPIO work for this? If so that would be cool, if not I think I could directly solder to a PCA9685 since the pins would probably be too tall.
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,876
Reaction score
16,680
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0

BenB

Active Member
View Badges
Joined
Jun 11, 2019
Messages
118
Reaction score
152
Rating - 0%
0   0   0
After fully testing my reef pi power controller I installed it into my tank cupboard. However for some reason now some of the relays don’t go ‘off’ ??? I can move the switch of on the equipment tab but the actual plug stays live? Is this a dodgy relay?? Any suggestions appreciated.

image.jpg

I Like the display with the power consumption values, how did you do that? You have a link where is explained how to make that???
 

Halo_003

Community Member
View Badges
Joined
Apr 13, 2016
Messages
99
Reaction score
74
Rating - 0%
0   0   0
For controlling outlet? Pi has two hardawre pwm pins that you can use with reef-pi without pca9685. We generally use it for lights

This is probably an ignorant question so bear with me. Is there a reason we can’t use software PWM on the other GPIO pins to drive the light channels?
 

Urtoo

Well-Known Member
View Badges
Joined
Jul 1, 2019
Messages
688
Reaction score
865
Rating - 0%
0   0   0
I believe the jitter and latency is a factor. I believe the same many say RC vehicles, they don’t suggest using pigpio and do suggest using hardware PwM board for control.
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,876
Reaction score
16,680
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
This is probably an ignorant question so bear with me. Is there a reason we can’t use software PWM on the other GPIO pins to drive the light channels?
The current pi ecosystem only exposes two hardware timers. which are then exposed as pwm pins in GPIO18 and 19. Those can be remapped to some other pins, but as far as i can tell two is the limit. You can ofcourse do software pwm on any GPIO, but we dont do that in reef-pi, due to myriad if performance and stability issues.
 

MikeSpike

Community Member
View Badges
Joined
Jan 2, 2019
Messages
88
Reaction score
54
Rating - 0%
0   0   0
Can you link the relays you used?

Amazon product

and


I Like the display with the power consumption values, how did you do that? You have a link where is explained how to make that???
Thanks! Its just an AC power monitor from amazon. Got the idea from someone else TBH

After researching online - i gave the broken relays some hard bangs which sorted them - put the power controller back together and low and behold another one got stuck. did the same again and then another one.

Seems strange this is happening so often (and they are different brands of board) so don't think it they are faulty. Anyone got any idea why they keep on sticking. Definitely not overloading them. Total draw on my whole system is less than 2A
 

MikeSpike

Community Member
View Badges
Joined
Jan 2, 2019
Messages
88
Reaction score
54
Rating - 0%
0   0   0
I've had this. It is the relay that has welded itself closed. Happened to 3 out of the 8 on a bank of relays.
Yeah, as above some banging released it. But dont know why its happening to so many. Getting me a little worried especially on the auto top off module! what if that relay failed and stayed on!!
 

rushbattle

Valuable Member
View Badges
Joined
Oct 19, 2016
Messages
1,347
Reaction score
1,628
Location
Equality
Rating - 0%
0   0   0
Amazon product

and



Thanks! Its just an AC power monitor from amazon. Got the idea from someone else TBH

After researching online - i gave the broken relays some hard bangs which sorted them - put the power controller back together and low and behold another one got stuck. did the same again and then another one.
Seems strange this is happening so often (and they are different brands of board) so don't think it they are faulty. Anyone got any idea why they keep on sticking. Definitely not overloading them. Total draw on my whole system is less than 2A

Do any of them stick with no load at all?
 

Urtoo

Well-Known Member
View Badges
Joined
Jul 1, 2019
Messages
688
Reaction score
865
Rating - 0%
0   0   0
Yep, those little relay boards can self weld shut, or the metal contact rod inside can get wedged without enough umph to snap open again. Did you test the voltage supplied to the dc relay supply from your controller, make sure that it is being fed proper voltage?
 

MikeSpike

Community Member
View Badges
Joined
Jan 2, 2019
Messages
88
Reaction score
54
Rating - 0%
0   0   0
Yep, those little relay boards can self weld shut, or the metal contact rod inside can get wedged without enough umph to snap open again. Did you test the voltage supplied to the dc relay supply from your controller, make sure that it is being fed proper voltage?

both being fed 5v exactly. A little concerned as above on ATO but also on my titanium heater!
Would prefer to switch out to solid state relays but unfortunately you can’t use them on DC circuits which a lot of my equipment is
 
OP
OP
Ranjib

Ranjib

7500 Club Member
View Badges
Joined
Apr 16, 2016
Messages
9,876
Reaction score
16,680
Location
Pleasant Hill, Concord
Rating - 0%
0   0   0
both being fed 5v exactly. A little concerned as above on ATO but also on my titanium heater!
Would prefer to switch out to solid state relays but unfortunately you can’t use them on DC circuits which a lot of my equipment is
How much dc voltage you are switching ? L293d are pretty good for dc workloads
 

TOP 10 Trending Threads

WHAT AMOUNT OF LIVE ROCK AND SAND SHOULD BE PRIORITIZED FOR OPTIMAL BIODIVERSITY/FILTRATION?

  • 100% live rock + bagged sand

    Votes: 38 26.6%
  • 100% dry rock + 100% live sand

    Votes: 48 33.6%
  • 50/50 live/dry rock, 50/50 live/bagged sand

    Votes: 32 22.4%
  • 75% live rock, 25% live sand

    Votes: 15 10.5%
  • 25% live rock, 75% live sand

    Votes: 10 7.0%
Back
Top