Page 1 of 1

Re: Ato based on salinity? Any one tried?

Posted: Sun Sep 30, 2012 3:18 am
by dazza1304
Just a quick update!

Have been using this for about 4 weeks now and works fantastic! Keeps salinity very stable!

Another benefit of this is that Ato is no longer sensitive to fluctuations in water level etc.

Ato based on salinity? Any one tried?

Posted: Sun Sep 30, 2012 5:25 am
by lnevo
Lets see your code!

Re: Ato based on salinity? Any one tried?

Posted: Sun Sep 30, 2012 7:54 am
by dazza1304
Well, not mine, really its Robertos!! See below!

At the moment, I am using an existing tunze ATO that has a overfill float switch, so am just powering up the ATO from Port 5, and if overfull, the tunze float switch will stop pump from operating.

However, code is easily modified to incorporate a float switch for overfull cut out!

Basically, I have set that if salinity sits at 35.1 or above for 120 secs port 5 is switched on and ATO operates.

////// Place global variable code below here
unsigned long lastLowSal=now();

////// Place global variable code above here



////// Place your custom code below here
if (ReefAngel.Params.Salinity<351) lastLowSal=now();
ReefAngel.Relay.Set(Port5,(now()-lastLowSal>120));

////// Place your custom code above here