Page 1 of 1

Question - default(?) for TidalSwellMode or Reefcrest

Posted: Sun Jan 22, 2017 3:00 pm
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));

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

Posted: Mon Jan 23, 2017 4:47 am
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

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

Posted: Mon Jan 23, 2017 10:05 am
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!

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

Posted: Wed Feb 01, 2017 1:50 pm
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.

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

Posted: Wed Feb 01, 2017 2:07 pm
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

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

Posted: Sat Feb 04, 2017 10:41 am
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;
	}