wizard problem

New members questions
Redadeath
Posts: 54
Joined: Sun Mar 03, 2013 7:50 pm

Re: wizard problem

Post 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
when it comes to programming i "always need help "
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: wizard problem

Post by rimai »

Replace this:

Code: Select all

    ReefAngel.ActinicLights( Port7 );
    ReefAngel.DelayedStartLights( Port8 );
    ReefAngel.PWM.DaylightPWMParabola();
    ReefAngel.PWM.ActinicPWMParabola();
Roberto.
Redadeath
Posts: 54
Joined: Sun Mar 03, 2013 7:50 pm

Re: wizard problem

Post 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
when it comes to programming i "always need help "
Redadeath
Posts: 54
Joined: Sun Mar 03, 2013 7:50 pm

Re: wizard problem

Post by Redadeath »

image.jpg
image.jpg (127.92 KiB) Viewed 4780 times
when it comes to programming i "always need help "
Redadeath
Posts: 54
Joined: Sun Mar 03, 2013 7:50 pm

Re: wizard problem

Post 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
when it comes to programming i "always need help "
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: wizard problem

Post 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
Roberto.
Redadeath
Posts: 54
Joined: Sun Mar 03, 2013 7:50 pm

Re: wizard problem

Post by Redadeath »

thank you roberto
it worked now well
when it comes to programming i "always need help "
Redadeath
Posts: 54
Joined: Sun Mar 03, 2013 7:50 pm

Re: wizard problem

Post 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
when it comes to programming i "always need help "
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: wizard problem

Post by rimai »

Remove the offset from the daylight channel

Code: Select all

ReefAngel.PWM.StandardDaylight();
Roberto.
Redadeath
Posts: 54
Joined: Sun Mar 03, 2013 7:50 pm

Re: wizard problem

Post by Redadeath »

but i still need to start the white led before the metal halide

so

actinic start first
then white led

then metalhalide
when it comes to programming i "always need help "
Redadeath
Posts: 54
Joined: Sun Mar 03, 2013 7:50 pm

Re: wizard problem

Post 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
when it comes to programming i "always need help "
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: wizard problem

Post by rimai »

What you posted should have worked then.
Roberto.
Redadeath
Posts: 54
Joined: Sun Mar 03, 2013 7:50 pm

Re: wizard problem

Post by Redadeath »

So do i have to add+60 to the code as i showed before
when it comes to programming i "always need help "
Redadeath
Posts: 54
Joined: Sun Mar 03, 2013 7:50 pm

Re: wizard problem

Post by Redadeath »

CODE: SELECT ALL
ReefAngel.PWM.StandardActinic(InternalMemory.ActinicOffset_read()+60); // Parabola using actinic offset
when it comes to programming i "always need help "
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: wizard problem

Post by rimai »

Yeah, that should have worked.
Roberto.
Redadeath
Posts: 54
Joined: Sun Mar 03, 2013 7:50 pm

Re: wizard problem

Post by Redadeath »

I tried it but it didnt work
when it comes to programming i "always need help "
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: wizard problem

Post by rimai »

What if you do this:

Code: Select all

ReefAngel.PWM.StandardActinic(120);
Roberto.
Redadeath
Posts: 54
Joined: Sun Mar 03, 2013 7:50 pm

Re: wizard problem

Post by Redadeath »

Why 120 i just need it to start before white led with 60 minutes
when it comes to programming i "always need help "
Redadeath
Posts: 54
Joined: Sun Mar 03, 2013 7:50 pm

Re: wizard problem

Post 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
Attachments
image.jpg
image.jpg (73.16 KiB) Viewed 4922 times
when it comes to programming i "always need help "
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: wizard problem

Post by rimai »

Just use hard code setting.
120 is the offset from halide.
Roberto.
Redadeath
Posts: 54
Joined: Sun Mar 03, 2013 7:50 pm

Re: wizard problem

Post 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
when it comes to programming i "always need help "
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: wizard problem

Post by rimai »

It should...
Just try it.
Roberto.
Redadeath
Posts: 54
Joined: Sun Mar 03, 2013 7:50 pm

Re: wizard problem

Post by Redadeath »

I try it doesnt work and both white and blue channels ignored my pwm settings
when it comes to programming i "always need help "
Redadeath
Posts: 54
Joined: Sun Mar 03, 2013 7:50 pm

Re: wizard problem

Post 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
when it comes to programming i "always need help "
Redadeath
Posts: 54
Joined: Sun Mar 03, 2013 7:50 pm

Re: wizard problem

Post 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
when it comes to programming i "always need help "
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: wizard problem

Post by rimai »

Ahh, you need to offset the relay port too then.
Roberto.
Redadeath
Posts: 54
Joined: Sun Mar 03, 2013 7:50 pm

Re: wizard problem

Post by Redadeath »

would you give me the code for that Roberto please

but it is ignoring my internal memory settings for % of starting parabola
when it comes to programming i "always need help "
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: wizard problem

Post 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
Roberto.
Post Reply