Delay start

Basic / Standard Reef Angel hardware
Post Reply
ecam
Posts: 229
Joined: Thu Nov 15, 2012 11:27 am

Delay start

Post by ecam »

Good evening all... Im trying to setup my skimmer (port 7 on a delay start of 5 mins) Here is the code im using... its not wokring at the moment




#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 <ReefAngel.h>

void setup()
{
ReefAngel.Init(); // Initialize Controller
ReefAngel.AddStandardMenu();
ReefAngel.AddDateTimeMenu();
ReefAngel.FeedingModePorts = Port5Bit | Port6Bit; // Turn off Ports 5 and 6 when Feeding Mode is activated
ReefAngel.WaterChangePorts = Port1Bit | Port5Bit | Port6Bit | Port7Bit | Port8Bit; // Turn off Ports 1, 5, 6, 7 and 8 when Water Change Mode is activated
ReefAngel.OverheatShutoffPorts = Port3Bit | Port4Bit | Port7Bit; // Turn off Ports 3, 4 and 7 when overheat occurs
ReefAngel.LightsOnPorts = Port3Bit | Port4Bit; // Turn on/off Ports 3 and 4 when Light On/Off menu option is selected
ReefAngel.OverheatProbe = T1_PROBE; // Use Temperature probe 1 to check for overheat
// Ports that are always on
ReefAngel.Relay.On( Port1 ); // Return Pump
ReefAngel.Relay.On( Port5 );
ReefAngel.Relay.On( Port6 );
ReefAngel.Relay.On( Port7 );
ReefAngel.Relay.On( Port8 );

// Hardcode PH calibrations
ReefAngel.PHMax=830; // PH10.0
ReefAngel.PHMin=544; // PH7.0

}

void loop()
{
ReefAngel.LCD.DrawLargeText(COLOR_STEELBLUE,COLOR_WHITE,28,121,"Edwin's Reef"); // Display Reef Angel banner


//Light instructions
ReefAngel.StandardLights( Port2,19,15,7,4 );//Refugium
ReefAngel.StandardLights(Port3,7,5,19,15); // Actinic Lights
ReefAngel.StandardLights(Port4,9,5,17,0); // Daylight Lights
//Light instructions (Start Hr,Min, End Hr, Min)
// ReefAngel.Wavemaker1(Port5); // Wavemaker 1
//ReefAngel.Wavemaker2(Port6); // Wavemaker 2
ReefAngel.StandardHeater(Port8); // Heater
ReefAngel.Relay.DelayedOn( Port7,5 ); //Skimmer

ReefAngel.PWM.StandardDaylight(); // Dimming for Daylight Channel
ReefAngel.PWM.StandardActinic(30); // Dimming for Actinic Channel
ReefAngel.ShowInterface(); // Display everything on the LCD screen
}
User avatar
lnevo
Posts: 5422
Joined: Fri Jul 20, 2012 9:42 am

Delay start

Post by lnevo »

Need to change the On function in your setup() to DelayedOn for Port7
dbmet
Posts: 235
Joined: Thu Nov 10, 2011 11:49 am

Re: Delay start

Post by dbmet »

Looks like you have it always on in one place in your code and delayed in another part of your code..
Image
ecam
Posts: 229
Joined: Thu Nov 15, 2012 11:27 am

Re: Delay start

Post by ecam »

still not working .....




#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 <ReefAngel.h>

void setup()
{
ReefAngel.Init(); // Initialize Controller
ReefAngel.AddStandardMenu();
ReefAngel.AddDateTimeMenu();
ReefAngel.FeedingModePorts = Port5Bit | Port6Bit; // Turn off Ports 5 and 6 when Feeding Mode is activated
ReefAngel.WaterChangePorts = Port1Bit | Port5Bit | Port6Bit | Port7Bit | Port8Bit; // Turn off Ports 1, 5, 6, 7 and 8 when Water Change Mode is activated
ReefAngel.OverheatShutoffPorts = Port3Bit | Port4Bit | Port7Bit; // Turn off Ports 3, 4 and 7 when overheat occurs
ReefAngel.LightsOnPorts = Port3Bit | Port4Bit; // Turn on/off Ports 3 and 4 when Light On/Off menu option is selected
ReefAngel.OverheatProbe = T1_PROBE; // Use Temperature probe 1 to check for overheat
// Ports that are always on
ReefAngel.Relay.On( Port1 ); // Return Pump
ReefAngel.Relay.On( Port5 );
ReefAngel.Relay.On( Port6 );
ReefAngel.Relay.On( Port7 );

// Ports that are delayed on

ReefAngel.Relay.DelayedOn( Port8 );

// Hardcode PH calibrations
ReefAngel.PHMax=830; // PH10.0
ReefAngel.PHMin=544; // PH7.0

}

