Skimmer float
Skimmer float
I have a float switch in my skimmer overflow container. I want my skimmer to shut off when the container gets full.
Here's my code borrowed from another forum member:
if(ReefAngel.HighATO.IsActive())
{
ReefAngel.Relay.overide(Port8, 0);
}
else
{
ReefAngel.Relay.On(Port8);
}
I get the following verification error: class RelayClass has no member named override
What do I need to do now?
Here's my code borrowed from another forum member:
if(ReefAngel.HighATO.IsActive())
{
ReefAngel.Relay.overide(Port8, 0);
}
else
{
ReefAngel.Relay.On(Port8);
}
I get the following verification error: class RelayClass has no member named override
What do I need to do now?
Re: Skimmer float
Wow, that's embarrassing. Thanks
Ted
Ted
Re: Skimmer float
That site site looks like a goldmine!
Re: Skimmer float
I need a little more help. I'm not a programmer, and though I have a real interest in learning, and am learning slowly, it's going to be a while before I get even close to where I want to be. Meanwhile, I'm having a hard time figuring out how to make this skimmer float switch work. I corrected the spelling error, but get pretty much the same message.
Re: Skimmer float
Make sure it's Override, with a capital O and two r's. In you post you have a small 'o' and one 'r'.
I know, because I stole this code last night and got the error.
--Colin
I know, because I stole this code last night and got the error.
--Colin
Re: Skimmer float
I know I'm doing something wrong, though I've tried all the suggestions! Here is my code.
#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 <PAR.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.Use2014Screen(); // Let's use 2014 Screen
// Ports toggled in Feeding Mode
ReefAngel.FeedingModePorts = Port1Bit | Port2Bit | Port3Bit | Port4Bit | Port5Bit | Port7Bit | Port8Bit;
// Ports toggled in Water Change Mode
ReefAngel.WaterChangePorts = Port1Bit | Port2Bit | Port3Bit | Port4Bit | Port5Bit | Port7Bit | Port8Bit;
// Ports toggled when Lights On / Off menu entry selected
ReefAngel.LightsOnPorts = 0;
// Ports turned off when Overheat temperature exceeded
ReefAngel.OverheatShutoffPorts = Port2Bit;
// Use T1 probe as temperature and overheat functions
ReefAngel.TempProbe = T1_PROBE;
ReefAngel.OverheatProbe = T1_PROBE;
// Set the Overheat temperature setting
InternalMemory.OverheatTemp_write( 800 );
// Feeeding and Water Change mode speed
ReefAngel.DCPump.FeedingSpeed=0;
ReefAngel.DCPump.WaterChangeSpeed=0;
// Ports that are always on
ReefAngel.Relay.On( Port3 );
////// Place additional initialization code below here
////// Place additional initialization code above here
}
void loop()
{
ReefAngel.StandardFan( Port1,780,790 );
ReefAngel.StandardHeater( Port2,780,785 );
ReefAngel.Relay.DelayedOn( Port4,8 );
ReefAngel.Relay.DelayedOn( Port5,8 );
ReefAngel.SingleATO( true,Port7,3600,5 );
ReefAngel.Relay.DelayedOn( Port8,10 );
ReefAngel.PWM.SetChannel( 0, PWMSlope(8,0,21,0,10,70,65,10) );
ReefAngel.PWM.SetChannel( 1, PWMSlope(8,0,21,0,9,40,65,9) );
ReefAngel.PWM.SetChannel( 2, PWMSlope(8,0,21,0,8,70,65,8) );
ReefAngel.PWM.SetChannel( 3, PWMSlope(8,0,21,0,6,40,65,6) );
ReefAngel.DCPump.UseMemory = false;
ReefAngel.DCPump.SetMode( Constant,40,10 );
ReefAngel.DCPump.DaylightChannel = Sync;
ReefAngel.DCPump.ActinicChannel = Sync;
ReefAngel.DCPump.ExpansionChannel[0] = None;
ReefAngel.DCPump.ExpansionChannel[1] = None;
ReefAngel.DCPump.ExpansionChannel[2] = None;
ReefAngel.DCPump.ExpansionChannel[3] = None;
ReefAngel.DCPump.ExpansionChannel[4] = None;
ReefAngel.DCPump.ExpansionChannel[5] = None;
////// Place your custom code below here
if(ReefAngel.HighATO.IsActive())
{
ReefAngel.Relay.Override(Port8);
}
else
{
ReefAngel.Relay.On(Port8);
}
////// Place your custom code above here
// This should always be the last line
#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 <PAR.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.Use2014Screen(); // Let's use 2014 Screen
// Ports toggled in Feeding Mode
ReefAngel.FeedingModePorts = Port1Bit | Port2Bit | Port3Bit | Port4Bit | Port5Bit | Port7Bit | Port8Bit;
// Ports toggled in Water Change Mode
ReefAngel.WaterChangePorts = Port1Bit | Port2Bit | Port3Bit | Port4Bit | Port5Bit | Port7Bit | Port8Bit;
// Ports toggled when Lights On / Off menu entry selected
ReefAngel.LightsOnPorts = 0;
// Ports turned off when Overheat temperature exceeded
ReefAngel.OverheatShutoffPorts = Port2Bit;
// Use T1 probe as temperature and overheat functions
ReefAngel.TempProbe = T1_PROBE;
ReefAngel.OverheatProbe = T1_PROBE;
// Set the Overheat temperature setting
InternalMemory.OverheatTemp_write( 800 );
// Feeeding and Water Change mode speed
ReefAngel.DCPump.FeedingSpeed=0;
ReefAngel.DCPump.WaterChangeSpeed=0;
// Ports that are always on
ReefAngel.Relay.On( Port3 );
////// Place additional initialization code below here
////// Place additional initialization code above here
}
void loop()
{
ReefAngel.StandardFan( Port1,780,790 );
ReefAngel.StandardHeater( Port2,780,785 );
ReefAngel.Relay.DelayedOn( Port4,8 );
ReefAngel.Relay.DelayedOn( Port5,8 );
ReefAngel.SingleATO( true,Port7,3600,5 );
ReefAngel.Relay.DelayedOn( Port8,10 );
ReefAngel.PWM.SetChannel( 0, PWMSlope(8,0,21,0,10,70,65,10) );
ReefAngel.PWM.SetChannel( 1, PWMSlope(8,0,21,0,9,40,65,9) );
ReefAngel.PWM.SetChannel( 2, PWMSlope(8,0,21,0,8,70,65,8) );
ReefAngel.PWM.SetChannel( 3, PWMSlope(8,0,21,0,6,40,65,6) );
ReefAngel.DCPump.UseMemory = false;
ReefAngel.DCPump.SetMode( Constant,40,10 );
ReefAngel.DCPump.DaylightChannel = Sync;
ReefAngel.DCPump.ActinicChannel = Sync;
ReefAngel.DCPump.ExpansionChannel[0] = None;
ReefAngel.DCPump.ExpansionChannel[1] = None;
ReefAngel.DCPump.ExpansionChannel[2] = None;
ReefAngel.DCPump.ExpansionChannel[3] = None;
ReefAngel.DCPump.ExpansionChannel[4] = None;
ReefAngel.DCPump.ExpansionChannel[5] = None;
////// Place your custom code below here
if(ReefAngel.HighATO.IsActive())
{
ReefAngel.Relay.Override(Port8);
}
else
{
ReefAngel.Relay.On(Port8);
}
////// Place your custom code above here
// This should always be the last line
Re: Skimmer float
Code: Select all
ReefAngel.Relay.Override(Port8);
Code: Select all
ReefAngel.Relay.Override(Port8,0);
Code: Select all
if(!ReefAngel.HighATO.IsActive())
Re: Skimmer float
That can't be the complete code.
It's missing stuff at the end.
And that is not including the Portal function if you use it.
Also, if you check the Override function posted above, there is a second argument to that function.
It should be Override (Port8,0) and not just Override (Port8)
So, your code should be:
It's missing stuff at the end.
Code: Select all
ReefAngel.ShowInterface();
}
Also, if you check the Override function posted above, there is a second argument to that function.
It should be Override (Port8,0) and not just Override (Port8)
So, your code should be:
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 <Humidity.h>
#include <DCPump.h>
#include <PAR.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.Use2014Screen(); // Let's use 2014 Screen
// Ports toggled in Feeding Mode
ReefAngel.FeedingModePorts = Port1Bit | Port2Bit | Port3Bit | Port4Bit | Port5Bit | Port7Bit | Port8Bit;
// Ports toggled in Water Change Mode
ReefAngel.WaterChangePorts = Port1Bit | Port2Bit | Port3Bit | Port4Bit | Port5Bit | Port7Bit | Port8Bit;
// Ports toggled when Lights On / Off menu entry selected
ReefAngel.LightsOnPorts = 0;
// Ports turned off when Overheat temperature exceeded
ReefAngel.OverheatShutoffPorts = Port2Bit;
// Use T1 probe as temperature and overheat functions
ReefAngel.TempProbe = T1_PROBE;
ReefAngel.OverheatProbe = T1_PROBE;
// Set the Overheat temperature setting
InternalMemory.OverheatTemp_write( 800 );
// Feeeding and Water Change mode speed
ReefAngel.DCPump.FeedingSpeed=0;
ReefAngel.DCPump.WaterChangeSpeed=0;
// Ports that are always on
ReefAngel.Relay.On( Port3 );
////// Place additional initialization code below here
////// Place additional initialization code above here
}
void loop()
{
ReefAngel.StandardFan( Port1,780,790 );
ReefAngel.StandardHeater( Port2,780,785 );
ReefAngel.Relay.DelayedOn( Port4,8 );
ReefAngel.Relay.DelayedOn( Port5,8 );
ReefAngel.SingleATO( true,Port7,3600,5 );
ReefAngel.Relay.DelayedOn( Port8,10 );
ReefAngel.PWM.SetChannel( 0, PWMSlope(8,0,21,0,10,70,65,10) );
ReefAngel.PWM.SetChannel( 1, PWMSlope(8,0,21,0,9,40,65,9) );
ReefAngel.PWM.SetChannel( 2, PWMSlope(8,0,21,0,8,70,65,8) );
ReefAngel.PWM.SetChannel( 3, PWMSlope(8,0,21,0,6,40,65,6) );
ReefAngel.DCPump.UseMemory = false;
ReefAngel.DCPump.SetMode( Constant,40,10 );
ReefAngel.DCPump.DaylightChannel = Sync;
ReefAngel.DCPump.ActinicChannel = Sync;
ReefAngel.DCPump.ExpansionChannel[0] = None;
ReefAngel.DCPump.ExpansionChannel[1] = None;
ReefAngel.DCPump.ExpansionChannel[2] = None;
ReefAngel.DCPump.ExpansionChannel[3] = None;
ReefAngel.DCPump.ExpansionChannel[4] = None;
ReefAngel.DCPump.ExpansionChannel[5] = None;
////// Place your custom code below here
if(ReefAngel.HighATO.IsActive())
{
ReefAngel.Relay.Override(Port8,0);
}
else
{
ReefAngel.Relay.On(Port8);
}
////// Place your custom code above here
// This should always be the last line
ReefAngel.ShowInterface();
}
Roberto.
Re: Skimmer float
Thanks a lot! I think this did it for me though I only did a quick check so far.