Page 1 of 1

Heater will not turn on

Posted: Sun Nov 09, 2014 5:38 pm
by midwestornamental
Hello,

Just realized that my heater has not turned on and my tank temp dropped to 73. The heater had been working fine but now when it should be on its not. I can turn it on and off with the phone app but when I select auto nothing happens.

Is there something in my code that would cause this? Here's my code. Any help with this would be greatly appreciated.
#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 <Humidity.h>
#include <DCPump.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.Use2014Screen(); // Let's use 2014 Screen
// Ports toggled in Feeding Mode
ReefAngel.FeedingModePorts = 0;
// Ports toggled in Water Change Mode
ReefAngel.WaterChangePorts = Port1Bit | Port2Bit;
// Ports toggled when Lights On / Off menu entry selected
ReefAngel.LightsOnPorts = 0;
// Ports turned off when Overheat temperature exceeded
ReefAngel.OverheatShutoffPorts = 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( 869 );


// Ports that are always on
ReefAngel.Relay.On( Port1 );
ReefAngel.Relay.On( Port4 );
ReefAngel.Relay.On( Port5 );




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


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

void loop()
{
ReefAngel.StandardLights( Port8,13,30,22,30 );
ReefAngel.Relay.DelayedOn( Port2,3 );
ReefAngel.StandardHeater( Port3,79,80 );
ReefAngel.StandardATO( Port6,3600 );
ReefAngel.StandardLights( Port7,22,30,10,30 );
////// Place your custom code below here


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

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

Re: Heater will not turn on

Posted: Sun Nov 09, 2014 10:46 pm
by davaraj
I think you should replace this:
ReefAngel.StandardHeater( Port3,79,80 );
With this:
ReefAngel.StandardHeater( Port3,790,800);

Re: Heater will not turn on

Posted: Mon Nov 10, 2014 6:24 am
by cosmith71
davaraj wrote:I think you should replace this:
ReefAngel.StandardHeater( Port3,79,80 );
With this:
ReefAngel.StandardHeater( Port3,790,800);
Yep, this. 79 degrees is 790, 79.2 degrees is 792. 7.9 degrees is 79. :shock:

--Colin

Re: Heater will not turn on

Posted: Mon Nov 10, 2014 4:05 pm
by midwestornamental
Thanks!

Re: Heater will not turn on

Posted: Tue Nov 11, 2014 8:18 am
by lnevo
I've made that mistake myself.. :)

Re: Heater will not turn on

Posted: Fri Nov 14, 2014 10:57 am
by binder
lnevo wrote:I've made that mistake myself.. :)
i think we all have at some point. :-)


Sent from my iPad mini