Why aren't my wavemaker and dosing pumps working?
Posted: Fri Mar 09, 2012 3:22 pm
I want the dosing pumps to turn on once per hour for 1 second, with dosing pump1 turning on 30 minutes before dosing pump2 every hour. I want the wavemaker to run for 5 seconds on, 5 seconds off, repeat indefinitely. Here's my code for everything:
#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 <ReefAngel.h>
void setup()
{
ReefAngel.Init(); //Initialize controller
ReefAngel.FeedingModePorts = Port4Bit | Port5Bit | Port7Bit | Port8Bit;
ReefAngel.WaterChangePorts = Port4Bit | Port5Bit | Port6Bit | Port7Bit | Port8Bit;
ReefAngel.OverheatShutoffPorts = 0;
ReefAngel.LightsOnPorts = Port1Bit;
// Ports that are always on
ReefAngel.Relay.On(Port5); // Return, and Aqualifter
}
void loop()
{
// Specific functions
ReefAngel.StandardLights(Port1,9,00,21,00); // Main Lights
ReefAngel.StandardLights(Port2,21,00,24,00); // Moon Lights/Skimmer
ReefAngel.StandardLights(Port3,21,00,9,00); // Refugium Light
ReefAngel.DosingPumpRepeat(Port7,00,60,1); //Alkalinity, pump 1
ReefAngel.DosingPumpRepeat(Port8,30,60,1); //Calcium, pump 2
ReefAngel.StandardHeater(Port4,782,787); //Heater
ReefAngel.Wavemaker(Port6,5); // Wavemaker
ReefAngel.ShowInterface();
}
#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 <ReefAngel.h>
void setup()
{
ReefAngel.Init(); //Initialize controller
ReefAngel.FeedingModePorts = Port4Bit | Port5Bit | Port7Bit | Port8Bit;
ReefAngel.WaterChangePorts = Port4Bit | Port5Bit | Port6Bit | Port7Bit | Port8Bit;
ReefAngel.OverheatShutoffPorts = 0;
ReefAngel.LightsOnPorts = Port1Bit;
// Ports that are always on
ReefAngel.Relay.On(Port5); // Return, and Aqualifter
}
void loop()
{
// Specific functions
ReefAngel.StandardLights(Port1,9,00,21,00); // Main Lights
ReefAngel.StandardLights(Port2,21,00,24,00); // Moon Lights/Skimmer
ReefAngel.StandardLights(Port3,21,00,9,00); // Refugium Light
ReefAngel.DosingPumpRepeat(Port7,00,60,1); //Alkalinity, pump 1
ReefAngel.DosingPumpRepeat(Port8,30,60,1); //Calcium, pump 2
ReefAngel.StandardHeater(Port4,782,787); //Heater
ReefAngel.Wavemaker(Port6,5); // Wavemaker
ReefAngel.ShowInterface();
}