Page 1 of 1

Lights won't turn on

Posted: Mon Jun 01, 2015 12:19 am
by darkvenom
I have problem with my lighting . I have my light setup on port 1 to go on at 5pm turn off at 2am. On the controller port 1 is red does that mean there overheat problem? Also port 2 is red which is my heater. The tank is running at 76 so no over heat problem. How do i fix this problem is my temp probe bad? Here is code. Thanks is for the help .

#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

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


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

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


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

void loop()
{
ReefAngel.DayLights( Port1 );
ReefAngel.StandardHeater( Port2 );
ReefAngel.StandardFan( Port3 );
ReefAngel.DosingPumpRepeat1( Port4 );
ReefAngel.DayLights( Port8 );
////// Place your custom code below here


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

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

Re: Lights won't turn on

Posted: Mon Jun 01, 2015 5:23 am
by cosmith71
Red just means "off". Green is on.

Without seeing your memory file, it's hard to troubleshoot. Re-do your code with hard-coded values (in the wizard) and see if that works.

--Colin

Re: Lights won't turn on

Posted: Mon Jun 01, 2015 2:54 pm
by darkvenom
The red led on the controller is on. What does that mean?

Re: Lights won't turn on

Posted: Mon Jun 01, 2015 2:56 pm
by darkvenom
Hmm what is hard coded values? How u go about doing that.. How do I pull up the memory info for u to look at?

Re: Lights won't turn on

Posted: Mon Jun 01, 2015 3:05 pm
by rimai
It is either an ATO timeout or a overheat.
Generate another code with the wizard and choose hard coded settings instead of memory settings.

Re: Lights won't turn on

Posted: Wed Jun 03, 2015 6:58 pm
by darkvenom
ok thanks works great now !!