Controller heater temp issue

Basic / Standard Reef Angel hardware
Post Reply
User avatar
madweazl
Posts: 44
Joined: Tue Dec 03, 2013 3:08 am
Location: Fredericksburg, VA

Controller heater temp issue

Post by madweazl »

Controller is set to turn heater on at 77° and off at 78° but it actually turns on at 79.1° and off at 79.9° according to temp sensor 1 (no other temp sensors plugged in). I dont mind the delta between the two but it seemed odd that the controller and sensor were off by a degree. Is this normal behavior? Is it something I can correct?
Image
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Controller heater temp issue

Post by rimai »

Can you post your code?
Roberto.
User avatar
madweazl
Posts: 44
Joined: Tue Dec 03, 2013 3:08 am
Location: Fredericksburg, VA

Re: Controller heater temp issue

Post by madweazl »

Looking at the code, it shows 79° and 80° but that isnt what is displayed on the actual controller when you go into the temp menu. Can that not be adjusted on the fly?

#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 <PAR.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

ReefAngel.Use2014Screen(); // Let's use 2014 Screen
// Ports toggled in Feeding Mode
ReefAngel.FeedingModePorts = Port7Bit;
// Ports toggled in Water Change Mode
ReefAngel.WaterChangePorts = Port2Bit | Port5Bit | Port6Bit | Port7Bit | Port8Bit;
// Ports toggled when Lights On / Off menu entry selected
ReefAngel.LightsOnPorts = Port1Bit | Port3Bit | Port4Bit | Port5Bit | Port6Bit;
// Ports turned off when Overheat temperature exceeded
ReefAngel.OverheatShutoffPorts = Port1Bit | Port2Bit | Port4Bit | Port5Bit | Port6Bit | 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( 820 );


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

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


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

void loop()
{
ReefAngel.StandardHeater( Port2,790,800 );
ReefAngel.StandardLights( Port4,22,0,10,0 );
ReefAngel.StandardLights( Port5,10,0,22,0 );
ReefAngel.StandardLights( Port6,10,0,22,0 );
ReefAngel.PWM.SetDaylight( PWMParabola(10,0,22,0,10,30,10) );
ReefAngel.PWM.SetActinic( PWMParabola(10,0,22,0,10,40,10) );
////// Place your custom code below here


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

// This should always be the last line
ReefAngel.ShowInterface();
}
Image
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: Controller heater temp issue

Post by lnevo »

You're set to go on between 79 and 80... not 77 and 78...

ReefAngel.StandardHeater( Port2,790,800 );

try:
ReefAngel.StandardHeater( Port2,770,780 );
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Controller heater temp issue

Post by rimai »

If you want to set it on the fly, you need to generate a code with internal memory and not hard coded.
Roberto.
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: Controller heater temp issue

Post by lnevo »

In which case

ReefAngel.StandardHeater(Port2);
User avatar
madweazl
Posts: 44
Joined: Tue Dec 03, 2013 3:08 am
Location: Fredericksburg, VA

Re: Controller heater temp issue

Post by madweazl »

Thanks; I didn't realize it had to be internal memory when you made adjustments from the controller, I thought that was only through the portal/app.
Image
Post Reply