Relay box - ports flickering

Basic / Standard Reef Angel hardware

Posts: 92
Joined: Fri Nov 14, 2014 8:27 am
PostPosted: Mon Aug 29, 2016 6:15 am
Hi Roberto,

Ok, this is strange, so I happen to be around all day Sat & Sun and noticed that the relay flickering on and off only happens when the the dimming occurs at higher levels. Meaning it seems like there is like a threshold at when the dimming is occurring causing this issue. At low levels during the ramping up and ramping down, this doesn't happen.

Any ideas?
Image

Posts: 11973
Joined: Fri Mar 18, 2011 6:47 pm
PostPosted: Mon Aug 29, 2016 8:33 am
Good troubleshooting.
What version of dimming module do you have?
You may need to open the case and it will be written on the pcb board.
Roberto.

Posts: 92
Joined: Fri Nov 14, 2014 8:27 am
PostPosted: Mon Aug 29, 2016 6:31 pm
rimai wrote:Good troubleshooting.
What version of dimming module do you have?
You may need to open the case and it will be written on the pcb board.


Version 1.2
Image

Posts: 92
Joined: Fri Nov 14, 2014 8:27 am
PostPosted: Fri Sep 02, 2016 4:24 am
Any input / help Roberto?
Image

Posts: 11973
Joined: Fri Mar 18, 2011 6:47 pm
PostPosted: Fri Sep 02, 2016 9:27 am
Are you using this with the RANet?
Roberto.

Posts: 92
Joined: Fri Nov 14, 2014 8:27 am
PostPosted: Fri Sep 02, 2016 12:09 pm
nope
Image

Posts: 11973
Joined: Fri Mar 18, 2011 6:47 pm
PostPosted: Fri Sep 02, 2016 6:04 pm
Can you post the code you have loaded?
Is it a regular wizard code?
Roberto.

Posts: 92
Joined: Fri Nov 14, 2014 8:27 am
PostPosted: Mon Sep 05, 2016 2:11 pm
rimai wrote:Can you post the code you have loaded?
Is it a regular wizard code?


Strange part is that it hasn't changed.

Code: Select all
#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.PHMin=560;
    ReefAngel.PHMax=794;
    InternalMemory.DCPumpThreshold_write(15);
    ReefAngel.Use2014Screen();  // Let's use 2014 Screen
    // Ports toggled in Feeding Mode
    ReefAngel.FeedingModePorts = Port4Bit | Port5Bit | Port6Bit;
    // Ports toggled in Water Change Mode
    ReefAngel.WaterChangePorts = Port2Bit | Port3Bit | Port4Bit | Port5Bit | Port6Bit | Port8Bit;
    // Ports toggled when Lights On / Off menu entry selected
    ReefAngel.LightsOnPorts = Port2Bit | Port3Bit;
    // Ports turned off when Overheat temperature exceeded
    ReefAngel.OverheatShutoffPorts = Port1Bit | Port2Bit | Port3Bit | Port4Bit | Port7Bit | Port8Bit;
    // Use T3 probe as temperature and overheat functions
    ReefAngel.TempProbe = T2_PROBE;
    ReefAngel.OverheatProbe = T2_PROBE;
    // Set the Overheat temperature setting
    InternalMemory.OverheatTemp_write( 835 );

    // Feeeding and Water Change mode speed
    ReefAngel.DCPump.FeedingSpeed=16;
    ReefAngel.DCPump.WaterChangeSpeed=0;


    // Ports that are always on
    ReefAngel.Relay.On( Port2 ); //Dimming Module
    ReefAngel.Relay.On( Port4 ); //Skimmer
    ReefAngel.Relay.On( Port8 ); //Return

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

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

