Page 1 of 1

Pumps shutting down briefly

Posted: Sat Nov 03, 2012 2:26 am
by treetopflyn
For the past few days (Only had the controller a little over a week) when the room is quite and I am working every once in awhile (4-5 times now) I will hear a click and pumps shutdown for a VERY brief second and then return to normal. The glitch doesn't show up on the relay log. I don't have lights hooked up to is so I don't know if its the whole relay or only certain outlets. Any ideas what could be causing it.

Re: Pumps shutting down briefly

Posted: Sat Nov 03, 2012 8:42 am
by rimai
Can I see the code?

Re: Pumps shutting down briefly

Posted: Sat Nov 03, 2012 8:59 am
by treetopflyn
#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 = Port1Bit | Port2Bit | Port7Bit | Port8Bit;
ReefAngel.FeedingModePortsE[0] = 0;
// Ports toggled in Water Change Mode
ReefAngel.WaterChangePorts = Port1Bit | Port2Bit | Port4Bit | Port5Bit | Port6Bit | Port7Bit | Port8Bit;
ReefAngel.WaterChangePortsE[0] = 0;
// Ports toggled when Lights On / Off menu entry selected
ReefAngel.LightsOnPorts = 0;
ReefAngel.LightsOnPortsE[0] = 0;
// Ports turned off when Overheat temperature exceeded
ReefAngel.OverheatShutoffPorts = 0;
ReefAngel.OverheatShutoffPortsE[0] = 0;
// Use T1 probe as temperature and overheat functions
ReefAngel.TempProbe = T1_PROBE;
ReefAngel.OverheatProbe = T1_PROBE;
// Set the Overheat temperature setting
InternalMemory.OverheatTemp_write( 889 );


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

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


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

void loop()
{
ReefAngel.StandardATO( Port1,60 );
if (hour()>=21 || hour()<7)
{
ReefAngel.Relay.Off(Port5);
ReefAngel.Relay.Off(Port6);
}
else
{
if (ReefAngel.DisplayedMenu==FEEDING_MODE)
{
ReefAngel.Relay.On(Port5);
ReefAngel.Relay.On(Port6);
}
else
{
ReefAngel.WavemakerRandom1( Port5,30,90 );
ReefAngel.WavemakerRandom2( Port6,30,90 );
}
}
ReefAngel.Relay.DelayedOn( Port7,0 );
////// Place your custom code below here


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

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

void DrawCustomMain()
{
int x,y;
char text[10];
// Parameters
#if defined DisplayLEDPWM && ! defined RemoveAllLights
ReefAngel.LCD.DrawMonitor( 15, 14, ReefAngel.Params,
ReefAngel.PWM.GetDaylightValue(), ReefAngel.PWM.GetActinicValue() );
#else // defined DisplayLEDPWM && ! defined RemoveAllLights
ReefAngel.LCD.DrawMonitor( 15, 14, ReefAngel.Params );
#endif // defined DisplayLEDPWM && ! defined RemoveAllLights
pingSerial();

// pH Expansion
ReefAngel.LCD.DrawText( COLOR_MEDIUMSEAGREEN,DefaultBGColor,15,54, "PHE:" );
ReefAngel.LCD.DrawText( COLOR_MEDIUMSEAGREEN,DefaultBGColor,39,54, ReefAngel.Params.PHExp );
pingSerial();

// Main Relay Box
byte TempRelay = ReefAngel.Relay.RelayData;
TempRelay &= ReefAngel.Relay.RelayMaskOff;
TempRelay |= ReefAngel.Relay.RelayMaskOn;
ReefAngel.LCD.DrawOutletBox( 12, 74, TempRelay );
pingSerial();

// Relay Expansion
TempRelay = ReefAngel.Relay.RelayDataE[0];
TempRelay &= ReefAngel.Relay.RelayMaskOffE[0];
TempRelay |= ReefAngel.Relay.RelayMaskOnE[0];
ReefAngel.LCD.DrawOutletBox( 12, 97, TempRelay );
pingSerial();

// Date and Time
ReefAngel.LCD.DrawDate( 6, 122 );
pingSerial();
}

void DrawCustomGraph()
{
ReefAngel.LCD.DrawGraph( 5, 5 );
}

Re: Pumps shutting down briefly

Posted: Sat Nov 03, 2012 9:01 am
by rimai
Do you have any idea of which ports?
What do you have on port 7?

Re: Pumps shutting down briefly

Posted: Sat Nov 03, 2012 1:32 pm
by treetopflyn
Port 7 is a skimmer. Not sure which ones but I know for sure the return pump on 2 is

Re: Pumps shutting down briefly

Posted: Sat Nov 03, 2012 2:49 pm
by rimai
Does it turn on/off properly when you go through feeding or water change mode?

Re: Pumps shutting down briefly

Posted: Sat Nov 03, 2012 3:43 pm
by treetopflyn
Yes everything works as programmed, it just randomly glitches.

Re: Pumps shutting down briefly

Posted: Sun Nov 04, 2012 9:22 am
by Piper
Make sure your connections are all tight to the relay box(es). I had strange things happen when I first set mine up and it ended up being a lose connection to a relay box. I pulled all the cables apart and plugged them back together and everything has been working great since.

~Charlie

Re: Pumps shutting down briefly

Posted: Mon Nov 05, 2012 11:30 am
by treetopflyn
Thanks Piper I will give that a shot.

Re: Pumps shutting down briefly

Posted: Fri Nov 09, 2012 6:32 am
by treetopflyn
Still doing it and seems to be getting worse. :-(

Re: Pumps shutting down briefly

Posted: Fri Nov 09, 2012 9:56 am
by rimai
I wonder if this is the same as this:
http://forum.reefangel.com/viewtopic.php?p=16174#p16174

Re: Pumps shutting down briefly

Posted: Fri Nov 30, 2012 8:16 pm
by treetopflyn
still having the issue :-(

Re: Pumps shutting down briefly

Posted: Fri Nov 30, 2012 8:31 pm
by rimai
did you remove the jumpers?

Re: Pumps shutting down briefly

Posted: Fri Nov 30, 2012 8:41 pm
by treetopflyn
No. That entails taking the controller apart correct?

Re: Pumps shutting down briefly

Posted: Sat Dec 01, 2012 4:10 am
by rimai
Yes, but it is just 4 screws in the head unit.
You unscrew and open the enclosure and it will be right there.