Page 1 of 1

4th doser

Posted: Thu Mar 01, 2018 5:36 am
by AlanM
What's the best way to code a 4th doser?

I assume this will work to have it come on 4 times during the day and run for 1 minute each time, but it's a little inflexible.

Code: Select all

  if (((hour() == 10) || (hour() == 14) || (hour() == 18) || (hour() == 22)) && (minute() < 1)) { // run autofeeder for 1 minute at 10,2,6,10
    ReefAngel.Relay.On(Box1_Port5);         
  } else {                             
    ReefAngel.Relay.Off(Box1_Port5);
  }
I'd probably take out the fixed hours and time and find an unused internal memory location to stick the values in, but this is a standing for now.

Re: 4th doser

Posted: Thu Mar 01, 2018 8:15 am
by rimai
I would go with something like this:

Code: Select all

ReefAngel.Relay.Set(Port1,now()%3600<5);

Re: 4th doser

Posted: Thu Mar 01, 2018 8:30 am
by AlanM
Clever. I like it. Thanks!

Re: 4th doser

Posted: Tue Feb 08, 2022 3:16 pm
by Reefology
could this work?

ReefAngel.DosingPumpRepeat( Port1,0,360,60 );

when these were already running:

ReefAngel.DosingPumpRepeat1( Port6 );
ReefAngel.DosingPumpRepeat2( Port7 );
ReefAngel.DosingPumpRepeat3( Port8 );

Re: 4th doser

Posted: Tue Feb 08, 2022 5:26 pm
by rimai
It should work.