Ato delay.

Do you have a question on how to do something.
Ask in here.
Post Reply
johniii
Posts: 86
Joined: Sun Mar 03, 2013 8:37 am

Ato delay.

Post by johniii »

Using a single low ato. How do I program a 30 second delay. My sump design creates a small wave and the switch clicks the relay rapidly. So if the switch stays open for 30 secs ato should run till the switch satisfys

Sent from my DROID RAZR using Tapatalk 2
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: Ato delay.

Post by rimai »

Roberto.
johniii
Posts: 86
Joined: Sun Mar 03, 2013 8:37 am

Re: Ato delay.

Post by johniii »

Code: Select all

#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 <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
    ReefAngel.AddStandardMenu();  // Add Standard Menu

    // Ports toggled in Feeding Mode
    ReefAngel.FeedingModePorts = 0;
    // Ports toggled in Water Change Mode
    ReefAngel.WaterChangePorts = 0;
    // Ports toggled when Lights On / Off menu entry selected
    ReefAngel.LightsOnPorts = 0;
    // Ports turned off when Overheat temperature exceeded
    ReefAngel.OverheatShutoffPorts = Port6Bit | Port7Bit | Port8Bit;
    // Use T1 probe as temperature and overheat functions
    ReefAngel.TempProbe = T1_PROBE;
    ReefAngel.OverheatProbe = T1_PROBE;
    // Set the Overheat temperature setting
    InternalMemory.OverheatTemp_write( 820 );


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

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

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

void loop()
{
    ReefAngel.SingleATO( true,Port1,360,0 );
    ReefAngel.DosingPumpRepeat( Port2,0,240,10 );
    ReefAngel.DosingPumpRepeat( Port3,0,120,180 );
    ReefAngel.DosingPumpRepeat( Port5,60,120,180 );
    ReefAngel.StandardLights( Port6,14,0,22,0 );
    ReefAngel.StandardHeater( Port7,785,788 );
    ReefAngel.StandardHeater( Port8,785,789 );
    ////// Place your custom code below here
    ReefAngel.PWM.SetDaylight( ReefCrestMode(35,15,true) );
    ReefAngel.PWM.SetActinic( ReefCrestMode(35,15,false) );

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

    // This should always be the last line
    ReefAngel.ShowInterface();
}
in the code above
ReefAngel.SingleATO(true,Port1,360,0) What does the 0 stand for.
I see that true is the switch state
port1 is the port
360 is the timeout
but what does the 0
nvm i looked at the thread and that 0 is interval ie pump can run every x hours
Post Reply