void loop()
{
ReefAngel.LCD.DrawLargeText(COLOR_STEELBLUE,COLOR_WHITE,28,121,"Edwin's Reef"); // Display Reef Angel banner


//Light instructions
ReefAngel.StandardLights( Port2,19,15,7,4 );//Refugium
ReefAngel.StandardLights(Port3,7,5,19,15); // Actinic Lights
ReefAngel.StandardLights(Port4,9,5,17,0); // Daylight Lights
//Light instructions (Start Hr,Min, End Hr, Min)
// ReefAngel.Wavemaker1(Port5); // Wavemaker 1
//ReefAngel.Wavemaker2(Port6); // Wavemaker 2
ReefAngel.StandardHeater(Port7); // Heater
ReefAngel.Relay.DelayedOn( Port8,2 ); //Skimmer



ReefAngel.PWM.StandardDaylight(); // Dimming for Daylight Channel
ReefAngel.PWM.StandardActinic(30); // Dimming for Actinic Channel
ReefAngel.ShowInterface(); // Display everything on the LCD screen
}



0
User avatar
DrewPalmer04
Posts: 818
Joined: Tue May 29, 2012 2:12 pm
Location: Christopher, IL

Re: Delay start

Post by DrewPalmer04 »

Remove ReefAngel.Relay.DelayOn (Port 8); In set up. Leave in loop
Out for now...but not over.

VISIT: Ethernet Module/Wifi Alternative
ecam
Posts: 229
Joined: Thu Nov 15, 2012 11:27 am

Re: Delay start

Post by ecam »

still no good....




#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 <ReefAngel.h>

void setup()
{
ReefAngel.Init(); // Initialize Controller
ReefAngel.AddStandardMenu();
ReefAngel.AddDateTimeMenu();
ReefAngel.FeedingModePorts = Port5Bit | Port6Bit; // Turn off Ports 5 and 6 when Feeding Mode is activated
ReefAngel.WaterChangePorts = Port1Bit | Port5Bit | Port6Bit | Port7Bit | Port8Bit; // Turn off Ports 1, 5, 6, 7 and 8 when Water Change Mode is activated
ReefAngel.OverheatShutoffPorts = Port3Bit | Port4Bit | Port7Bit; // Turn off Ports 3, 4 and 7 when overheat occurs
ReefAngel.LightsOnPorts = Port3Bit | Port4Bit; // Turn on/off Ports 3 and 4 when Light On/Off menu option is selected
ReefAngel.OverheatProbe = T1_PROBE; // Use Temperature probe 1 to check for overheat
// Ports that are always on
ReefAngel.Relay.On( Port1 ); // Return Pump
ReefAngel.Relay.On( Port5 );
ReefAngel.Relay.On( Port6 );




// Hardcode PH calibrations
ReefAngel.PHMax=830; // PH10.0
ReefAngel.PHMin=544; // PH7.0

}

