Actinics not intensifying at night
Actinics not intensifying at night
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();
}
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
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?
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?
Roberto.
- DrewPalmer04
- Posts: 818
- Joined: Tue May 29, 2012 2:12 pm
- Location: Christopher, IL
Re: Actinics not intensifying at night
I think he wants the PWMParabola effect
Re: Actinics not intensifying at night
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
I dont have a line for 'lighting' on the RA screen.rimai wrote:Does it show going down on the RA screen?
Re: Actinics not intensifying at night
It should show AP: Actinics PWM and DP: Daylight PWM.
Roberto.
Re: Actinics not intensifying at night
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??
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
On the main screen, you should have T1, T2, T3, pH, AP and DP.
AP and DP are the PWM % of your dimming channels.
AP and DP are the PWM % of your dimming channels.
Roberto.
Re: Actinics not intensifying at night
opps, yes i do have the ap% and dp 35%
What do you think
What do you think
Re: Actinics not intensifying at night
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?
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?
Roberto.
Re: Actinics not intensifying at night
no,no reason - if thats the case its by mistake, after 9:30 all should be off.
How do i correct?
How do i correct?
Re: Actinics not intensifying at night
These are the 2 lines that control your dimming channels:
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,15,80,60,35) );
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) );
Roberto.
Re: Actinics not intensifying at night
ok, I will Revise and check on it tomorrow.
Thank you!!!!
Thank you!!!!
Re: Actinics not intensifying at night
ok, I will Revise and check on it tomorrow.
Thank you!!!!
Thank you!!!!