ATO wont turn off
Posted: Mon Mar 12, 2012 6:02 pm
I'm having an issue right now where my ATO wont turn off until the max timer is hit.
I have my ATO reservoir filled to the top and I have my sump at the perfect level. I then take the flow valve out of the sump and the ATO turns on I then place the float valve back in the sump and the ATO will run for 60 seconds (my max timeout) and then turn off. No matter what I do it seems to ignore the other float valve. Here is the code I'm using...
I have my ATO reservoir filled to the top and I have my sump at the perfect level. I then take the flow valve out of the sump and the ATO turns on I then place the float valve back in the sump and the ATO will run for 60 seconds (my max timeout) and then turn off. No matter what I do it seems to ignore the other float valve. Here is the code I'm using...
Code: Select all
#include <ReefAngel_Features.h>
#include <Globals.h>
#include <RA_Wifi.h>
#include <Wire.h>
#include <OneWire.h>
#include <Time.h>
#include <DS1307RTC.h>
#include <InternalEEPROM.h>
#include <RA_NokiaLCD.h>
#include <RA_ATO.h>
#include <RA_Joystick.h>
#include <LED.h>
#include <RA_TempSensor.h>
#include <Relay.h>
#include <RA_PWM.h>
#include <Timer.h>
#include <Memory.h>
#include <ReefAngel.h>
void setup(){
ReefAngel.Init();
ReefAngel.FeedingModePorts = Port2Bit | Port3Bit | Port4Bit | Port5Bit | Port6Bit;
ReefAngel.WaterChangePorts = Port3Bit | Port4Bit;
ReefAngel.OverheatShutoffPorts = Port1Bit;
//Always on
ReefAngel.Relay.On(Port2);
ReefAngel.Relay.On(Port3);
ReefAngel.Relay.On(Port8);
ReefAngel.Timer[1].SetInterval(random(15,60));
ReefAngel.Timer[1].Start();
ReefAngel.Relay.On(Port5);
}
void loop(){
ReefAngel.Portal("dmglakewood");
ReefAngel.StandardHeater(Port1);
ReefAngel.StandardATO(Port4, 60);
ReefAngel.Relay.DelayedOn(Port7, 720); //Sump Lights
ReefAngel.ShowInterface();
//Random powerhead turn on
if(ReefAngel.Timer[1].IsTriggered()){
ReefAngel.Timer[1].SetInterval(random(15,60));
ReefAngel.Timer[1].Start();
ReefAngel.Relay.Toggle(Port5);
ReefAngel.Relay.Toggle(Port6);
}
}