Page 2 of 2
Re: wizard problem
Posted: Sun Mar 10, 2013 5:20 pm
by Redadeath
rimai wrote:Yes, single offset for both.
Replace what you have with the code above
sorry this is the first time i replace code would you help me
here is my code would you replace it for me so i learn
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 <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
Re: wizard problem
Posted: Sun Mar 10, 2013 6:17 pm
by rimai
Replace this:
Code: Select all
ReefAngel.ActinicLights( Port7 );
ReefAngel.DelayedStartLights( Port8 );
ReefAngel.PWM.DaylightPWMParabola();
ReefAngel.PWM.ActinicPWMParabola();
Re: wizard problem
Posted: Mon Mar 11, 2013 5:48 am
by Redadeath
It ignoring my internal memory setting now and it started from zero although I adjust the start on 13% and it is in auto mode
Re: wizard problem
Posted: Mon Mar 11, 2013 5:52 am
by Redadeath
- image.jpg (127.92 KiB) Viewed 6034 times
Re: wizard problem
Posted: Mon Mar 11, 2013 5:53 am
by Redadeath
I set both to start at 13% and end 50 %
also the client suite is stucked to on mode and i cannot change it to auto
would you please define the problem roberto as i am getting bored
thank you
Re: wizard problem
Posted: Mon Mar 11, 2013 8:47 am
by rimai
Sorry...
Wrong functions
Code: Select all
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
Re: wizard problem
Posted: Fri Mar 15, 2013 2:31 pm
by Redadeath
thank you roberto
it worked now well
Re: wizard problem
Posted: Thu Apr 11, 2013 4:23 pm
by Redadeath
hi roberto
i need the actinic to start before daylight with 60 minutes
note : that i have both blue led and white led working on acticin offset
i need to make blue led start before white with 60 minutes
this is the original code
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 <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
Code: Select all
ReefAngel.PWM.StandardActinic(InternalMemory.ActinicOffset_read()+60); // Parabola using actinic offset
Re: wizard problem
Posted: Thu Apr 11, 2013 4:42 pm
by rimai
Remove the offset from the daylight channel
Re: wizard problem
Posted: Thu Apr 11, 2013 6:05 pm
by Redadeath
but i still need to start the white led before the metal halide
so
actinic start first
then white led
then metalhalide
Re: wizard problem
Posted: Thu Apr 11, 2013 6:08 pm
by Redadeath
what i am running now on the actinic offset it bothe white and blue led
and the metal halide on standard day light schedule
and what i am trying to modify i having different offset for white and blue led
i hope you understand what i mean
Re: wizard problem
Posted: Thu Apr 11, 2013 6:21 pm
by rimai
What you posted should have worked then.
Re: wizard problem
Posted: Thu Apr 11, 2013 7:27 pm
by Redadeath
So do i have to add+60 to the code as i showed before
Re: wizard problem
Posted: Thu Apr 11, 2013 7:51 pm
by Redadeath
CODE: SELECT ALL
ReefAngel.PWM.StandardActinic(InternalMemory.ActinicOffset_read()+60); // Parabola using actinic offset
Re: wizard problem
Posted: Thu Apr 11, 2013 7:57 pm
by rimai
Yeah, that should have worked.
Re: wizard problem
Posted: Thu Apr 11, 2013 8:12 pm
by Redadeath
I tried it but it didnt work
Re: wizard problem
Posted: Thu Apr 11, 2013 8:29 pm
by rimai
What if you do this:
Code: Select all
ReefAngel.PWM.StandardActinic(120);
Re: wizard problem
Posted: Thu Apr 11, 2013 9:05 pm
by Redadeath
Why 120 i just need it to start before white led with 60 minutes
Re: wizard problem
Posted: Thu Apr 11, 2013 9:07 pm
by Redadeath
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
Re: wizard problem
Posted: Thu Apr 11, 2013 9:12 pm
by rimai
Just use hard code setting.
120 is the offset from halide.
Re: wizard problem
Posted: Thu Apr 11, 2013 9:27 pm
by Redadeath
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
Re: wizard problem
Posted: Thu Apr 11, 2013 9:30 pm
by rimai
It should...
Just try it.
Re: wizard problem
Posted: Thu Apr 11, 2013 10:36 pm
by Redadeath
I try it doesnt work and both white and blue channels ignored my pwm settings
Re: wizard problem
Posted: Thu Apr 11, 2013 10:39 pm
by Redadeath
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
Re: wizard problem
Posted: Fri Apr 12, 2013 12:00 am
by Redadeath
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
Re: wizard problem
Posted: Fri Apr 12, 2013 7:36 am
by rimai
Ahh, you need to offset the relay port too then.
Re: wizard problem
Posted: Fri Apr 12, 2013 9:41 am
by Redadeath
would you give me the code for that Roberto please
but it is ignoring my internal memory settings for % of starting parabola
Re: wizard problem
Posted: Fri Apr 12, 2013 10:02 am
by rimai
Code: Select all
ReefAngel.StandardLights(Port7,60);
There is a doxygen doc with all the functions here:
http://www.easte.net/RA/html/class_reef ... class.html