Delay start
Delay start
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
}
#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
Need to change the On function in your setup() to DelayedOn for Port7
Re: Delay start
Looks like you have it always on in one place in your code and delayed in another part of your code..
Re: Delay start
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
#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
- DrewPalmer04
- Posts: 818
- Joined: Tue May 29, 2012 2:12 pm
- Location: Christopher, IL
Re: Delay start
Remove ReefAngel.Relay.DelayOn (Port 8); In set up. Leave in loop
Re: Delay start
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
#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
Which Port is your Skimmer ? Port 7 or Port 8?
ReefAngel.StandardHeater(Port7); // Heater
ReefAngel.Relay.DelayedOn( Port8,2 ); //Skimmer
ReefAngel.StandardHeater(Port7); // Heater
ReefAngel.Relay.DelayedOn( Port8,2 ); //Skimmer
Re: Delay start
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?
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
When do you want delayed start to work? How have you tested to see if it works?
Re: Delay start
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.
I set it up without any major issues, just some minor tweaking of the settings here or there.
Re: Delay start
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 wrote:When do you want delayed start to work? How have you tested to see if it works?
Re: Delay start
By disconnect do you mean power loss?
Re: Delay start
Yes. In the instance of. Loss of,power
Delay start
Make sure this is the only command referencing port 8...
ReefAngel.Relay.DelayedOn( Port8, 5); //Skimmer
That *should* be all you need...
ReefAngel.Relay.DelayedOn( Port8, 5); //Skimmer
That *should* be all you need...
Re: Delay start
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
What is your port 8 doing currently?
Re: Delay start
How are you powering on/off your RA?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.
Re: Delay start
lnevo wrote:How are you powering on/off your RA?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.
By the power cord.
Re: Delay start
What is port 8 doing currently?