Reef Angel Interface Freezing

New members questions
Post Reply
mjstokes
Posts: 4
Joined: Tue Apr 23, 2013 6:21 pm

Reef Angel Interface Freezing

Post by mjstokes »

Hi all, just got my Reef Angel a few days ago, and starting coding a function to turn my heater on/off based on temperature. It seems to be working great as my temperature has been very constant over the past 2 days, however, the screen on the RA freezes and will not allow me to do anything, even though it it still running it code correctly.

Here is my current 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.AddStandardMenu();  // Add Standard Menu

    // Ports toggled in Feeding Mode
    ReefAngel.FeedingModePorts = 0;
    // Ports toggled in Water Change Mode
    ReefAngel.WaterChangePorts = Port1Bit | Port2Bit | Port4Bit | Port5Bit;
    // Ports toggled when Lights On / Off menu entry selected
    ReefAngel.LightsOnPorts = 0;
    // Ports turned off when Overheat temperature exceeded
    ReefAngel.OverheatShutoffPorts = Port5Bit | Port8Bit;
    // Use T1 probe as temperature and overheat functions
    ReefAngel.TempProbe = T1_PROBE;
    ReefAngel.OverheatProbe = T1_PROBE;
    // Set the Overheat temperature setting
    InternalMemory.OverheatTemp_write( 830 );


    // Ports that are always on
    ReefAngel.Relay.On( Port1 );
    ReefAngel.Relay.On( Port2 );
    ReefAngel.Relay.On( Port3 );
    ReefAngel.Relay.On( Port4 );
    ReefAngel.Relay.On( Port8 );

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

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

void loop()
{
    ReefAngel.StandardHeater( Port5,760,765 );
    ////// Place your custom code below here
    

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

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

Any help you could provide would be greatly appreciated! Thanks!
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Reef Angel Interface Freezing

Post by rimai »

It's most likely just the screen itself, since you mentioned that it continues to work.
PM for details on RMA.
Roberto.
mjstokes
Posts: 4
Joined: Tue Apr 23, 2013 6:21 pm

Re: Reef Angel Interface Freezing

Post by mjstokes »

Will do
mjstokes
Posts: 4
Joined: Tue Apr 23, 2013 6:21 pm

Re: Reef Angel Interface Freezing

Post by mjstokes »

I don't see a PM option, do I need a certain number of posts first?
pandimus
Posts: 213
Joined: Mon Apr 01, 2013 7:58 pm

Re: Reef Angel Interface Freezing

Post by pandimus »

I believe five.so say "ok thanks", and you should be there.
Post Reply