Page 1 of 1
Dosing pumps and PH
Posted: Mon Feb 06, 2012 7:48 pm
by projectx
I was thinking about this tonight, is there a way to set the dosing pumps NOT to run if the PH is at 8.20 and if it should drop below 8.0 to have them start running again?
Re: Dosing pumps and PH
Posted: Mon Feb 06, 2012 8:59 pm
by rimai
yeah

You need to declare a new variable to hold the status for the dosing.
Place this above setup:
Then use this on the loop:
Code: Select all
if (ReefAngel.Params.PH<=800) CanDose=true;
if (ReefAngel.Params.PH>=820) CanDose=false;
if (CanDose)
{
// Insert your dosing function here
}
Try this and let me know if it works for you.
Re: Dosing pumps and PH
Posted: Mon Feb 06, 2012 9:06 pm
by projectx
cool thanks, Place the boolean above wich setup? toward the top near where all of the .h files are listed?
I wish I knew how to do this suff....... but I am learning lol
Re: Dosing pumps and PH
Posted: Mon Feb 06, 2012 9:11 pm
by rimai
Yeah, if you look at your code, there is basically 3 sections.
The first is the one with a bunch of .h header files
The second is a setup() function
The third is a loop() function
So, yes anywhere above setup or just below the .h file is fine.
