Page 1 of 1
					
				Relay problem...
				Posted: Mon Jan 28, 2013 8:12 am
				by baroutas
				Hi! In my relay box, Port 4 (Standar lignhts) does not Work. The RA controler show me '' the Port is open'', but the lights does not open. Until now I have never  use the port 4. When i put the lights to an other open Port, the lights Open.
 This is a bug or relay problem?  

 
			
					
				Re: Relay problem...
				Posted: Mon Jan 28, 2013 8:17 am
				by baroutas
				Also when i open and close the port 4 i can not hear the typical Clik that the relay does when open and close one Port.
 This is my code:
#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
    ReefAngel.SetTemperatureUnit( Celsius );  // set to Celsius Temperature
    // Ports toggled in Feeding Mode
    ReefAngel.FeedingModePorts = 0;
    // Ports toggled in Water Change Mode
    ReefAngel.WaterChangePorts = Port1Bit | Port2Bit | Port7Bit | Port8Bit;
    // Ports toggled when Lights On / Off menu entry selected
    ReefAngel.LightsOnPorts = 0;
    // Ports turned off when Overheat temperature exceeded
    ReefAngel.OverheatShutoffPorts = Port1Bit;
    // Use T1 probe as temperature and overheat functions
    ReefAngel.TempProbe = T1_PROBE;
    ReefAngel.OverheatProbe = T1_PROBE;
    // Set the Overheat temperature setting
    InternalMemory.OverheatTemp_write( 350 );
    // Ports that are always on
    ReefAngel.Relay.On( Port7 );
    ReefAngel.Relay.On( Port8 );
    ////// Place additional initialization code below here
    
    ////// Place additional initialization code above here
}
void loop()
{
    ReefAngel.StandardHeater( Port1,278,280 );
    ReefAngel.StandardFan( Port2,310,320 );
    ReefAngel.StandardLights( Port3,13,50,22,0 );
    ReefAngel.StandardLights( Port4,15,30,19,0 );
    ReefAngel.DosingPumpRepeat( Port5,0,1240,10 );
    ReefAngel.StandardLights( Port6,20,30,23,59 );
    ReefAngel.PWM.SetDaylight( PWMSlope(14,0,21,0,10,100,15,10) );
    ReefAngel.PWM.SetActinic( PWMParabola(20,0,23,59,0,100,0) );
    ////// Place your custom code below here
    
    ////// Place your custom code above here
    // This should always be the last line
    ReefAngel.Portal( "xxxxxxxx" );
    ReefAngel.ShowInterface();
}
			 
			
					
				Re: Relay problem...
				Posted: Mon Jan 28, 2013 8:40 am
				by lnevo
				If it's a bad port you'll need to verify using the Relay Box test software. Roberto can advise after that on RMA or other appropriate steps. Your code looks ok...
			 
			
					
				Re: Relay problem...
				Posted: Mon Jan 28, 2013 8:57 am
				by baroutas
				How can i verify the relay box? what are the steps and conections? Sory to asking so mutch....
			 
			
					
				Re: Relay problem...
				Posted: Mon Jan 28, 2013 9:19 am
				by DrewPalmer04
				Sketch-> examples->relay test?
			 
			
					
				Re: Relay problem...
				Posted: Mon Jan 28, 2013 9:20 am
				by rimai
				File->Sketchbook->Example Codes->ControllerTester
			 
			
					
				Re: Relay problem...
				Posted: Mon Jan 28, 2013 9:50 am
				by baroutas
				Ok i make the test and show me the prot 4 OPEN but the port does not open.... All the ather ports is Ok! Is anything i can do??
			 
			
					
				Re: Relay problem...
				Posted: Mon Jan 28, 2013 9:52 am
				by rimai
				Was it working before?
PM for RMA.
			 
			
					
				Re: Relay problem...
				Posted: Mon Jan 28, 2013 10:18 am
				by baroutas
				What is mean RMA?
			 
			
					
				Re: Relay problem...
				Posted: Mon Jan 28, 2013 10:25 am
				by DrewPalmer04
				DrewPalmer04 wrote:Sketch-> examples->relay test?
Sorry. Tried my best off memory 

 
			
					
				Re: Relay problem...
				Posted: Mon Jan 28, 2013 10:27 am
				by DrewPalmer04
				baroutas wrote:What is mean RMA?
Return merchandise authorization 

 AKA to get it fixed!
 
			
					
				Re: Relay problem...
				Posted: Mon Jan 28, 2013 10:41 am
				by baroutas
				
			 
			
					
				Re: Relay problem...
				Posted: Mon Jan 28, 2013 10:13 pm
				by 00Warpig00
				Could the VGA cable be missing a single connection?
Nick
			 
			
					
				Re: Relay problem...
				Posted: Tue Jan 29, 2013 7:57 am
				by baroutas
				I don't think show. I try to change the power relay (no 4) inside the main relay and if is not work then we will see!!!! Now i am in the midle of this work and i waet the spare part.....
			 
			
					
				Re: Relay problem...
				Posted: Tue Jan 29, 2013 1:32 pm
				by baroutas
				Ok!!! I replace the power relay iside main relay (with roberto instractions) and everythink works perfect!!It is very simle Think!!! Thanks Roberto!!
			 
			
					
				Re: Relay problem...
				Posted: Wed Jan 30, 2013 7:40 am
				by baroutas
				Hi! Today new problem With  relay box....!
 1. Stop working the relay 4. when i give them the order to open and close that does not responding!!
 2. When open and close  relay 2, open and close relay 4 and 6 All together!!!
 3. When open and close relay 6, open and close relay 2 and 4 all together!!!
 4. Also When i give an order to relay 2 and after i give an order to relay 6 that does not respond and the opposite! The relay 4 still responding  only when i give an order to the ather two relays!
Bug or damange from replaced relay?? Yesterday everethink works good 
 
   
  
 
			
					
				Re: Relay problem...
				Posted: Wed Jan 30, 2013 9:52 am
				by rimai
				That looks like your svga cable is shorted out.
I think it could even be the initial problem.
If you move the cable around, does it change anything?
			 
			
					
				Re: Relay problem...
				Posted: Wed Jan 30, 2013 11:12 am
				by baroutas
				I change the cable with a new one and everethink works perfect!!! Agains one THANKS!!
			 
			
					
				Re: Relay problem...
				Posted: Wed Jan 30, 2013 8:34 pm
				by 00Warpig00
				+1

 
			
					
				Re: Relay problem...
				Posted: Thu Jan 31, 2013 8:03 am
				by baroutas