Relay Expansion, Wavemaker programming,web banner
Posted: Thu Jun 19, 2014 3:03 am
So I setup my Reef Angel and most of it is working I'm just have 4 issues I was hoping to get help with.
1) My Relay Expansion is not showing up on the RA Portal, it is showing up on my Android App though.
2) I setup ports 5 and 6 on the main relay box to random my power heads from 60 to 120, then ports 7 and 8 on the main relay box to work opposite of ports 5 and 6.
Well that is working pretty good minus the fact that 5 never turns on.
3) I can't get my banner to update.
4) Not so much an issue just a question. I have my LED Drivers plugged into ports 1-4 on Relay Box 2, do I use the PWM Dimming ports on Relay Box 2 or the Main Box?
Here is my programming:
#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 <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 | Port5Bit | Port6Bit | Port7Bit | Port8Bit;
ReefAngel.FeedingModePortsE[0] = 0;
// Ports toggled in Water Change Mode
ReefAngel.WaterChangePorts = Port1Bit | Port2Bit | Port5Bit | Port6Bit | 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 = 0;
ReefAngel.OverheatShutoffPortsE[0] = Port8Bit;
// Use T1 probe as temperature and overheat functions
ReefAngel.TempProbe = T1_PROBE;
ReefAngel.OverheatProbe = T1_PROBE;
// Set the Overheat temperature setting
InternalMemory.OverheatTemp_write( 825 );
// Ports that are always on
ReefAngel.Relay.On( Port1 );
ReefAngel.Relay.On( Port2 );
////// Place additional initialization code below here
////// Place additional initialization code above here
}
void loop()
{
ReefAngel.StandardATO( Port3,30 );
ReefAngel.WavemakerRandom( Port5,60,120 );
ReefAngel.WavemakerRandom( Port6,60,120 );
ReefAngel.Relay.Set( Port7, !ReefAngel.Relay.Status( Port5 ) );
ReefAngel.Relay.Set( Port8, !ReefAngel.Relay.Status( Port6 ) );
ReefAngel.StandardLights( Box1_Port1,12,0,22,0 );
ReefAngel.StandardLights( Box1_Port2,12,0,22,0 );
ReefAngel.StandardLights( Box1_Port3,12,0,22,0 );
ReefAngel.StandardLights( Box1_Port4,12,0,22,0 );
ReefAngel.StandardLights( Box1_Port5,21,45,2,0 );
ReefAngel.StandardLights( Box1_Port6,21,45,2,0 );
ReefAngel.StandardLights( Box1_Port7,12,0,22,15 );
ReefAngel.StandardHeater( Box1_Port8,780,800 );
ReefAngel.PWM.SetDaylight( PWMParabola(12,0,22,0,15,100,15) );
ReefAngel.PWM.SetActinic( PWMParabola(12,0,22,0,15,100,15) );
////// Place your custom code below here
////// Place your custom code above here
// This should always be the last line
ReefAngel.Portal("Gugs Jr","used my ra portal password");
ReefAngel.ShowInterface();
}
Thank you in advance for any help.
1) My Relay Expansion is not showing up on the RA Portal, it is showing up on my Android App though.
2) I setup ports 5 and 6 on the main relay box to random my power heads from 60 to 120, then ports 7 and 8 on the main relay box to work opposite of ports 5 and 6.
Well that is working pretty good minus the fact that 5 never turns on.
3) I can't get my banner to update.
4) Not so much an issue just a question. I have my LED Drivers plugged into ports 1-4 on Relay Box 2, do I use the PWM Dimming ports on Relay Box 2 or the Main Box?
Here is my programming:
#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 <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 | Port5Bit | Port6Bit | Port7Bit | Port8Bit;
ReefAngel.FeedingModePortsE[0] = 0;
// Ports toggled in Water Change Mode
ReefAngel.WaterChangePorts = Port1Bit | Port2Bit | Port5Bit | Port6Bit | 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 = 0;
ReefAngel.OverheatShutoffPortsE[0] = Port8Bit;
// Use T1 probe as temperature and overheat functions
ReefAngel.TempProbe = T1_PROBE;
ReefAngel.OverheatProbe = T1_PROBE;
// Set the Overheat temperature setting
InternalMemory.OverheatTemp_write( 825 );
// Ports that are always on
ReefAngel.Relay.On( Port1 );
ReefAngel.Relay.On( Port2 );
////// Place additional initialization code below here
////// Place additional initialization code above here
}
void loop()
{
ReefAngel.StandardATO( Port3,30 );
ReefAngel.WavemakerRandom( Port5,60,120 );
ReefAngel.WavemakerRandom( Port6,60,120 );
ReefAngel.Relay.Set( Port7, !ReefAngel.Relay.Status( Port5 ) );
ReefAngel.Relay.Set( Port8, !ReefAngel.Relay.Status( Port6 ) );
ReefAngel.StandardLights( Box1_Port1,12,0,22,0 );
ReefAngel.StandardLights( Box1_Port2,12,0,22,0 );
ReefAngel.StandardLights( Box1_Port3,12,0,22,0 );
ReefAngel.StandardLights( Box1_Port4,12,0,22,0 );
ReefAngel.StandardLights( Box1_Port5,21,45,2,0 );
ReefAngel.StandardLights( Box1_Port6,21,45,2,0 );
ReefAngel.StandardLights( Box1_Port7,12,0,22,15 );
ReefAngel.StandardHeater( Box1_Port8,780,800 );
ReefAngel.PWM.SetDaylight( PWMParabola(12,0,22,0,15,100,15) );
ReefAngel.PWM.SetActinic( PWMParabola(12,0,22,0,15,100,15) );
////// Place your custom code below here
////// Place your custom code above here
// This should always be the last line
ReefAngel.Portal("Gugs Jr","used my ra portal password");
ReefAngel.ShowInterface();
}
Thank you in advance for any help.