Nilsen reactor
Nilsen reactor
This weekend I will be getting a mrc Nilsen reactor.
I need to set my ato so that if the reactor has run in the last thirty minutes it won't turn on the pump. How would one go about coding this?
Sent from my DROID RAZR using Tapatalk 2
I need to set my ato so that if the reactor has run in the last thirty minutes it won't turn on the pump. How would one go about coding this?
Sent from my DROID RAZR using Tapatalk 2
Re: Nilsen reactor
Going to use port 1 on a schedule
Sent from my DROID RAZR using Tapatalk 2
Sent from my DROID RAZR using Tapatalk 2
Re: Nilsen reactor
Haven't wrote the code yet. But will be port 1 on every hour for 5 mins.
I guess I need a if else statement for the ato.
Just don't need the ato to come on if the reactor has just stirred the kalk.
I guess I need a if else statement for the ato.
Just don't need the ato to come on if the reactor has just stirred the kalk.
Re: Nilsen reactor
That would mean you only want the ATO to work the last 25min of every hour, right?
Roberto.
Nilsen reactor
if you are going to run port 1 for 5 minutes every hour on a schedule, then you could use the dosingpumprepeat functions.
Re: Nilsen reactor
Try this and see if it works:
Code: Select all
if (now()%3600<2100)
{
ReefAngel.Relay.Off(Port2);
ReefAngel.LowATO.Timer=millis();
}
else
{
ReefAngel.SingleATO(true,Port2,60,0);
}
Roberto.
Re: Nilsen reactor
Will try it and see.rimai wrote:Try this and see if it works:Code: Select all
if (now()%3600<2100) { ReefAngel.Relay.Off(Port2); ReefAngel.LowATO.Timer=millis(); } else { ReefAngel.SingleATO(true,Port2,60,0); }
But for the sake of me learning and not having to bug you guys, what do the numbers on the first line mean
Re: Nilsen reactor
It's seconds.
3600 = 1 hour
2100 = 35 minutes
% is a mathematical operation called modulo:
http://arduino.cc/en/Reference/Modulo
3600 = 1 hour
2100 = 35 minutes
% is a mathematical operation called modulo:
http://arduino.cc/en/Reference/Modulo
Roberto.
Re: Nilsen reactor
rimai wrote:It's seconds.
3600 = 1 hour
2100 = 35 minutes
% is a mathematical operation called modulo:
http://arduino.cc/en/Reference/Modulo
Thanks Roberto that's what I needed to know
Helpful as always