Pumps shutting down briefly

Basic / Standard Reef Angel hardware
Post Reply
treetopflyn
Posts: 89
Joined: Fri Oct 05, 2012 1:58 am

Pumps shutting down briefly

Post 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.
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Pumps shutting down briefly

Post by rimai »

Can I see the code?
Roberto.
treetopflyn
Posts: 89
Joined: Fri Oct 05, 2012 1:58 am

Re: Pumps shutting down briefly

Post 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 );
}
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Pumps shutting down briefly

Post by rimai »

Do you have any idea of which ports?
What do you have on port 7?
Roberto.
treetopflyn
Posts: 89
Joined: Fri Oct 05, 2012 1:58 am

Re: Pumps shutting down briefly

Post by treetopflyn »

Port 7 is a skimmer. Not sure which ones but I know for sure the return pump on 2 is
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Pumps shutting down briefly

Post by rimai »

Does it turn on/off properly when you go through feeding or water change mode?
Roberto.
treetopflyn
Posts: 89
Joined: Fri Oct 05, 2012 1:58 am

Re: Pumps shutting down briefly

Post by treetopflyn »

Yes everything works as programmed, it just randomly glitches.
Piper
Posts: 296
Joined: Fri Jul 20, 2012 7:13 am
Location: Oakley, CA

Re: Pumps shutting down briefly

Post 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
treetopflyn
Posts: 89
Joined: Fri Oct 05, 2012 1:58 am

Re: Pumps shutting down briefly

Post by treetopflyn »

Thanks Piper I will give that a shot.
treetopflyn
Posts: 89
Joined: Fri Oct 05, 2012 1:58 am

Re: Pumps shutting down briefly

Post by treetopflyn »

Still doing it and seems to be getting worse. :-(
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Pumps shutting down briefly

Post by rimai »

I wonder if this is the same as this:
http://forum.reefangel.com/viewtopic.php?p=16174#p16174
Roberto.
treetopflyn
Posts: 89
Joined: Fri Oct 05, 2012 1:58 am

Re: Pumps shutting down briefly

Post by treetopflyn »

still having the issue :-(
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Pumps shutting down briefly

Post by rimai »

did you remove the jumpers?
Roberto.
treetopflyn
Posts: 89
Joined: Fri Oct 05, 2012 1:58 am

Re: Pumps shutting down briefly

Post by treetopflyn »

No. That entails taking the controller apart correct?
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Pumps shutting down briefly

Post 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.
Roberto.
Post Reply