Heater port wont turn on and menu question

Do you have a question on how to do something.
Ask in here.
Post Reply
ecam
Posts: 229
Joined: Thu Nov 15, 2012 11:27 am

Heater port wont turn on and menu question

Post by ecam »

Here is my code. Can someone tell me why the heater is not following instructions and coming on....
Also how can i get the Vortech mode to show on my menu? Thanks






#include <ReefAngel_Features.h>
#include <Globals.h>
#include <RA_Wifi.h>
#include <RF.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 <ReefAngel.h>

// Globals Needed for RF Mode on Custom Main
byte vtechmode;
boolean bFeeding=false;


void setup()
{
ReefAngel.Init(); // Initialize Controller
ReefAngel.AddStandardMenu();
ReefAngel.AddDateTimeMenu();
ReefAngel.WaterChangePorts = Port1Bit | Port8Bit; // Turn off Ports 5 and 6 when Feeding Mode is activated
ReefAngel.FeedingModePorts = Port1Bit | Port6Bit | Port8Bit; // Turn off Ports 1, 6, 7 and 8 when Water Change Mode is activated
ReefAngel.OverheatShutoffPorts = Port3Bit | Port4Bit | Port5Bit | Port7Bit; // Turn off Ports 3, 4 and 7 when overheat occurs
ReefAngel.RF.SetMode( NutrientTransport,85,10 );
// Use T1 probe as temperature and overheat functions
ReefAngel.TempProbe = T3_PROBE;
ReefAngel.OverheatProbe = T3_PROBE;
// Set the Overheat temperature setting
InternalMemory.OverheatTemp_write( 825 );
ReefAngel.LightsOnPorts = Port3Bit | Port4Bit| Port5Bit; // Turn on/off Ports 3 and 4 when Light On/Off menu option is selected





// Ports that are always on
ReefAngel.Relay.On( Port1 ); // Return Pump





// Hardcode PH calibrations
ReefAngel.PHMin=544; // PH7.0
ReefAngel.PHMax=830; // PH10.0


}

void loop()
{
ReefAngel.LCD.DrawLargeText(COLOR_STEELBLUE,COLOR_WHITE,28,121,"Edwin's Reef"); // Display Reef Angel banner


//Light instructions
ReefAngel.StandardLights( Port2,19,15,7,4 );//Refugium
ReefAngel.StandardLights(Port3,7,5,19,15); // Actinic Lights
ReefAngel.StandardLights(Port4,9,5,17,0); // Daylight Lights
ReefAngel.StandardLights(Port5,9,5,17,0); // Daylight Lights - MH
ReefAngel.StandardHeater( Port7,750,810 );
ReefAngel.Relay.DelayedOn( Port8,2 ); //Skimmer

//Light instructions (Start Hr,Min, End Hr, Min)
//ReefAngel.Wavemaker1(Port5); // Wavemaker 1
//ReefAngel.Wavemaker2(Port6); // Wavemaker 2



ReefAngel.PWM.StandardDaylight(); // Dimming for Daylight Channel
ReefAngel.PWM.StandardActinic(30); // Dimming for Actinic Channel


//-------------------------------------------------------- Start RF Nightmode Control ---------------------------------------------
if (hour()>=23 || hour()<7) // Defining "Nightmode" hours for VorTech = between 11 PM and 7 AM
{
ReefAngel.RF.UseMemory=false;
ReefAngel.RF.SetMode(Night,15,0);
vtechmode = 9;
}
else
{
ReefAngel.RF.SetMode(Feeding_Stop,0,0); //Temp fix for coming out of Night mode
ReefAngel.RF.UseMemory=true;
vtechmode = InternalMemory.RFMode_read();
}
ReefAngel.ShowInterface();
//---------------------------------------------------------- End RF Nightmode Control ---------------------------------------------
}
User avatar
lnevo
Posts: 5422
Joined: Fri Jul 20, 2012 9:42 am

Heater port wont turn on and menu question

Post by lnevo »

What temp are you seeing on t3?

Can you confirm your heater is on port 7?
ecam
Posts: 229
Joined: Thu Nov 15, 2012 11:27 am

Re: Heater port wont turn on and menu question

Post by ecam »

lnevo wrote:What temp are you seeing on t3?

Can you confirm your heater is on port 7?

Temp is 80.0
and it is on prt 7
User avatar
lnevo
Posts: 5422
Joined: Fri Jul 20, 2012 9:42 am

Heater port wont turn on and menu question

Post by lnevo »

You might have an override set...what happens if you manually turn the port on?
ecam
Posts: 229
Joined: Thu Nov 15, 2012 11:27 am

Re: Heater port wont turn on and menu question

Post by ecam »

lnevo wrote:You might have an override set...what happens if you manually turn the port on?
it works if i turn on manually. but then it doesnt turn off
Piper
Posts: 304
Joined: Fri Jul 20, 2012 7:13 am
Location: Oakley, CA

Re: Heater port wont turn on and menu question

Post by Piper »

Code: Select all

ReefAngel.StandardHeater( Port7,750,810 );
Has your temp dropped to 75.0 yet? It's not going to come on till it hits 75.0
User avatar
lnevo
Posts: 5422
Joined: Fri Jul 20, 2012 9:42 am

Heater port wont turn on and menu question

Post by lnevo »

Ahh good point. I forgot to look more closely. You usually want to have only 1-2 or even less of a spread between the on / off values. I have mine set at 798 802.

Also if you leave the values blank and just pass the relay you can set the values through the portal so you can tune it easier..assuming you have the wifi working properly.
ecam
Posts: 229
Joined: Thu Nov 15, 2012 11:27 am

Re: Heater port wont turn on and menu question

Post by ecam »

Thanks guys. I realized that yesterday after it was pointed out. Thanks.



lnevo wrote:Ahh good point. I forgot to look more closely. You usually want to have only 1-2 or even less of a spread between the on / off values. I have mine set at 798 802.

Also if you leave the values blank and just pass the relay you can set the values through the portal so you can tune it easier..assuming you have the wifi working properly.
Post Reply