Heater masking itself off

Community contributed apps
Post Reply
barbianj
Posts: 56
Joined: Sat Jul 21, 2012 12:25 pm

Heater masking itself off

Post by barbianj »

Not sure where to post this, but since last Saturday, my heater will randomly be masked to off on my Android app. At first, I thought that I had accidentally swiped the button, but it has happened many times since. It was working fine previously, and I can't put a finger on what event might be triggering it. Any thoughts?
Image
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Heater masking itself off

Post by rimai »

Could it be overheat flag?
Does the controller have a red status led?
Roberto.
barbianj
Posts: 56
Joined: Sat Jul 21, 2012 12:25 pm

Re: Heater masking itself off

Post by barbianj »

The controller does have the red status led on, but I cleared that by pressing ATO clear. I didn't try overheat clear.

My tank water has been around 73-74 until today, so it could not have been over temp. I've been watching my phone for the mask and taking it off. Now it's finally at 75.3. It's set to turn on at 76.6 and off at 77.0.

I noticed something else odd. In the Portal, my daylight PWM is at 20%, but I'm not using that function, that I'm aware of.

Here's my code:

#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
// Ports toggled in Feeding Mode
ReefAngel.FeedingModePorts = Port1Bit | Port5Bit | Port6Bit | Port7Bit | Port8Bit;
// Ports toggled in Water Change Mode
ReefAngel.WaterChangePorts = Port1Bit | Port7Bit | Port8Bit;
// Ports toggled when Lights On / Off menu entry selected
ReefAngel.LightsOnPorts = Port2Bit | Port3Bit | Port4Bit;
// Ports turned off when Overheat temperature exceeded
ReefAngel.OverheatShutoffPorts = Port7Bit;
// Use T1 probe as temperature and overheat functions
ReefAngel.TempProbe = T1_PROBE;
ReefAngel.OverheatProbe = T1_PROBE;
// Set the Overheat temperature setting
InternalMemory.OverheatTemp_write( 800 );


// Ports that are always on
ReefAngel.Relay.On( Port6 );
ReefAngel.Relay.On( Port8 );

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


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

void loop()
{
ReefAngel.StandardLights( Port2,6,0,23,0 );
ReefAngel.StandardLights( Port3,13,0,22,0 );
ReefAngel.StandardLights( Port4,14,0,18,0 );
ReefAngel.Wavemaker( Port5,6 );
ReefAngel.StandardHeater( Port7,766,770 );
////// Place your custom code below here

if (ReefAngel.WaterLevel.GetLevel()<40 && ReefAngel.WaterLevel.GetLevel()>0) ReefAngel.Relay.On(Port1);
if (ReefAngel.WaterLevel.GetLevel()>45) ReefAngel.Relay.Off(Port1);

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

// This should always be the last line
ReefAngel.Portal( "barbianj" );
ReefAngel.ShowInterface();
}

void DrawCustomMain()
{
int x,y;
char text[10];
// Parameters
#if defined DisplayLEDPWM && ! defined RemoveAllLights
ReefAngel.LCD.DrawMonitor( 15, 20, ReefAngel.Params,
ReefAngel.PWM.GetDaylightValue(), ReefAngel.PWM.GetActinicValue() );
#else // defined DisplayLEDPWM && ! defined RemoveAllLights
ReefAngel.LCD.DrawMonitor( 15, 20, ReefAngel.Params );
#endif // defined DisplayLEDPWM && ! defined RemoveAllLights
pingSerial();

// Water Level
ReefAngel.LCD.DrawText( COLOR_DARKGOLDENROD,DefaultBGColor,75,66, "WL:" );
ReefAngel.LCD.DrawText( COLOR_DARKGOLDENROD,DefaultBGColor,99,66, ReefAngel.WaterLevel.GetLevel() );
pingSerial();

// Main Relay Box
byte TempRelay = ReefAngel.Relay.RelayData;
TempRelay &= ReefAngel.Relay.RelayMaskOff;
TempRelay |= ReefAngel.Relay.RelayMaskOn;
ReefAngel.LCD.DrawOutletBox( 12, 92, TempRelay );
pingSerial();

// Date and Time
ReefAngel.LCD.DrawDate( 6, 122 );
pingSerial();
}

void DrawCustomGraph()
{
}
Image
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Heater masking itself off

Post by rimai »

Are you using extension?

Change this:

Code: Select all

 ReefAngel.TempProbe = T1_PROBE;
 ReefAngel.OverheatProbe = T1_PROBE;
With this:

Code: Select all

 ReefAngel.TempProbe = T2_PROBE;
 ReefAngel.OverheatProbe = T2_PROBE;
Now, dip your T2 in the water.
Let's see what happens.
Roberto.
barbianj
Posts: 56
Joined: Sat Jul 21, 2012 12:25 pm

Re: Heater masking itself off

Post by barbianj »

Yes, using extension, but it's not necessary. Wasn't quite long enough to make it to DT one floor above, so it's in the sump.

Changed code, uploaded, put T2 in water. Reads 76.1, same as T1, and heater is on.
Image
barbianj
Posts: 56
Joined: Sat Jul 21, 2012 12:25 pm

Re: Heater masking itself off

Post by barbianj »

So far the heater has been running with no issues. Have not seen the mask magically appear.
Image
iiluisii
Posts: 80
Joined: Mon Jul 09, 2012 10:16 am

Re: Heater masking itself off

Post by iiluisii »

The same happen to me last night .
Post Reply