Page 1 of 1
Delay start
Posted: Mon Jan 14, 2013 6:52 pm
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
}
Delay start
Posted: Mon Jan 14, 2013 7:09 pm
by lnevo
Need to change the On function in your setup() to DelayedOn for Port7
Re: Delay start
Posted: Mon Jan 14, 2013 7:25 pm
by dbmet
Looks like you have it always on in one place in your code and delayed in another part of your code..
Re: Delay start
Posted: Mon Jan 14, 2013 7:39 pm
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
Re: Delay start
Posted: Mon Jan 14, 2013 7:44 pm
by DrewPalmer04
Remove ReefAngel.Relay.DelayOn (Port 8); In set up. Leave in loop
Re: Delay start
Posted: Mon Jan 14, 2013 8:04 pm
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
Re: Delay start
Posted: Mon Jan 14, 2013 8:10 pm
by dbmet
Which Port is your Skimmer ? Port 7 or Port 8?
ReefAngel.StandardHeater(Port7); // Heater
ReefAngel.Relay.DelayedOn( Port8,2 ); //Skimmer
Re: Delay start
Posted: Mon Jan 14, 2013 9:09 pm
by ecam
I have it on port 8
Re: Delay start
Posted: Wed Jan 16, 2013 1:38 pm
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?
Delay start
Posted: Wed Jan 16, 2013 2:27 pm
by dbmet
When do you want delayed start to work? How have you tested to see if it works?
Re: Delay start
Posted: Wed Jan 16, 2013 2:55 pm
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.
Re: Delay start
Posted: Wed Jan 16, 2013 5:21 pm
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.
Re: Delay start
Posted: Wed Jan 16, 2013 6:16 pm
by dbmet
By disconnect do you mean power loss?
Re: Delay start
Posted: Wed Jan 16, 2013 6:27 pm
by ecam
Yes. In the instance of. Loss of,power
Delay start
Posted: Wed Jan 16, 2013 6:30 pm
by lnevo
Make sure this is the only command referencing port 8...
ReefAngel.Relay.DelayedOn( Port8, 5); //Skimmer
That *should* be all you need...
Re: Delay start
Posted: Wed Jan 16, 2013 6:33 pm
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.
Re: Delay start
Posted: Wed Jan 16, 2013 6:36 pm
by dbmet
What is your port 8 doing currently?
Re: Delay start
Posted: Wed Jan 16, 2013 6:56 pm
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?
Re: Delay start
Posted: Wed Jan 16, 2013 7:08 pm
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.
Re: Delay start
Posted: Wed Jan 16, 2013 7:09 pm
by dbmet
What is port 8 doing currently?
Delay start
Posted: Thu Jan 17, 2013 5:36 am
by lnevo
Can we see your full code and any errors when you upload?