No control

Post Reply
Cromanon
Posts: 14
Joined: Tue May 13, 2014 6:16 am

Re: No control

Post by Cromanon »

#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
// Ports toggled in Feeding Mode
ReefAngel.FeedingModePorts = Port5Bit | Port6Bit | Port7Bit;
// Ports toggled in Water Change Mode
ReefAngel.WaterChangePorts = Port4Bit | Port5Bit | Port6Bit | Port7Bit | Port8Bit;
// Ports toggled when Lights On / Off menu entry selected
ReefAngel.LightsOnPorts = Port1Bit | Port2Bit | Port3Bit;
// Ports turned off when Overheat temperature exceeded
ReefAngel.OverheatShutoffPorts = Port2Bit | Port3Bit | Port4Bit | Port5Bit | Port6Bit;
// Use T1 probe as temperature and overheat functions
ReefAngel.TempProbe = T1_PROBE;
ReefAngel.OverheatProbe = T1_PROBE;
// Set the Overheat temperature setting
InternalMemory.OverheatTemp_write( 850 );


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

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


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

void loop()
{
ReefAngel.StandardLights( Port1,11,0,23,0 );
ReefAngel.StandardLights( Port2,12,0,16,0 );
ReefAngel.StandardLights( Port3,20,0,10,0 );
ReefAngel.Relay.DelayedOn( Port6,4 );
ReefAngel.Relay.DelayedOn( Port7,2 );
ReefAngel.SingleATO( true,Port8,240,0 );
////// Place your custom code below here


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

// This should always be the last line
ReefAngel.Portal( "cromanon" );
ReefAngel.ShowInterface();
}
Cromanon
Posts: 14
Joined: Tue May 13, 2014 6:16 am

Re: No control

Post by Cromanon »

#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
// Ports toggled in Feeding Mode
ReefAngel.FeedingModePorts = Port5Bit | Port6Bit | Port7Bit;
// Ports toggled in Water Change Mode
ReefAngel.WaterChangePorts = Port4Bit | Port5Bit | Port6Bit | Port7Bit | Port8Bit;
// Ports toggled when Lights On / Off menu entry selected
ReefAngel.LightsOnPorts = Port1Bit | Port2Bit | Port3Bit;
// Ports turned off when Overheat temperature exceeded
ReefAngel.OverheatShutoffPorts = Port2Bit | Port3Bit | Port4Bit | Port5Bit | Port6Bit;
// Use T1 probe as temperature and overheat functions
ReefAngel.TempProbe = T1_PROBE;
ReefAngel.OverheatProbe = T1_PROBE;
// Set the Overheat temperature setting
InternalMemory.OverheatTemp_write( 850 );


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

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


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

void loop()
{
ReefAngel.StandardLights( Port1,11,0,23,0 );
ReefAngel.StandardLights( Port2,12,0,16,0 );
ReefAngel.StandardLights( Port3,20,0,10,0 );
ReefAngel.Relay.DelayedOn( Port6,4 );
ReefAngel.Relay.DelayedOn( Port7,2 );
ReefAngel.SingleATO( true,Port8,240,0 );
////// Place your custom code below here


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

// This should always be the last line
ReefAngel.Portal( "cromanon" );
ReefAngel.ShowInterface();
}
Cromanon
Posts: 14
Joined: Tue May 13, 2014 6:16 am

Re: No control

Post by Cromanon »

just for second check, I reenter the ssid and pass in wifi , but no change.
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: No control

Post by rimai »

Green blink on the wifi attachment means it is connected, so I don't think it's that.
It is sounding like head unit issue.
Is the controller switching relays on/off and just not responding to wifi or you don't hear it click relays at all?
Test it with your ATO float switch. Move it up and down. Does Port8 turn on/off?
Roberto.
Cromanon
Posts: 14
Joined: Tue May 13, 2014 6:16 am

Re: No control

Post by Cromanon »

yes, I move float sw and sound a click.
Cromanon
Posts: 14
Joined: Tue May 13, 2014 6:16 am

Re: No control

Post by Cromanon »

and turn on/off
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: No control

Post by rimai »

So, it seems the controller is operational and just the screen is malfunctioning, but the wifi should work too.
I'd check for water damage.
Roberto.
Cromanon
Posts: 14
Joined: Tue May 13, 2014 6:16 am

Re: No control

Post by Cromanon »

ok
Cromanon
Posts: 14
Joined: Tue May 13, 2014 6:16 am

Re: No control

Post by Cromanon »

Thanks !!!
Post Reply