#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 <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.SetTemperatureUnit( Celsius ); // set to Celsius Temperature
// Ports toggled in Feeding Mode
ReefAngel.FeedingModePorts = Port1Bit | Port2Bit | Port5Bit;
// Ports toggled in Water Change Mode
ReefAngel.WaterChangePorts = Port1Bit | Port2Bit | Port5Bit;
// Ports toggled when Lights On / Off menu entry selected
ReefAngel.LightsOnPorts = Port7Bit | Port8Bit;
// Ports turned off when Overheat temperature exceeded
ReefAngel.OverheatShutoffPorts = Port8Bit;
// Use T1 probe as temperature and overheat functions
ReefAngel.TempProbe = T1_PROBE;
ReefAngel.OverheatProbe = T1_PROBE;
// Ports that are always on
ReefAngel.Relay.On( Port1 );
ReefAngel.Relay.On( Port5 );
ReefAngel.Relay.On( Port6 );
////// Place additional initialization code below here
////// Place additional initialization code above here
}
void loop()
{
ReefAngel.Relay.DelayedOn( Port2 );
ReefAngel.StandardHeater( Port3 );
ReefAngel.StandardFan( Port4 );
ReefAngel.ActinicLights( Port7 );
ReefAngel.DelayedStartLights( Port8 );
ReefAngel.PWM.DaylightPWMParabola();
ReefAngel.PWM.ActinicPWMParabola();
////// Place your custom code below here
////// Place your custom code above here
// This should always be the last line
ReefAngel.Portal( "redadeath" );
ReefAngel.ShowInterface();
}
also what application would i use to modify the values of internal memmory
clientsuite - portal- ...etc
thank you roberto
when it comes to programming i "always need help "
ReefAngel.ActinicLights( Port7 ); // turn port 7 with actinic offset over standard lights schedule
ReefAngel.DelayedStartLights( Port8 ); // turn port 8 using standard lights schedule
ReefAngel.PWM.ActinicPWMParabola(InternalMemory.ActinicOffset_read()); // Parabola using actinic offset
ReefAngel.PWM.DaylightPWMParabola(InternalMemory.ActinicOffset_read()); // Parabola using actinic offset
#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 <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.SetTemperatureUnit( Celsius ); // set to Celsius Temperature
// Ports toggled in Feeding Mode
ReefAngel.FeedingModePorts = Port1Bit | Port2Bit | Port5Bit;
// Ports toggled in Water Change Mode
ReefAngel.WaterChangePorts = Port1Bit | Port2Bit | Port5Bit;
// Ports toggled when Lights On / Off menu entry selected
ReefAngel.LightsOnPorts = Port7Bit | Port8Bit;
// Ports turned off when Overheat temperature exceeded
ReefAngel.OverheatShutoffPorts = Port8Bit;
// Use T1 probe as temperature and overheat functions
ReefAngel.TempProbe = T1_PROBE;
ReefAngel.OverheatProbe = T1_PROBE;
// Ports that are always on
ReefAngel.Relay.On( Port1 );
ReefAngel.Relay.On( Port5 );
ReefAngel.Relay.On( Port6 );
////// Place additional initialization code below here
////// Place additional initialization code above here
}
void loop()
{
ReefAngel.Relay.DelayedOn( Port2 );
ReefAngel.StandardHeater( Port3 );
ReefAngel.StandardFan( Port4 );
ReefAngel.ActinicLights( Port7 ); // turn port 7 with actinic offset over standard lights schedule
ReefAngel.DelayedStartLights( Port8 ); // turn port 8 using standard lights schedule
ReefAngel.PWM.StandardActinic(InternalMemory.ActinicOffset_read()); // Parabola using actinic offset
ReefAngel.PWM.StandardDaylight(InternalMemory.ActinicOffset_read()); // Parabola using actinic offset
////// Place your custom code below here
////// Place your custom code above here
// This should always be the last line
ReefAngel.Portal( "redadeath" );
ReefAngel.ShowInterface();
}
i tried to modify this line like shown by adding +60 but it didnt work
what should i do
thank you
Here is my light system so u can imqgine what i am talking about
I have blue and white led and metal halide i need blue first then white then metal halide
Attachments
image.jpg (73.16 KiB) Viewed 6187 times
when it comes to programming i "always need help "
ReefAngel.ActinicLights( Port7 ); // turn port 7 with actinic offset over standard lights schedule
ReefAngel.DelayedStartLights( Port8 ); // turn port 8 using standard lights schedule
ReefAngel.PWM.ActinicPWMParabola(120); // Parabola using actinic offset
ReefAngel.PWM.DaylightPWMParabola(InternalMemory.ActinicOffset_read()); // Parabola using actinic offset
Would this code work
when it comes to programming i "always need help "
rimai wrote:Ahh..
So, you want mh on the standardlights and both actinic and daylight on the standardlights + offset?
Is that it?
Both AP and DP will dim together, right? Or you also want offset for AP and DP?
This is what i need
Offset for ap and offset for dp
when it comes to programming i "always need help "
CODE: SELECT ALL
ReefAngel.PWM.StandardActinic(InternalMemory.ActinicOffset_read()+60); // Parabola using actinic offset
When i use this code the relay start at the time of the actinic offset and shut down at the end in the same time the ap pwm signals still works for additional hour while the relay is already been shutdown
when it comes to programming i "always need help "