Wave pump mode new RA*

Basic / Standard Reef Angel hardware
Post Reply
riggeek
Posts: 115
Joined: Wed Sep 12, 2012 8:41 am

Wave pump mode new RA*

Post by riggeek »

Does anyone have any idea why the uapp faults out when I try to swap pump modes?

I programmed it on lagoon and can not change it. I just used the wizard to programming.

When I try to change it it just times out, and does not change.

Any idea?

thanks
riggeek

Image
binder
Posts: 2871
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: Wave pump mode new RA*

Post by binder »

did you hard code the mode? or did you program the controller to use the internal memory?

Sent from my XT1585 using Tapatalk
riggeek
Posts: 115
Joined: Wed Sep 12, 2012 8:41 am

Re: Wave pump mode new RA*

Post by riggeek »

though I selected internal memory. I can change light time, and levels, kalk dosing, and other things. I just can not change the pumps.
riggeek

Image
riggeek
Posts: 115
Joined: Wed Sep 12, 2012 8:41 am

Re: Wave pump mode new RA*

Post by riggeek »

Do we still think it is programing
riggeek

Image
binder
Posts: 2871
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: Wave pump mode new RA*

Post by binder »

riggeek wrote:Do we still think it is programing
post your code.

Sent from my XT1585 using Tapatalk
riggeek
Posts: 115
Joined: Wed Sep 12, 2012 8:41 am

Re: Wave pump mode new RA*

Post by riggeek »

#include <Salinity.h>
#include <ReefAngel_Features.h>
#include <Globals.h>
#include <RA_TS.h>
#include <RA_TouchLCD.h>
#include <RA_TFT.h>
#include <RA_TS.h>
#include <Font.h>
#include <RA_Wifi.h>
#include <RA_Wiznet5100.h>
#include <SD.h>
#include <SPI.h>
#include <Ethernet.h>
#include <EthernetDHCP.h>
#include <PubSubClient.h>
#include <Wire.h>
#include <OneWire.h>
#include <Time.h>
#include <DS1307RTC.h>
#include <InternalEEPROM.h>
#include <RA_ATO.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 <RA_CustomLabels.h>
#include <RF.h>
#include <IO.h>
#include <ORP.h>
#include <AI.h>
#include <PH.h>
#include <WaterLevel.h>
#include <Humidity.h>
#include <PAR.h>
#include <DCPump.h>
#include <ReefAngel.h>
#include <SoftwareSerial.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.Star();
// Ports toggled in Feeding Mode
ReefAngel.FeedingModePorts = 0;
ReefAngel.FeedingModePortsE[0] = 0;
ReefAngel.FeedingModePortsE[1] = 0;
// Ports toggled in Water Change Mode
ReefAngel.WaterChangePorts = 0;
ReefAngel.WaterChangePortsE[0] = Port1Bit | Port2Bit;
ReefAngel.WaterChangePortsE[1] = 0;
// Ports turned off when Overheat temperature exceeded
ReefAngel.OverheatShutoffPorts = 0;
ReefAngel.OverheatShutoffPortsE[0] = Port3Bit | Port4Bit | Port5Bit;
ReefAngel.OverheatShutoffPortsE[1] = 0;
// Ports toggled when Lights On / Off menu entry selected
ReefAngel.LightsOnPorts = 0;
ReefAngel.LightsOnPortsE[0] = Port3Bit | Port5Bit;
ReefAngel.LightsOnPortsE[1] = 0;
// Use T1 probe as temperature and overheat functions
ReefAngel.TempProbe = T1_PROBE;
ReefAngel.OverheatProbe = T1_PROBE;
// Set the Overheat temperature setting
InternalMemory.OverheatTemp_write( 790 );
// Feeeding and Water Change mode speed
ReefAngel.DCPump.FeedingSpeed=0;
ReefAngel.DCPump.WaterChangeSpeed=0;

// Ports that are always on
ReefAngel.Relay.On( Box1_Port6 );
ReefAngel.Relay.On( Box1_Port7 );
ReefAngel.Relay.On( Box1_Port8 );

////// Place additional initialization code below here


////// Place additional initialization code above here
}

void loop()
{
ReefAngel.SingleATOLow( Box1_Port1 );
ReefAngel.DosingPumpRepeat1( Box1_Port2 );
ReefAngel.Relay.Set( Box1_Port3, !ReefAngel.Relay.Status( Box1_Port5 ) );
ReefAngel.StandardHeater1( Box1_Port4 );
ReefAngel.StandardLights( Box1_Port5 );
ReefAngel.PWM.DaylightPWMSlope();
ReefAngel.PWM.ActinicPWMSlope();
ReefAngel.DCPump.UseMemory = false;
ReefAngel.DCPump.SetMode( Lagoon,50,10 );
ReefAngel.DCPump.DaylightChannel = None;
ReefAngel.DCPump.ActinicChannel = None;
ReefAngel.DCPump.Daylight2Channel = Sync;
ReefAngel.DCPump.Actinic2Channel = AntiSync;

boolean buzzer=false;
if ( ReefAngel.isATOTimeOut() ) buzzer=true;
if ( ReefAngel.isOverheat() ) buzzer=true;
if ( ReefAngel.isBusLock() ) buzzer=true;
if ( buzzer ) ReefAngel.BuzzerOn(2); else ReefAngel.BuzzerOff();

////// Place your custom code below here


////// Place your custom code above here

ReefAngel.Network.Cloud();
// This should always be the last line
ReefAngel.ShowTouchInterface();
}



