Dosing pump question

Do you have a question on how to do something.
Ask in here.
Post Reply
User avatar
cosmith71
Posts: 1432
Joined: Fri Mar 29, 2013 3:51 pm
Location: Oklahoma City

Dosing pump question

Post 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
User avatar
cosmith71
Posts: 1432
Joined: Fri Mar 29, 2013 3:51 pm
Location: Oklahoma City

Re: Dosing pump question

Post by cosmith71 »

Nevermind, got it. Needs to go in void loop().

--Colin
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: Dosing pump question

Post by rimai »

Oh wow...
I missed the part you said setup... :(
I was going to look at this after dinner.
Roberto.
User avatar
cosmith71
Posts: 1432
Joined: Fri Mar 29, 2013 3:51 pm
Location: Oklahoma City

Re: Dosing pump question

Post by cosmith71 »

No problem. It was a good learning experience. :mrgreen:

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

--Colin
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: Dosing pump question

Post by rimai »

Oh yes...
Use 1 and 2
3 is LCD timer
Roberto.
User avatar
cosmith71
Posts: 1432
Joined: Fri Mar 29, 2013 3:51 pm
Location: Oklahoma City

Re: Dosing pump question

Post 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
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: Dosing pump question

Post by rimai »

How did you code the swabie?
Roberto.
User avatar
cosmith71
Posts: 1432
Joined: Fri Mar 29, 2013 3:51 pm
Location: Oklahoma City

Re: Dosing pump question

Post by cosmith71 »

Like this:

Code: Select all

    ReefAngel.DosingPumpRepeat1( Swabbie );
--Colin
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: Dosing pump question

Post by rimai »

Oh, you are good...
The repeat version doesn't use the timer.
Roberto.
Post Reply