Only one wavemaker pump toggles

Basic / Standard Reef Angel hardware
Post Reply
zveck
Posts: 12
Joined: Wed May 08, 2013 2:43 pm

Only one wavemaker pump toggles

Post by zveck »

Only one wavemaker pump toggles. The second pump on port 6 never turns on. Any ideas?

#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

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

void DrawCustomMain()
{

pingSerial();

ReefAngel.LCD.DrawText(COLOR_BLUE, COLOR_WHITE, 5, 65, "Temp");
ReefAngel.LCD.DrawText(COLOR_BLUE, COLOR_WHITE, 10, 85, "PH");
char text[7];

ConvertNumToString(text, ReefAngel.Params.Temp[T1_PROBE], 10);
ReefAngel.LCD.DrawHugeNumbers(T1TempColor, DefaultBGColor, 28, 60, text);

pingSerial();

ConvertNumToString(text, ReefAngel.Params.PH, 100);
ReefAngel.LCD.DrawHugeNumbers(PHColor, DefaultBGColor, 28, 80, text);

pingSerial();

ReefAngel.LCD.DrawText(0,255,100,65, "CW");
ReefAngel.LCD.DrawText(COLOR_BLACK,255,115,65, ReefAngel.PWM.GetDaylightValue());

ReefAngel.LCD.DrawText(0,255,100,85, "RB");
ReefAngel.LCD.DrawText(COLOR_BLACK,255,115,85, ReefAngel.PWM.GetActinicValue());

pingSerial();

byte TempRelay = ReefAngel.Relay.RelayData;
TempRelay &= ReefAngel.Relay.RelayMaskOff;
TempRelay |= ReefAngel.Relay.RelayMaskOn;
ReefAngel.LCD.DrawOutletBox(12, 100, TempRelay);

ReefAngel.LCD.DrawDate(6, 118);

}
////// Place global variable code above here


void setup()
{
// This must be the first line

ReefAngel.Init(); //Initialize controller
ReefAngel.AddStandardMenu(); // Add Standard Menu
InternalMemory.LCDID_write(0);
// Ports toggled in Feeding Mode
ReefAngel.FeedingModePorts = Port1Bit | Port2Bit | Port4Bit | Port5Bit | Port6Bit | Port7Bit | Port8Bit;
// Ports toggled in Water Change Mode
ReefAngel.WaterChangePorts = Port1Bit | Port2Bit | Port4Bit | Port5Bit | Port6Bit | Port7Bit | Port8Bit;
// Ports toggled when Lights On / Off menu entry selected
ReefAngel.LightsOnPorts = 0;
// Ports turned off when Overheat temperature exceeded
ReefAngel.OverheatShutoffPorts = 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( 800 );


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

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


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

void loop()
{
ReefAngel.StandardFan( Port1,779,781 );
ReefAngel.StandardHeater( Port2,770,775 );
ReefAngel.StandardLights( Port3,1,0,12,0 );
ReefAngel.StandardATO( Port4,60 );
ReefAngel.WavemakerRandom( Port5,180,360 );
ReefAngel.WavemakerRandom( Port6,180,360 );
ReefAngel.Relay.DelayedOn( Port8,2 );
ReefAngel.PWM.SetDaylight( PWMParabola(13,0,0,0,0,50,0) );
ReefAngel.PWM.SetActinic( PWMParabola(12,0,1,0,0,95,0) );
////// Place your custom code below here

ReefAngel.Timer[LCD_TIMER].Start();

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

// This should always be the last line
ReefAngel.ShowInterface();
}
rossbryant1956
Posts: 471
Joined: Sat Jan 14, 2012 2:08 pm
Location: Montgomery Village, MD

Re: Only one wavemaker pump toggles

Post by rossbryant1956 »

go read where Roberto helped me:

http://forum.reefangel.com/viewtopic.php?f=11&t=2520

Let us know if you still need help. Thx
Roscoe's Reefs - Starting Over Again:

Building new 29g Nano after landlord went berserk over my 4 75 gallon tanks, Multiple RA's, Water mixing stations, etc. Your help welcomed in remembering all I've forgotten.
Post Reply