// RA_STRING1=U2FsdGVkX19aL/7SAbcu/cSNYLbA2zgwzRGnL+NV8E0=
// RA_STRING2=null
// RA_STRING3=null
// RA_LABEL LABEL_ACTINIC=Actinic
// RA_LABEL LABEL_ACTINIC2=Actinic 2
// RA_LABEL LABEL_DAYLIGHT=Daylight
// RA_LABEL LABEL_DAYLIGHT2=Daylight 2
// RA_LABEL LABEL_PORT11=ATO
// RA_LABEL LABEL_PORT12=Kalk
// RA_LABEL LABEL_PORT13=Rlight
// RA_LABEL LABEL_PORT14=Heater
// RA_LABEL LABEL_PORT15=LED
// RA_LABEL LABEL_PORT16=Rpump
// RA_LABEL LABEL_PORT17=Skim
// RA_LABEL LABEL_PORT18=Wave
// RA_LABEL LABEL_PORT21=Port 21
// RA_LABEL LABEL_PORT22=Port 22
// RA_LABEL LABEL_PORT23=Port 23
// RA_LABEL LABEL_PORT24=Port 24
// RA_LABEL LABEL_PORT25=Port 25
// RA_LABEL LABEL_PORT26=Port 26
// RA_LABEL LABEL_PORT27=Port 27
// RA_LABEL LABEL_PORT28=Port 28
riggeek

Image
binder
Posts: 2871
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: Wave pump mode new RA*

Post by binder »

This line says it all:

Code: Select all

ReefAngel.DCPump.UseMemory = false;
Your DC Pump control is hard coded and will not use the internal memory at all. It will always use this:

Code: Select all

ReefAngel.DCPump.SetMode( Lagoon,50,10 );
So, if you want to use the internal memory and control it remotely, you will need to remove the SetMode(Lagoon) line and change the memory line to this:

Code: Select all

ReefAngel.DCPump.UseMemory = true;
Then the controller will always use what values are in Internal Memory. Which means you should set them to a sensible value first, then change the UseMemory line and remove the SetMode line.
riggeek
Posts: 115
Joined: Wed Sep 12, 2012 8:41 am

Re: Wave pump mode new RA*

Post by riggeek »

thanks

still a working in progress at this point.
riggeek

Image
binder
Posts: 2871
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: Wave pump mode new RA*

Post by binder »

riggeek wrote:thanks

still a working in progress at this point.
it seems like they always are...
I know mine is.

Sent from my XT1585 using Tapatalk
riggeek
Posts: 115
Joined: Wed Sep 12, 2012 8:41 am

Re: Wave pump mode new RA*

Post by riggeek »

Still not working right

here is the code again

#include <Salinity.h>
#include <ReefAngel_Features.h>
#include <Globals.h>
#include <RA_TS.h>
#include <RA_TouchLCD.h>
#include <RA_TFT.h>
#include <RA_TS.h>
#include <Font.h>
#include <RA_Wifi.h>
#include <RA_Wiznet5100.h>
#include <SD.h>
#include <SPI.h>
#include <Ethernet.h>
#include <EthernetDHCP.h>
#include <PubSubClient.h>
#include <Wire.h>
#include <OneWire.h>
#include <Time.h>
#include <DS1307RTC.h>
#include <InternalEEPROM.h>
#include <RA_ATO.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 <RA_CustomLabels.h>
#include <RF.h>
#include <IO.h>
#include <ORP.h>
#include <AI.h>
#include <PH.h>
#include <WaterLevel.h>
#include <Humidity.h>
#include <PAR.h>
#include <DCPump.h>
#include <ReefAngel.h>
#include <SoftwareSerial.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.Star();
ReefAngel.AddWaterLevelExpansion(); // Water Level Expansion Module
// Ports toggled in Feeding Mode
ReefAngel.FeedingModePorts = 0;
ReefAngel.FeedingModePortsE[0] = Port2Bit | Port7Bit | Port8Bit;
ReefAngel.FeedingModePortsE[1] = 0;
// Ports toggled in Water Change Mode
ReefAngel.WaterChangePorts = 0;
ReefAngel.WaterChangePortsE[0] = Port1Bit | Port2Bit | Port8Bit;
ReefAngel.WaterChangePortsE[1] = 0;
// Ports turned off when Overheat temperature exceeded
ReefAngel.OverheatShutoffPorts = 0;
ReefAngel.OverheatShutoffPortsE[0] = Port3Bit | Port4Bit | Port5Bit;
ReefAngel.OverheatShutoffPortsE[1] = 0;
// Ports toggled when Lights On / Off menu entry selected
ReefAngel.LightsOnPorts = 0;
ReefAngel.LightsOnPortsE[0] = Port3Bit | Port5Bit;
ReefAngel.LightsOnPortsE[1] = 0;
// Use T1 probe as temperature and overheat functions
ReefAngel.TempProbe = T1_PROBE;
ReefAngel.OverheatProbe = T1_PROBE;
// Set the Overheat temperature setting
InternalMemory.OverheatTemp_write( 790 );
// Feeeding and Water Change mode speed
ReefAngel.DCPump.FeedingSpeed=0;
ReefAngel.DCPump.WaterChangeSpeed=0;

