Page 1 of 1

ATO Problem

Posted: Tue Sep 27, 2011 7:07 pm
by Rey
I need help with my ATO. I plugged it into the port and and when I enabled ATO from RA Client, it doesn't do anything. Here is my code.

Settings in RA Client is 60s Timeouts and 1h Interval.

Code: Select all

// Autogenerated file by RAGen (v1.0.4.92), (09/09/2011 09:18)
// RA_090911_0918.pde
//
// This version designed for v0.8.5 Beta 12 or later

/* The following features are enabled for this PDE File: 
 #define DisplayImages
 #define WavemakerSetup
 #define DateTimeSetup
 #define VersionMenu
 #define ATOSetup
 #define MetalHalideSetup
 #define DirectTempSensor
 #define DisplayLEDPWM
 #define StandardLightSetup
 */

#include <ReefAngel_Features.h>
#include <ReefAngel_Globals.h>
#include <ReefAngel_Wifi.h>
#include <Wire.h>
#include <OneWire.h>
#include <Time.h>
#include <DS1307RTC.h>
#include <ReefAngel_EEPROM.h>
#include <ReefAngel_NokiaLCD.h>
#include <ReefAngel_ATO.h>
#include <ReefAngel_Joystick.h>
#include <ReefAngel_LED.h>
#include <ReefAngel_TempSensor.h>
#include <ReefAngel_Relay.h>
#include <ReefAngel_PWM.h>
#include <ReefAngel_Timer.h>
#include <ReefAngel_Memory.h>
#include <ReefAngel.h>


void setup()
{
  ReefAngel.Init();  //Initialize controller

  ReefAngel.FeedingModePorts = B00001100;
  ReefAngel.WaterChangePorts = B00001100;
  ReefAngel.OverheatShutoffPorts = B00011111;
  ReefAngel.LightsOnPorts = B00000011;

  // Ports that are always on
  ReefAngel.Relay.On(Port8);
  // Random value from 60seconds to whatever is stored in internal memory
  ReefAngel.Timer[1].SetInterval(random(5, InternalMemory.WM1Timer_read()));
  ReefAngel.Timer[1].Start();
  ReefAngel.Relay.On(Port3);
}

void loop()
{
  ReefAngel.ShowInterface();

  // Specific functions
  ReefAngel.MHLights(Port1);
  ReefAngel.StandardLights(Port2);
  if ( ReefAngel.Timer[1].IsTriggered() )
  {
    // Random value from 60seconds to whatever is stored in internal memory
    ReefAngel.Timer[1].SetInterval(random(5, InternalMemory.WM1Timer_read()));
    ReefAngel.Timer[1].Start();
    ReefAngel.Relay.Toggle(Port3);
    ReefAngel.Relay.Toggle(Port4);
  }
  ReefAngel.StandardHeater(Port5);
  ReefAngel.StandardFan(Port6);
  ReefAngel.StandardATO(Port7);
}


Re: ATO Problem

Posted: Wed Sep 28, 2011 3:01 pm
by Rey
Anyone?

Re: ATO Problem

Posted: Wed Sep 28, 2011 3:07 pm
by rimai
Did you read this thread?
http://forum.reefangel.com/viewtopic.php?f=7&t=240
StandardATO uses both float switches.

Re: ATO Problem

Posted: Wed Sep 28, 2011 3:51 pm
by Rey
Yes, i've read that. How do I know if my setup is SingleATO or DualATO? I can't use the RA Gen because I keep getting "not enough space/memory" error.

Re: ATO Problem

Posted: Wed Sep 28, 2011 3:53 pm
by rimai
You are using none of them.

Code: Select all

  ReefAngel.StandardATO(Port7);
You are using StandardATO, which needs both switches. One pointing up and the other down.

Re: ATO Problem

Posted: Wed Sep 28, 2011 3:59 pm
by Rey
Thanks Roberto. I will try it out.

Re: ATO Problem

Posted: Wed Sep 28, 2011 4:12 pm
by Rey
it still doesn't work. i have both ATO valve plugged in, follow the instruction from the link you provided, still no success.