Does not seem to work

Basic / Standard Reef Angel hardware
Post Reply
daniella3d
Posts: 93
Joined: Wed Nov 14, 2012 8:34 pm

Does not seem to work

Post by daniella3d »

I have setup the controller but I noticed the MH and light switch are always to off. What's going on? I have them programmed to different time of the day and at this time the MH should be ON but in auto mode it is at red on the controller and there is no current on the outlet.

Is the controller defective?

That outlet only turn on if I switch it on manually.
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: Does not seem to work

Post by rimai »

Can you post your code?
Roberto.
daniella3d
Posts: 93
Joined: Wed Nov 14, 2012 8:34 pm

Re: Does not seem to work

Post by daniella3d »

#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
// Ports toggled in Feeding Mode
ReefAngel.FeedingModePorts = Port5Bit | Port6Bit | Port8Bit;
// Ports toggled in Water Change Mode
ReefAngel.WaterChangePorts = Port1Bit | Port7Bit;
// Ports toggled when Lights On / Off menu entry selected
ReefAngel.LightsOnPorts = 0;
// Ports turned off when Overheat temperature exceeded
ReefAngel.OverheatShutoffPorts = 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( 800 );


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

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


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

void loop()
{
ReefAngel.SingleATO( true,Port1,60,0 );
ReefAngel.MHLights( Port2,7,0,20,15,10 );
ReefAngel.StandardLights( Port3,18,0,22,30 );
ReefAngel.StandardLights( Port4,22,29,23,30 );
ReefAngel.StandardHeater( Port7,758,761 );
////// Place your custom code below here


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

// This should always be the last line
ReefAngel.Portal( "daniella3d" );
ReefAngel.ShowInterface();
}
daniella3d
Posts: 93
Joined: Wed Nov 14, 2012 8:34 pm

Re: Does not seem to work

Post by daniella3d »

MH lights should be on until 8:15 pm but it is off and has remained off all day. wierd.
I tried changing the outlet for the MH to 3 but then it's the outlet 3 that remain off.

Does it have to be connected to work? because right now the controller is in test mode and not connected to my computer so nothing is plugged in that port.

Also, should I write this code to memory or in the code? because I have always use in the code. what's the difference? since it is what is recommanded, that's what I used.
daniella3d
Posts: 93
Joined: Wed Nov 14, 2012 8:34 pm

Re: Does not seem to work

Post by daniella3d »

I just did a quick test and it work if I remove the delay on, as soon as I put something in the delayed start, it does not work.
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: Does not seem to work

Post by rimai »

The 10 you are using means 10 minutes delay.
It will only turn on that port after 10 minutes after a reboot.
Roberto.
daniella3d
Posts: 93
Joined: Wed Nov 14, 2012 8:34 pm

Re: Does not seem to work

Post by daniella3d »

Ok I thought it was only during a power outage that it was using that delay. did not know it was with any reboot.

I will try it and wait 10 minutes.

thanks.
Post Reply