Page 1 of 1

Dosing/ Lights

Posted: Wed Apr 11, 2012 5:00 am
by Govertical19
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

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();
}

Re: Dosing/ Lights

Posted: Wed Apr 11, 2012 7:58 am
by rimai
Yes, very close.
But I'd go with something like this:

Code: Select all

  ReefAngel.DosingPumpRepeat(Port1,0,360,2);
  ReefAngel.DosingPumpRepeat(Port2,5,360,2);
The second parameter is offset minutes.
So the 2nd pump pump will work 5 minutes after the 1st. You don't really want to dose at the same time and cause precipitation.
For your lights, you can change the time by using the memory tab of Client or smart phone app.

Re: Dosing/ Lights

Posted: Wed Apr 11, 2012 2:52 pm
by Govertical19
Yea, that is what I thought. I did change it in the client in the memory tab but it di not change. I will try thru my phone and see what happens.

With the code you typed in it will run ever hour?

Thanks!

Re: Dosing/ Lights

Posted: Wed Apr 11, 2012 4:33 pm
by rimai
It runs every 360 minutes for 2 seconds

Re: Dosing/ Lights

Posted: Thu Apr 12, 2012 4:40 am
by Govertical19
ok got it! Thanks!