Page 1 of 1

Actinics not intensifying at night

Posted: Wed Aug 22, 2012 6:50 pm
by Seagals
Hey all, looking for some help - I have the RA+ and i am using the RA wizard but I am having some issues on the ramp down lighting. It seem that the actinics are not getting bluer or the whites are not turning down at night. It seems like the color stays constant all day. I have confirmed the blues and whites are on.

Any advice is appreciated, thanks

The code is as follows:

#include <ReefAngel_Features.h>
#include <Globals.h>
#include <RA_Wifi.h>
#include <Wire.h>
#include <OneWire.h>
#include <Time.h>
#include <DS1307RTC.h>
#include <InternalEEPROM.h>
#include <RA_NokiaLCD.h>
#include <RA_ATO.h>
#include <RA_Joystick.h>
#include <LED.h>
#include <RA_TempSensor.h>
#include <Relay.h>
#include <RA_PWM.h>
#include <Timer.h>
#include <Memory.h>
#include <InternalEEPROM.h>
#include <RA_Colors.h>
#include <RA_CustomColors.h>
#include <Salinity.h>
#include <RF.h>
#include <IO.h>
#include <ORP.h>
#include <AI.h>
#include <ReefAngel.h>

////// Place global variable code below here


////// Place global variable code above here


void setup()
{
// This must be the first line
ReefAngel.Init(); //Initialize controller
// Ports toggled in Feeding Mode
ReefAngel.FeedingModePorts = Port1Bit | Port5Bit | Port6Bit;
// Ports toggled in Water Change Mode
ReefAngel.WaterChangePorts = Port1Bit | Port7Bit | Port8Bit;
// Ports toggled when Lights On / Off menu entry selected
ReefAngel.LightsOnPorts = Port3Bit | Port4Bit;
// Ports turned off when Overheat temperature exceeded
ReefAngel.OverheatShutoffPorts = Port1Bit | Port3Bit | Port4Bit;
// Use T1 probe as temperature and overheat functions
ReefAngel.TempProbe = T1_PROBE;
ReefAngel.OverheatProbe = T1_PROBE;
// Set the Overheat temperature setting
InternalMemory.OverheatTemp_write( 850 );


// Ports that are always on
ReefAngel.Relay.On( Port1 );
ReefAngel.Relay.On( Port7 );
ReefAngel.Relay.On( Port8 );

////// Place additional initialization code below here


////// Place additional initialization code above here
}

void loop()
{
ReefAngel.StandardLights( Port2,8,30,21,0 );
ReefAngel.StandardLights( Port3,9,0,21,30 );
ReefAngel.StandardLights( Port4,9,0,21,20 );
ReefAngel.Wavemaker( Port5,960 );
ReefAngel.Relay.Set( Port6, !ReefAngel.Relay.Status( Port5 ) );
ReefAngel.PWM.SetDaylight( PWMSlope(9,0,21,30,5,40,60,5) );
ReefAngel.PWM.SetActinic( PWMSlope(9,0,21,30,15,80,60,35) );
////// Place your custom code below here


////// Place your custom code above here

// This should always be the last line
ReefAngel.Portal( "Seagals" );
ReefAngel.ShowInterface();
}

Re: Actinics not intensifying at night

Posted: Wed Aug 22, 2012 7:11 pm
by rimai
Not sure what you mean.
It's not supposed to change. They ramp up within 60 minutes and stay flat all throughout the day and ramp down in the last 60 minutes. Is it not what you want?

Re: Actinics not intensifying at night

Posted: Wed Aug 22, 2012 7:13 pm
by DrewPalmer04
I think he wants the PWMParabola effect

Re: Actinics not intensifying at night

Posted: Wed Aug 22, 2012 7:19 pm
by Seagals
rimai wrote:Not sure what you mean.
It's not supposed to change. They ramp up within 60 minutes and stay flat all throughout the day and ramp down in the last 60 minutes. Is it not what you want?

Correct it does not seem to be ramping down at night.

Re: Actinics not intensifying at night

Posted: Wed Aug 22, 2012 7:23 pm
by rimai
Does it show going down on the RA screen?

Re: Actinics not intensifying at night

Posted: Wed Aug 22, 2012 7:31 pm
by Seagals
rimai wrote:Does it show going down on the RA screen?
I dont have a line for 'lighting' on the RA screen.

Re: Actinics not intensifying at night

Posted: Wed Aug 22, 2012 7:32 pm
by rimai
It should show AP: Actinics PWM and DP: Daylight PWM.

Re: Actinics not intensifying at night

Posted: Wed Aug 22, 2012 7:36 pm
by Seagals
I dont have any thing that mentions lighting or Actinics, etc; here is what the main screen says:

Main:
feeding
water change
ATO clear
overheat clear
ph calibration
sate/time
version
exit

Any thoughts on ho to fix??

Re: Actinics not intensifying at night

Posted: Wed Aug 22, 2012 7:38 pm
by rimai
On the main screen, you should have T1, T2, T3, pH, AP and DP.
AP and DP are the PWM % of your dimming channels.

Re: Actinics not intensifying at night

Posted: Wed Aug 22, 2012 7:41 pm
by Seagals
opps, yes i do have the ap% and dp 35%


What do you think

Re: Actinics not intensifying at night

Posted: Wed Aug 22, 2012 7:44 pm
by rimai
It means that it is at 35%.
It's past 9:30pm, right?
That's what you have setup. To go to 35% after light period.
Is there a reason why you setup that way?

Re: Actinics not intensifying at night

Posted: Wed Aug 22, 2012 7:47 pm
by Seagals
no,no reason - if thats the case its by mistake, after 9:30 all should be off.

How do i correct?

Re: Actinics not intensifying at night

Posted: Wed Aug 22, 2012 7:51 pm
by rimai
These are the 2 lines that control your dimming channels:

Code: Select all

 ReefAngel.PWM.SetDaylight( PWMSlope(9,0,21,30,5,40,60,5) );
 ReefAngel.PWM.SetActinic( PWMSlope(9,0,21,30,15,80,60,35) );
The PWMSlope parameters are as follow:
Hour on
Minute on
Hour off
Minute off
start %
end %
duration
default %

The last one is the % you want to have when the lights are off.
Most people use 0% or the same as end %.
So, I think what you want to do is this:

Code: Select all

 ReefAngel.PWM.SetDaylight( PWMSlope(9,0,21,30,5,40,60,5) );
 ReefAngel.PWM.SetActinic( PWMSlope(9,0,21,30,5,80,60,5) );

Re: Actinics not intensifying at night

Posted: Wed Aug 22, 2012 7:54 pm
by Seagals
ok, I will Revise and check on it tomorrow.

Thank you!!!!

Re: Actinics not intensifying at night

Posted: Wed Aug 22, 2012 7:55 pm
by Seagals
ok, I will Revise and check on it tomorrow.

Thank you!!!!