Moonlight dimming interfering with daylight channel

Do you have a question on how to do something.
Ask in here.
Post Reply
Smokieroom
Posts: 4
Joined: Sun Jul 21, 2013 7:27 pm

Moonlight dimming interfering with daylight channel

Post by Smokieroom »

I have Steve's LEDs so my daylight and actinic drivers both go to one power supply so only one power plug. I would like to use the internal memory for my dimming control and it works but I have a problem with the moonlight dimming. I have it programed through the portal for daylights on at 12:00 off at 20:00 the actinic on a 30 min offset. So my actinic channel starts at 0% at 11:30 and ramps up over 60 mins just fine but I want my daylights to start a 0% at 12:00 and ramp up over a hour. The moonlight feature is active during that time so my daylight channel is starting at say 60% at 11:30 then dropping to 0% at 12:00 to start ramping up. Is there a way to disable the moonlight in the internal memory during the the period from 11:30 to 12:00 so my daylights will stay at 0%?
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Moonlight dimming interfering with daylight channel

Post by rimai »

I don't follow.
Can you post your code?
Roberto.
Smokieroom
Posts: 4
Joined: Sun Jul 21, 2013 7:27 pm

Re: Moonlight dimming interfering with daylight channel

Post by Smokieroom »

Here is my code. I think the problem may be with what is stored in the internal memory is there a way to pull that off the controller?

#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 <PH.h>
#include <WaterLevel.h>
#include <Humidity.h>
#include <DCPump.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 = Port2Bit;
    // Ports toggled in Water Change Mode
    ReefAngel.WaterChangePorts = Port2Bit | Port3Bit | Port4Bit;
    // Ports toggled when Lights On / Off menu entry selected
    ReefAngel.LightsOnPorts = Port1Bit;
    // Ports turned off when Overheat temperature exceeded
    ReefAngel.OverheatShutoffPorts = 0;
    // Use T1 probe as temperature and overheat functions
    ReefAngel.TempProbe = T1_PROBE;
    ReefAngel.OverheatProbe = T1_PROBE;
    // Set the Overheat temperature setting
    InternalMemory.OverheatTemp_write( 830 );


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

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

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

void loop()
{
    ReefAngel.StandardLights( Port1,11,30,21,0 );
    ReefAngel.StandardHeater( Port3,775,778 );
    ReefAngel.SingleATO(true,Port4,60,0);
if (!ReefAngel.HighATO.IsActive()) ReefAngel.Relay.Off(Port4);
    ReefAngel.DosingPumpRepeat( Port5,0,1440,120 );
    ReefAngel.DosingPumpRepeat( Port6,720,1440,30 );
    ReefAngel.StandardFan( Port8 );
    ReefAngel.PWM.DaylightPWMSlope();
    ReefAngel.PWM.ActinicPWMSlope();
    ////// Place your custom code below here
    

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

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

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

Re: Moonlight dimming interfering with daylight channel

Post by rimai »

Make sure the end% of both channels is 0%
Roberto.
Post Reply