Page 1 of 1

wave maker port question

Posted: Wed Mar 11, 2015 6:43 am
by saf1
Does it matter what ports are used for wave maker functions or when they can be turned on or off?

I have four power heads that I'm trying to control at different times of day. During the day I want the larger ports on with a random on/off time. They work fine on ports 5 and 6. However, the smaller power heads on port 7 and 8 seem to come on all the time and never turn off. I'm pretty sure it is my code but figured I would check to see if maybe I'm also being over written or using something incorrectly. Once the smaller ports turn on, on 7 and 8 ports they never turn off.

Thanks.
-scottf

Code sample:
ReefAngel.StandardLights( Port2,9,0,21,0 );
ReefAngel.StandardLights( Port4,9,0,21,0 ); // LED fans

ReefAngel.WavemakerRandom(Port5,25,60);
ReefAngel.WavemakerRandom(Port6,25,60);
ReefAngel.WavemakerRandom(Port7,25,60);
ReefAngel.WavemakerRandom(Port8,25,60);


////// Place your custom code below here

// Turn Port5 on/off random cycles that lasts from 25 to 60 secs
ReefAngel.Relay.Set(Port6,!ReefAngel.Relay.Status(Port5));
ReefAngel.Relay.Set(Port8,!ReefAngel.Relay.Status(Port7));

// Turn Port6 on/off on opposite cycle as Port 5
// This will turn off both relays at a set time

if (hour()>=20 || hour()<10)
{
ReefAngel.Relay.Off(Port5); // large power head
ReefAngel.Relay.Off(Port6); // large power head
ReefAngel.Relay.Off(Port4); // LED fans
ReefAngel.Relay.On(Port7); // Small power head for night
ReefAngel.Relay.On(Port8); // Small power head for night
}

Re: wave maker port question

Posted: Wed Mar 11, 2015 6:55 am
by lnevo
Port 5 and 6 have dampening circuitry to allow for the quick on/off. The other ports do not. I'm not sure what the recommended frequency would be for other ports.

Re: wave maker port question

Posted: Wed Mar 11, 2015 7:37 am
by rimai
WavemakerRandom can only be used once.
It uses a global timer trigger.
This can to be removed:

Code: Select all

ReefAngel.WavemakerRandom(Port7,25,60);
ReefAngel.WavemakerRandom(Port8,25,60);
Then change this:

Code: Select all

ReefAngel.WavemakerRandom(Port5,25,60);
ReefAngel.WavemakerRandom(Port6,25,60);
To this:

Code: Select all

ReefAngel.WavemakerRandom1(Port5,25,60);
ReefAngel.WavemakerRandom2(Port6,25,60);
But like lnevo said. Port 5 and 6 have dampening components.
The powerheads on port 7 and 8 may cause noise problems that will cause your RA to reboot or misbehave.
The only way to find out is trying it.

Re: wave maker port question

Posted: Wed Mar 11, 2015 8:39 am
by saf1
Thanks both of you for the reply.

So can I just turn on ports 7 and 8 after ports 5 and 6 go off for the night?

That way the random relay on/off will stay with port 5 and 6 which run the larger power heads. Then after 8 PM they would shut down and ports 7 and 8 could come on and both run without alternating. The smaller power heads do not need to alternate really and I forgot about the dampening circuitry.

If that is possible maybe I'll just do that. As long as I can get the 7 and 8 ports off when the larger ones start alternating although with all 4 and the two alternating it isn't too much flow.

Re: wave maker port question

Posted: Wed Mar 11, 2015 8:55 am
by rimai
Yeah, that is easy :)

Code: Select all

if (hour()>=20 || hour()<10)
 {
 ReefAngel.Relay.Off(Port5); // large power head
 ReefAngel.Relay.Off(Port6); // large power head
 ReefAngel.Relay.Off(Port4); // LED fans
 ReefAngel.Relay.On(Port7); // Small power head for night
 ReefAngel.Relay.On(Port8); // Small power head for night
 }
else
{
ReefAngel.WavemakerRandom1(Port5,25,60);
ReefAngel.WavemakerRandom2(Port6,25,60);
ReefAngel.Relay.Off(Port7);
ReefAngel.Relay.Off(Port8);
}

Re: wave maker port question

Posted: Wed Mar 11, 2015 9:06 am
by saf1
Thanks.

Not sure why I didn't think of that :) Thank you both again because you probably saved me another headache if I used ports 7 and 8 incorrectly.