// Ports that are always on
ReefAngel.Relay.On( Box1_Port6 );
ReefAngel.Relay.On( Box1_Port7 );
ReefAngel.Relay.On( Box1_Port8 );

////// Place additional initialization code below here


////// Place additional initialization code above here
}

void loop()
{
ReefAngel.SingleATOLow( Box1_Port1 );
ReefAngel.DosingPumpRepeat1( Box1_Port2 );
ReefAngel.Relay.Set( Box1_Port3, !ReefAngel.Relay.Status( Box1_Port5 ) );
ReefAngel.StandardHeater1( Box1_Port4 );
ReefAngel.StandardLights( Box1_Port5 );
ReefAngel.PWM.DaylightPWMParabola();
ReefAngel.PWM.ActinicPWMParabola();
ReefAngel.DCPump.UseMemory = true;
ReefAngel.DCPump.SetMode( Lagoon,50,10 );
ReefAngel.DCPump.DaylightChannel = None;
ReefAngel.DCPump.ActinicChannel = None;
ReefAngel.DCPump.Daylight2Channel = Sync;
ReefAngel.DCPump.Actinic2Channel = AntiSync;

boolean buzzer=false;
if ( ReefAngel.isATOTimeOut() ) buzzer=true;
if ( ReefAngel.isOverheat() ) buzzer=true;
if ( ReefAngel.isBusLock() ) buzzer=true;
if ( buzzer ) ReefAngel.BuzzerOn(2); else ReefAngel.BuzzerOff();

////// Place your custom code below here


////// Place your custom code above here

ReefAngel.Network.Cloud();
// This should always be the last line
ReefAngel.ShowTouchInterface();
}



// RA_STRING1=U2FsdGVkX1+A7n1/gG5uO89kqJa/wC0XzX2jNCiREAY=
// RA_STRING2=null
// RA_STRING3=null
// RA_LABEL LABEL_ACTINIC=Actinic
// RA_LABEL LABEL_ACTINIC2=wave 2
// RA_LABEL LABEL_DAYLIGHT=Daylight
// RA_LABEL LABEL_DAYLIGHT2=wave 1
// RA_LABEL LABEL_PORT11=ATO
// RA_LABEL LABEL_PORT12=Kalk
// RA_LABEL LABEL_PORT13=Rlight
// RA_LABEL LABEL_PORT14=Heater
// RA_LABEL LABEL_PORT15=LED
// RA_LABEL LABEL_PORT16=Rpump
// RA_LABEL LABEL_PORT17=Skimmer
// RA_LABEL LABEL_PORT18=Wave
// RA_LABEL LABEL_PORT21=Port 21
// RA_LABEL LABEL_PORT22=Port 22
// RA_LABEL LABEL_PORT23=Port 23
// RA_LABEL LABEL_PORT24=Port 24
// RA_LABEL LABEL_PORT25=Port 25
// RA_LABEL LABEL_PORT26=Port 26
// RA_LABEL LABEL_PORT27=Port 27
// RA_LABEL LABEL_PORT28=Port 28
riggeek

Image
binder
Posts: 2871
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: Wave pump mode new RA*

Post by binder »

remove this line entirely:

Code: Select all

 ReefAngel.DCPump.SetMode( Lagoon,50,10 );
that overrides anything that gets read from memory.

Sent from my XT1585 using Tapatalk
riggeek
Posts: 115
Joined: Wed Sep 12, 2012 8:41 am

Re: Wave pump mode new RA*

Post by riggeek »

Thanks again

that got it.

I had it that way the first try remote uploaded the code and got distracted. guess it never loaded. lol

thanks
riggeek

Image
binder
Posts: 2871
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: Wave pump mode new RA*

Post by binder »

welcome.
glad it’s working now.


Sent from my iPad using Tapatalk
Post Reply