Question - default(?) for TidalSwellMode or Reefcrest

Basic / Standard Reef Angel hardware
Post Reply
saf1
Posts: 111
Joined: Thu Jun 28, 2012 1:46 pm

Question - default(?) for TidalSwellMode or Reefcrest

Post by saf1 »

Is there a default minimum for the various DCPump modes or PWM SetDaylight / SetActinic? No matter what I do it seems to start at around 30 when I am setting 40 or higher. The new Jebao successor to the RW is the PP and it seems to stop working when it is at 30 for long. I've tried a few things but no matter what I do I'm always restarting at 30 so figured I would ask.

I've tried a couple things below for example. Right now I'm just running it on Long pulse with each switching on 30 seconds. Thanks.

ReefAngel.DCPump.SetMode( Lagoon, 40, 10);
ReefAngel.PWM.SetDaylight( TidalSwellMode(45,true));
ReefAngel.PWM.SetActinic( TidalSwellMode(45,false));
User avatar
cosmith71
Posts: 1437
Joined: Fri Mar 29, 2013 3:51 pm
Location: Oklahoma City

Re: Question - default(?) for TidalSwellMode or Reefcrest

Post by cosmith71 »

Add this under setup. Change the 20 to whatever you want the bottom limit to be.

Code: Select all

  ReefAngel.DCPump.Threshold=20;          // Set lower limits for Jebao pumps
--Colin
saf1
Posts: 111
Joined: Thu Jun 28, 2012 1:46 pm

Re: Question - default(?) for TidalSwellMode or Reefcrest

Post by saf1 »

cosmith71 wrote:Add this under setup. Change the 20 to whatever you want the bottom limit to be.

Code: Select all

  ReefAngel.DCPump.Threshold=20;          // Set lower limits for Jebao pumps
--Colin
Thanks. Wasn't aware of that option but sure I missed it somewhere. Will give that a try tonight once I get back home.

Appreciate it!
saf1
Posts: 111
Joined: Thu Jun 28, 2012 1:46 pm

Re: Question - default(?) for TidalSwellMode or Reefcrest

Post by saf1 »

Wanted to say thanks, that did the trick.

I'm wondering if there are other tips or tricks I should find. I was testing some code last night with ReefCrest and I had it set to ReefCrest, 43, 2 thinking 43 was the base speed and it would go up or down by 2 points (40 - 45). Yet when I looked at the portal it was has high as 63 and 31 low. Didn't make any sense because the DC Pump showed the proper mode, Reef Crest, and speed of 43% and duration of 2.

Thanks again for that line of code.
User avatar
cosmith71
Posts: 1437
Joined: Fri Mar 29, 2013 3:51 pm
Location: Oklahoma City

Re: Question - default(?) for TidalSwellMode or Reefcrest

Post by cosmith71 »

You're welcome!

I'm not sure about the portal weirdness. I do know that some of the DC Pump modes were kind of shoehorned in and while they work fine, the values look strange sometimes.

--Colin
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Question - default(?) for TidalSwellMode or Reefcrest

Post by rimai »

If you use the DCPump.SetMode, it is hard coded to be 20 offset on reefcrest and 10 offset on lagoon.
If you want to have fine control over the dimming completely, you will have to manually set the channels with ReefAngel.PWM.SetDaylight and ReefAngel.PWM.SetActinic functions.
This is the relevant code in the libraries:

Code: Select all

	case Lagoon:
	{
		SyncSpeed=ReefCrestMode(DCPump.Speed,10,true);
		AntiSyncSpeed=ReefCrestMode(DCPump.Speed,10,false);
		break;
	}
	case ReefCrest:
	{
		SyncSpeed=ReefCrestMode(DCPump.Speed,20,true);
		AntiSyncSpeed=ReefCrestMode(DCPump.Speed,20,false);
		break;
	}
Roberto.
Post Reply