void loop()
{
    ReefAngel.StandardHeater( Port1,780,785 );
    ReefAngel.StandardLights( Port3,14,00,21,30 ); // T5
    ReefAngel.StandardLights( Port7,0,30,10,30 ); // Fuge Lamp
    ReefAngel.StandardLights( Port6,15,15,20,45 ); //RW20
    ReefAngel.DCPump.ExpansionChannel[0] = None;
    ReefAngel.DCPump.ExpansionChannel[1] = None;
    ReefAngel.DCPump.ExpansionChannel[2] = None;
    ReefAngel.DCPump.ExpansionChannel[3] = None;
    ReefAngel.DCPump.ExpansionChannel[4] = None;
    ReefAngel.DCPump.ExpansionChannel[5] = None;
    ////// Place your custom code below here
   
    ////// Light Schedule Below
          //Set Channel 0 LED RED
          if (PWMSlope(13,15,22,45,5,85,120,5)<=6)
          {
            ReefAngel.PWM.SetChannel( 0, 0);
            ReefAngel.PWM.SetChannel( 3, 0);
          }
          else
          {
            ReefAngel.PWM.SetChannel( 0, PWMSlope(13,15,22,45,5,85,120,5) );
            ReefAngel.PWM.SetChannel( 3, PWMSlope(13,15,22,45,5,85,120,5) );
          }
         
          //Set Channel 1 LED WHITE
          if (PWMSlope(13,30,22,30,5,80,120,5)<=6)
          {
            ReefAngel.PWM.SetChannel( 1, 0);
            ReefAngel.PWM.SetChannel( 4, 0);
          }
          else
          {
            ReefAngel.PWM.SetChannel( 1, PWMSlope(13,30,22,30,5,80,120,5) );
            ReefAngel.PWM.SetChannel( 4, PWMSlope(13,30,22,30,5,80,120,5) );
          }
         
          //Set Channel 2 LED BLUE
          if (PWMSlope(13,0,23,0,5,100,120,5)<=6)
          {
            ReefAngel.PWM.SetChannel( 2,0);
            ReefAngel.PWM.SetChannel( 5,0);
          }
          else
          {
            ReefAngel.PWM.SetChannel( 2, PWMSlope(13,0,23,0,5,100,120,5) );
            ReefAngel.PWM.SetChannel( 5, PWMSlope(13,0,23,0,5,100,120,5) );
          }
   ////// End of Light Schedule
     
  //Setting Jebao Pump Wave Patterns

 if (InternalMemory.DCPumpMode_read()==11) //if custom mode on portal
 {
   ReefAngel.DCPump.UseMemory = false;
  if (hour()>=12 && hour()<13 ) // Morning mode between 12pm and 2pm
  {
    ReefAngel.DCPump.SetMode( TidalSwell,80,25 );
  }
     else if (hour()>=13 && hour()<16) // Day mode between 2pm and 4pm
  {
    ReefAngel.DCPump.SetMode( ShortPulse,80,25 ); 
  }
     else if (hour()>=16 && hour()<20) // Day mode between 4pm and 8pm
  {
    ReefAngel.DCPump.SetMode( ShortPulse,100,25 ); 
  }
     else if (hour()>=20 && hour()<21) // Evening mode between 8pm and 9pm
  {
    ReefAngel.DCPump.SetMode( ShortPulse,80,25 );
  }
     else if (hour()>=21 && hour()<23) //Calming beween 9pm and 11pm
  {
    ReefAngel.DCPump.SetMode( Lagoon,75,20 ); 
  }
     else
  {
    ReefAngel.DCPump.SetMode( Lagoon,40,20 );  // Night Mode between 11pm and l2pm
  } 
 }
 else ReefAngel.DCPump.UseMemory = true; //if it's not on custom, use portal program

    ReefAngel.DCPump.DaylightChannel = Sync;
    ReefAngel.DCPump.ActinicChannel = Sync; //use None when inactivated
   
    ////// Place your custom code above here

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

Image

Posts: 11973
Joined: Fri Mar 18, 2011 6:47 pm
PostPosted: Mon Sep 05, 2016 6:37 pm
Are you using a hub?
Is the dimming expansion the only expansion module?
Roberto.

Posts: 92
Joined: Fri Nov 14, 2014 8:27 am
PostPosted: Tue Sep 06, 2016 1:02 pm
rimai wrote:Are you using a hub?
Is the dimming expansion the only expansion module?


No hub, just the dimming expansion as the only expansion module
Image
PreviousNext

Return to Standard

Who is online

Users browsing this forum: No registered users and 1 guest