Page 1 of 1

Tweaking dc pumps modes

Posted: Thu Sep 26, 2013 8:31 am
by ganjero
This is what I want:
- Run my DT DC pumps (connected in the PWM ports) on ReefCrest all the time except:
a. Run Nutrient Transport mode for 2:45hrs starting 30min after feeding mode is entered.
b. Run them at a constant 40% if waterchange mode is entered
- Run my Sump DC pump at a constant 60% all time except:
a. Run it at a constant 100% for 1hr starting 30min after feedingmode is entered

Is this correct? and where/how should I put the commnad for the waterchange mode?

Code: Select all

static time_t StartFeeding=0;
           if (ReefAngel.DisplayedMenu==FEEDING_MODE)
                StartFeeding=now(); // if we entered feeding mode, register what time it was.
              if (now()-StartFeeding > 1800 && now()-StartFeeding < 9900) // if feeding run then Nutrient Transport mode between 1800 and 9900 seconds
 {              ReefAngel.PWM.SetDaylight( NutrientTransportMode(40,80,700,true) ); //  Nutrient Transport on sync mode
                ReefAngel.PWM.SetActinic( NutrientTransportMode(80,80,700,false) ); // Nutrient Transport on anti-sync mode
 }
              else
  {
                ReefAngel.PWM.SetDaylight( ReefCrestMode(80,20,true) ); // ReefCrest at 80% +/- 20% on sync mode
                ReefAngel.PWM.SetActinic( ReefCrestMode(80,20,true) ); // ReefCrest at 80% +/- 20% on sync mode
  }
           
                        
               if (ReefAngel.DisplayedMenu==FEEDING_MODE)
                StartFeeding=now(); // if we entered feeding mode, register what time it was.
              if (now()-StartFeeding > 1800 && now()-StartFeeding < 5400) // if feeding started between 1800 and 5400 seconds
               analogWrite(lowATOPin,100*2.55);
              else
                analogWrite(lowATOPin,60*2.55);


Thank you

Re: Tweaking dc pumps modes

Posted: Thu Sep 26, 2013 8:37 am
by rimai
Adding the water change mode after everything else works, because you are overriding any prior command.

Code: Select all

if (ReefAngel.DisplayedMenu==WATERCHANGE_MODE)
{
  ReefAngel.PWM.SetDaylight( 40 );
  ReefAngel.PWM.SetActinic( 40 ); 
}