I was acclimating some corals today and noticed that one of the outlets on the #1 box cycles off every ten minutes or so. It stays off for a few minutes then turns back on. It's outlet #7 on box-1. Can you take a look at the file and see if you notice what is causing it?
#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 <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
// Ports toggled in Feeding Mode
ReefAngel.FeedingModePorts = Port5Bit | Port6Bit | Port7Bit | Port8Bit;
ReefAngel.FeedingModePortsE[0] = 0;
// Ports toggled in Water Change Mode
ReefAngel.WaterChangePorts = Port7Bit | Port8Bit;
ReefAngel.WaterChangePortsE[0] = 0;
// Ports toggled when Lights On / Off menu entry selected
ReefAngel.LightsOnPorts = 0;
ReefAngel.LightsOnPortsE[0] = 0;
// Ports turned off when Overheat temperature exceeded
ReefAngel.OverheatShutoffPorts = Port1Bit;
ReefAngel.OverheatShutoffPortsE[0] = 0;
// The T3 probe is tank temperature and overheat functions
ReefAngel.TempProbe = T3_PROBE;
ReefAngel.OverheatProbe = T3_PROBE;
// Overheat temperature setting
InternalMemory.OverheatTemp_write( 840 );
// Ports that are always on Pump-8 Wavemakers-5&6
ReefAngel.Relay.On( Port8 );
ReefAngel.Relay.On( Port5 );
ReefAngel.Relay.On( Port6 );
////// Place additional initialization code below here
////// Place additional initialization code above here
}
void loop()
{
ReefAngel.StandardHeater( Port1,751,761 );
ReefAngel.StandardATO( Port2,390 );
ReefAngel.StandardLights( Port3,21,0,9,0 );
//ReefAngel.Wavemaker( Port5,60 );
//ReefAngel.Wavemaker( Port6,60 );
ReefAngel.Relay.DelayedOn( Port7,3 );
//Actinic Lights
ReefAngel.StandardLights( Box1_Port1,11,0,22,0 );
//Moon Light Driver
ReefAngel.StandardLights( Box1_Port2,22,0,8,0 );
//Morning Lights
ReefAngel.StandardLights( Box1_Port3,11,30,21,30 );
//High Noon Lights
ReefAngel.StandardLights( Box1_Port4,12,0,21,0 );
// This next line will run cooling fans for the tank
ReefAngel.StandardFan( Box1_Port5,790,805 );
//Moon Light 9V
ReefAngel.StandardLights( Box1_Port8,21,59,8,1 );
ReefAngel.PWM.SetDaylight( PWMSlope(12,0,21,0,10,100,240,10) );
ReefAngel.PWM.SetActinic( PWMSlope(11,0,22,0,10,100,60,10) );
////// Place your custom code below here
if (ReefAngel.Params.Temp[T1_PROBE]>0)
{
if (ReefAngel.Params.Temp[T1_PROBE] >= 860) ReefAngel.Relay.On(Box1_Port7);
if (ReefAngel.Params.Temp[T1_PROBE] <= 820) ReefAngel.Relay.Off(Box1_Port7);
}
////// Place your custom code above here
// This should always be the last line
ReefAngel.Portal( "grafspee1217" );
ReefAngel.ShowInterface();
}
void DrawCustomMain()
{
int x,y;
char text[10];
// Parameters
#if defined DisplayLEDPWM && ! defined RemoveAllLights
ReefAngel.LCD.DrawMonitor( 15, 62, ReefAngel.Params,
ReefAngel.PWM.GetDaylightValue(), ReefAngel.PWM.GetActinicValue() );
#else // defined DisplayLEDPWM && ! defined RemoveAllLights
ReefAngel.LCD.DrawMonitor( 15, 62, ReefAngel.Params );
#endif // defined DisplayLEDPWM && ! defined RemoveAllLights
pingSerial();
// Main Relay Box
byte TempRelay = ReefAngel.Relay.RelayData;
TempRelay &= ReefAngel.Relay.RelayMaskOff;
TempRelay |= ReefAngel.Relay.RelayMaskOn;
ReefAngel.LCD.DrawOutletBox( 12, 93, TempRelay );
pingSerial();
// Relay Expansion
TempRelay = ReefAngel.Relay.RelayDataE[0];
TempRelay &= ReefAngel.Relay.RelayMaskOffE[0];
TempRelay |= ReefAngel.Relay.RelayMaskOnE[0];
ReefAngel.LCD.DrawOutletBox( 12, 106, TempRelay );
pingSerial();
// Date and Time
ReefAngel.LCD.DrawDate( 6, 122 );
pingSerial();
}
void DrawCustomGraph()
{
ReefAngel.LCD.DrawGraph( 5, 5 );
}