need help with dosing pumps
Posted: Sun Nov 11, 2012 5:23 pm
Ok, so im having trouble with setting up dosing pumps...
Here is what i want to do..
I want to be able to enter my TOTAL daily dosing time in the "runtime" memory spot.
I then want to have my calcium dose that amount evenly, hourly, over the 24hour day, with a 30 minute offset (so 12:30, 1:30, 2:30 etc) (runtime/24hr=hourly dose time.) so for instance if i want 60 minutes of dosing daily, i want calcium to dose 60min/24doses= 2.5min every hour.
What I want for my alkalinity is a little tougher. I want it to dose more at night than during the day. i want it to dose 1/3 of the total from 1PM-1AM, and 2/3 from 1AM to 1PM. I want to do this to try to help level my PH over night. I want it to dose every 30 min.
so from 1PM-1AM i want (60min/3)/24doses=0.83 minutes every 30 min.
and from 1AM-1PM i want ((60min/3)/24doses)*2= 1.66minutes every 30 min.
can i just do what i have below, with the runtime memory set to 3600sec? also, on the android app, which memory location corresponds to that runtime memory location?
// Dosing
//Calcium
ReefAngel.DosingPumpRepeat(Port1,30,60, int RunTime/24);
// Alkalinity
if ( hour() >= 1 || hour () <= 13 )
{
ReefAngel.DosingPumpRepeat(Port8,0,30, ((int RunTime/3)/24)*2);
}
else
{
ReefAngel.DosingPumpRepeat(Port8,0,30,((int RunTime/3)/24));
Sorry if im totally missing something here...
Here is what i want to do..
I want to be able to enter my TOTAL daily dosing time in the "runtime" memory spot.
I then want to have my calcium dose that amount evenly, hourly, over the 24hour day, with a 30 minute offset (so 12:30, 1:30, 2:30 etc) (runtime/24hr=hourly dose time.) so for instance if i want 60 minutes of dosing daily, i want calcium to dose 60min/24doses= 2.5min every hour.
What I want for my alkalinity is a little tougher. I want it to dose more at night than during the day. i want it to dose 1/3 of the total from 1PM-1AM, and 2/3 from 1AM to 1PM. I want to do this to try to help level my PH over night. I want it to dose every 30 min.
so from 1PM-1AM i want (60min/3)/24doses=0.83 minutes every 30 min.
and from 1AM-1PM i want ((60min/3)/24doses)*2= 1.66minutes every 30 min.
can i just do what i have below, with the runtime memory set to 3600sec? also, on the android app, which memory location corresponds to that runtime memory location?
// Dosing
//Calcium
ReefAngel.DosingPumpRepeat(Port1,30,60, int RunTime/24);
// Alkalinity
if ( hour() >= 1 || hour () <= 13 )
{
ReefAngel.DosingPumpRepeat(Port8,0,30, ((int RunTime/3)/24)*2);
}
else
{
ReefAngel.DosingPumpRepeat(Port8,0,30,((int RunTime/3)/24));
Sorry if im totally missing something here...