Page 1 of 1

Dosing pump question

Posted: Thu May 23, 2013 5:26 pm
by cosmith71
I have two dosing pumps I would like to run once a day for a set period of time. Note, I am also running a Swabbie using the memory locations for pump 1.

I have the following in void setup()

Code: Select all

int Dispense = 90;                // Amount in ml of 2 part to dispense
    ReefAngel.DosingPump(AlkPump, 2, 19, 00, Dispense/0.67);      // Alk pump runs at 0.67 ml/sec
    ReefAngel.DosingPump(CalPump, 3, 20, 00, Dispense/0.61);     // Ca+ pump runs at 0.61 ml/sec
I'm trying to run Alk at 7 pm and Cal at 8 pm (once a day), for a calculated amount of time. It doesn't appear to be turning on. What did I do wrong?

Thanks,

--Colin

Re: Dosing pump question

Posted: Thu May 23, 2013 7:21 pm
by cosmith71
Nevermind, got it. Needs to go in void loop().

--Colin

Re: Dosing pump question

Posted: Thu May 23, 2013 8:22 pm
by rimai
Oh wow...
I missed the part you said setup... :(
I was going to look at this after dinner.

Re: Dosing pump question

Posted: Thu May 23, 2013 8:44 pm
by cosmith71
No problem. It was a good learning experience. :mrgreen:

Do the timer numbers (2 and 3, above) matter?

--Colin

Re: Dosing pump question

Posted: Thu May 23, 2013 9:02 pm
by rimai
Oh yes...
Use 1 and 2
3 is LCD timer

Re: Dosing pump question

Posted: Thu May 23, 2013 9:14 pm
by cosmith71
How will the choice of timers affect the Swabbie, which runs every 4 hours? Will it be a problem if they overlap?

--Colin

Re: Dosing pump question

Posted: Thu May 23, 2013 9:22 pm
by rimai
How did you code the swabie?

Re: Dosing pump question

Posted: Thu May 23, 2013 10:11 pm
by cosmith71
Like this:

Code: Select all

    ReefAngel.DosingPumpRepeat1( Swabbie );
--Colin

Re: Dosing pump question

Posted: Thu May 23, 2013 10:28 pm
by rimai
Oh, you are good...
The repeat version doesn't use the timer.