Dosing/ Lights
Posted: Wed Apr 11, 2012 5:00 am
				
				I am trying to setup up  dosing pumps on ports 1&2 to run ever hour for 2 secs. What would be the best way to do this? I tried to use the client software and it does not seem to be working. 
Would I use a code like this
ReefAngel.DosingPumpRepeat1(Port1,0,360,2);
ReefAngel.DosingPumpRepeat2(Port2,0,360,2);
How would I change it to run ever hour?
Or is there a better way?
Also I am trying to figure out something with my lights I want to change the schedule for the lights I have ports 5&6 set for halides(really standard lights) currently they come on at 11pm and go off at 11 am. But for some reason I can not figure out how I did this.. RAgen so halides going on at 8am and off at 3pm. LOL here is my code. What is telling the lights to go on and off.. Lol
}
			Would I use a code like this
ReefAngel.DosingPumpRepeat1(Port1,0,360,2);
ReefAngel.DosingPumpRepeat2(Port2,0,360,2);
How would I change it to run ever hour?
Or is there a better way?
Also I am trying to figure out something with my lights I want to change the schedule for the lights I have ports 5&6 set for halides(really standard lights) currently they come on at 11pm and go off at 11 am. But for some reason I can not figure out how I did this.. RAgen so halides going on at 8am and off at 3pm. LOL here is my code. What is telling the lights to go on and off.. Lol
Code: Select all
// Autogenerated file by RAGen (v1.2.0.152), (04/10/2012 19:28)
// RA_041012_1928.ino
//
// This version designed for v0.9.0 or later
/* The following features are enabled for this File: 
#define VersionMenu
#define DisplayLEDPWM
#define wifi
#define WDT
#define SIMPLE_MENU
*/
#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 = Port3Bit;
    // Ports that are always on
    ReefAngel.Relay.On(Port3);
    ReefAngel.Relay.On(Port4);
    ReefAngel.Relay.On(Port8);
}
void loop()
{
    // Specific functions
    ReefAngel.DosingPump2(Port1);
    ReefAngel.DosingPump1(Port2);
    ReefAngel.MHLights(Port5);
    ReefAngel.MHLights(Port6);
    ReefAngel.StandardHeater(Port7);
    ReefAngel.Portal("Govertical19");
    ReefAngel.PWM.SetActinic(PWMSlope(11,0,23,0,15,90,200,0));
    ReefAngel.PWM.SetDaylight(PWMSlope(12,0,22,0,15,40,200,0));
    ReefAngel.ShowInterface();