I set al my codes with the web wizard, but some things are not working properly.
• UV in port 13 is suppose to be always on, and turn of if port 11 is off, but is off and tier to port 3.
• Wavemaker was set to 3600-7400 sec random in port 6, and opposite in port 16, but is turning like every 30 sec.
• Fuge light is set on timer for 10:00 PM to 12:00 AM, but is always on.
• Temp 2 is set to F when all the others are C.
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.AddStandardMenu(); // Add Standard Menu
ReefAngel.Use2014Screen(); // Let's use 2014 Screen
ReefAngel.AddWaterLevelExpansion(); // Water Level Expansion Module
ReefAngel.SetTemperatureUnit( Celsius ); // set to Celsius Temperature
// Ports toggled in Feeding Mode
ReefAngel.FeedingModePorts = Port3Bit;
ReefAngel.FeedingModePortsE[0] = 0;
ReefAngel.FeedingModePortsE[1] = 0;
// Ports toggled in Water Change Mode
ReefAngel.WaterChangePorts = Port5Bit;
ReefAngel.WaterChangePortsE[0] = Port5Bit;
ReefAngel.WaterChangePortsE[1] = Port1Bit;
// Ports turned off when Overheat temperature exceeded
ReefAngel.OverheatShutoffPorts = Port5Bit;
ReefAngel.OverheatShutoffPortsE[0] = Port3Bit | Port7Bit;
ReefAngel.OverheatShutoffPortsE[1] = Port1Bit;
// Ports toggled when Lights On / Off menu entry selected
ReefAngel.LightsOnPorts = 0;
ReefAngel.LightsOnPortsE[0] = 0;
ReefAngel.LightsOnPortsE[1] = 0;
// Use T3 probe as temperature and overheat functions
ReefAngel.TempProbe = T3_PROBE;
ReefAngel.OverheatProbe = T3_PROBE;
// Set the Overheat temperature setting
InternalMemory.OverheatTemp_write( 300 );
// Ports that are always on
ReefAngel.Relay.On( Port1 );
ReefAngel.Relay.On( Box1_Port1 );
ReefAngel.Relay.On( Box1_Port2 );
ReefAngel.Relay.On( Port4 );
ReefAngel.Relay.On( Box1_Port4 );
////// Place additional initialization code below here
////// Place additional initialization code above here
}
void loop()
{
ReefAngel.Relay.DelayedOn( Port3 );
ReefAngel.Relay.DelayedOn( Box1_Port3 );
ReefAngel.WaterLevelATO( Box1_Port5 );
ReefAngel.DosingPumpRepeat1( Port5 );
ReefAngel.Wavemaker2( Port6 );
ReefAngel.Relay.Set( Box1_Port6, !ReefAngel.Relay.Status( Port6 ) );
ReefAngel.StandardLights( Box1_Port7 );
ReefAngel.StandardFan3( Port7 );
if ( ReefAngel.Relay.Status( Port3 ) ) ReefAngel.Relay.Off( Box1_Port3 );
////// Place your custom code below here
////// Place your custom code above here
ReefAngel.Portal( "symon_say" );
// This should always be the last line
ReefAngel.ShowInterface();
}
// RA_STRING1=null
// RA_STRING2=null
// RA_STRING3=null
// RA_LABEL LABEL_PORT8=N/A
// RA_LABEL LABEL_PORT27=N/A
// RA_LABEL LABEL_PORT2=Sump Led
// RA_LABEL LABEL_PORT16=Left Gyre
// RA_LABEL LABEL_PORT1=DCP 8000
// RA_LABEL LABEL_PORT7=Fan
// RA_LABEL LABEL_PORT26=N/A
// RA_LABEL LABEL_PORT15=ATO
// RA_LABEL LABEL_PORT28=N/A
// RA_LABEL LABEL_PORT23=N/A
// RA_LABEL LABEL_PORT13=UV
// RA_LABEL LABEL_PORT18=N/A
// RA_LABEL LABEL_PORT3=Skimmer
// RA_LABEL LABEL_PORT22=N/A
// RA_LABEL LABEL_PORT11=DCP 6500
// RA_LABEL LABEL_PORT25=N/A
// RA_LABEL LABEL_PORT12=Dosing pump
// RA_LABEL LABEL_PORT5=Sump Wave
// RA_LABEL LABEL_PORT14=Left AP700
// RA_LABEL LABEL_PORT6=Right Gyre
// RA_LABEL LABEL_PORT17=Fuge Kessil
// RA_LABEL LABEL_PORT4=Right AP700
// RA_LABEL LABEL_DAYLIGHT=Daylight
// RA_LABEL LABEL_PORT21=N/A
// RA_LABEL LABEL_ACTINIC=Actinic
// RA_LABEL LABEL_PORT24=N/A