void loop()
{
ReefAngel.LCD.DrawLargeText(COLOR_STEELBLUE,COLOR_WHITE,28,121,"Edwin's Reef"); // Display Reef Angel banner


//Light instructions
ReefAngel.StandardLights( Port2,19,15,7,4 );//Refugium
ReefAngel.StandardLights(Port3,7,5,19,15); // Actinic Lights
ReefAngel.StandardLights(Port4,9,5,17,0); // Daylight Lights
//Light instructions (Start Hr,Min, End Hr, Min)
// ReefAngel.Wavemaker1(Port5); // Wavemaker 1
//ReefAngel.Wavemaker2(Port6); // Wavemaker 2
ReefAngel.StandardHeater(Port7); // Heater
ReefAngel.Relay.DelayedOn( Port8,2 ); //Skimmer



ReefAngel.PWM.StandardDaylight(); // Dimming for Daylight Channel
ReefAngel.PWM.StandardActinic(30); // Dimming for Actinic Channel
ReefAngel.ShowInterface(); // Display everything on the LCD screen
dbmet
Posts: 235
Joined: Thu Nov 10, 2011 11:49 am

Re: Delay start

Post by dbmet »

Which Port is your Skimmer ? Port 7 or Port 8?

ReefAngel.StandardHeater(Port7); // Heater
ReefAngel.Relay.DelayedOn( Port8,2 ); //Skimmer
Image
ecam
Posts: 229
Joined: Thu Nov 15, 2012 11:27 am

Re: Delay start

Post by ecam »

I have it on port 8
ecam
Posts: 229
Joined: Thu Nov 15, 2012 11:27 am

Re: Delay start

Post by ecam »

Hello All...

Based on my same code..... Listed in my last post...

I woke up this morning to find that my return pump was off. Its currently set to always on and was working the day before? The timing instructions are working fine. Not sure what happened with the return pump. Any ideas on this and how to get the delayed start to work?
dbmet
Posts: 235
Joined: Thu Nov 10, 2011 11:49 am

Delay start

Post by dbmet »

When do you want delayed start to work? How have you tested to see if it works?
Image
modulok
Posts: 163
Joined: Wed Oct 24, 2012 8:37 am

Re: Delay start

Post by modulok »

This is the reason I tested my new RA+ for 2 weeks before hooking it up to my tank. I wanted to get everything programmed and tested so I didn't have to worry about waking up, or coming home and find something not running like it should.

I set it up without any major issues, just some minor tweaking of the settings here or there.
Image
ecam
Posts: 229
Joined: Thu Nov 15, 2012 11:27 am

Re: Delay start

Post by ecam »

dbmet wrote:When do you want delayed start to work? How have you tested to see if it works?
When te unit comes back on from disconnect I want to delay the skimmer from coming on for. 5 mins. I've set this up and waited and it never came on.
dbmet
Posts: 235
Joined: Thu Nov 10, 2011 11:49 am

Re: Delay start

Post by dbmet »

By disconnect do you mean power loss?
Image
ecam
Posts: 229
Joined: Thu Nov 15, 2012 11:27 am

Re: Delay start

Post by ecam »

Yes. In the instance of. Loss of,power
User avatar
lnevo
Posts: 5422
Joined: Fri Jul 20, 2012 9:42 am

Delay start

Post by lnevo »

Make sure this is the only command referencing port 8...

ReefAngel.Relay.DelayedOn( Port8, 5); //Skimmer

That *should* be all you need...
ecam
Posts: 229
Joined: Thu Nov 15, 2012 11:27 am

Re: Delay start

Post by ecam »

lnevo wrote:Make sure this is the only command referencing port 8...

ReefAngel.Relay.DelayedOn( Port8, 5); //Skimmer

That *should* be all you need...

That is all I have in my latest code. I don't get it.
dbmet
Posts: 235
Joined: Thu Nov 10, 2011 11:49 am

Re: Delay start

Post by dbmet »

What is your port 8 doing currently?
Image
User avatar
lnevo
Posts: 5422
Joined: Fri Jul 20, 2012 9:42 am

Re: Delay start

Post by lnevo »

ecam wrote:
lnevo wrote:Make sure this is the only command referencing port 8...

ReefAngel.Relay.DelayedOn( Port8, 5); //Skimmer

That *should* be all you need...

That is all I have in my latest code. I don't get it.
How are you powering on/off your RA?
ecam
Posts: 229
Joined: Thu Nov 15, 2012 11:27 am

Re: Delay start

Post by ecam »

lnevo wrote:
ecam wrote:
lnevo wrote:Make sure this is the only command referencing port 8...

ReefAngel.Relay.DelayedOn( Port8, 5); //Skimmer

That *should* be all you need...

That is all I have in my latest code. I don't get it.
How are you powering on/off your RA?

By the power cord.
dbmet
Posts: 235
Joined: Thu Nov 10, 2011 11:49 am

Re: Delay start

Post by dbmet »

What is port 8 doing currently?
Image
User avatar
lnevo
Posts: 5422
Joined: Fri Jul 20, 2012 9:42 am

Delay start

Post by lnevo »

Can we see your full code and any errors when you upload?
Post Reply