Reef Angel Code Problems
Posted: Mon Nov 12, 2012 7:16 pm
Hi all,
I am having some problems setting up my reef angel on my new tank:
here is my code:
// Autogenerated file by RAGen (v1.2.1.158), (11/12/2012 17:56)
// RA_111212_1756.ino
//
// This version designed for v0.9.0 or later
/* The following features are enabled for this File:
#define DisplayImages
#define DateTimeSetup
#define VersionMenu
#define DisplayLEDPWM
#define StandardLightSetup
#define RelayExp
#define InstalledRelayExpansionModules 8
#define PWMEXPANSION
*/
#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(); //Initialize controller
ReefAngel.FeedingModePorts = Port3Bit | Port5Bit;
ReefAngel.WaterChangePorts = Port1Bit | Port2Bit | Port3Bit | Port4Bit | Port5Bit | Port8Bit;
ReefAngel.Relay.On(Port1);
ReefAngel.Relay.On(Port3);
ReefAngel.Relay.On(Port4);
ReefAngel.Relay.On(Port5);
}
void loop()
{
ReefAngel.StandardLights(Port2,8,0,22,0);
ReefAngel.StandardHeater(Port6,778,782);
ReefAngel.StandardLights(Port7,21,0,8,0);
ReefAngel.StandardATO(Port8,15);
ReefAngel.PWM.SetDaylight(PWMSlope(11,0,22,0,0,60,180,0));
ReefAngel.PWM.SetActinic(PWMSlope(11,30,21,30,0,30,180,0));
ReefAngel.ShowInterface();
}
It seems like it is not even uploading...I had the controller on my old tank with no problems....Any suggestions?
Also, I have the pwm expansion module and want to control my two tunze pumps with the 2 analog ports Roberto gave me. How can I do this? Is there a code for this? I was looking around and it seems that there should be a menu to control the pwm that regen is supposed to make...I dont see it either.
Thanks in advance, I know this has probably been answered a million times
I am having some problems setting up my reef angel on my new tank:
here is my code:
// Autogenerated file by RAGen (v1.2.1.158), (11/12/2012 17:56)
// RA_111212_1756.ino
//
// This version designed for v0.9.0 or later
/* The following features are enabled for this File:
#define DisplayImages
#define DateTimeSetup
#define VersionMenu
#define DisplayLEDPWM
#define StandardLightSetup
#define RelayExp
#define InstalledRelayExpansionModules 8
#define PWMEXPANSION
*/
#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(); //Initialize controller
ReefAngel.FeedingModePorts = Port3Bit | Port5Bit;
ReefAngel.WaterChangePorts = Port1Bit | Port2Bit | Port3Bit | Port4Bit | Port5Bit | Port8Bit;
ReefAngel.Relay.On(Port1);
ReefAngel.Relay.On(Port3);
ReefAngel.Relay.On(Port4);
ReefAngel.Relay.On(Port5);
}
void loop()
{
ReefAngel.StandardLights(Port2,8,0,22,0);
ReefAngel.StandardHeater(Port6,778,782);
ReefAngel.StandardLights(Port7,21,0,8,0);
ReefAngel.StandardATO(Port8,15);
ReefAngel.PWM.SetDaylight(PWMSlope(11,0,22,0,0,60,180,0));
ReefAngel.PWM.SetActinic(PWMSlope(11,30,21,30,0,30,180,0));
ReefAngel.ShowInterface();
}
It seems like it is not even uploading...I had the controller on my old tank with no problems....Any suggestions?
Also, I have the pwm expansion module and want to control my two tunze pumps with the 2 analog ports Roberto gave me. How can I do this? Is there a code for this? I was looking around and it seems that there should be a menu to control the pwm that regen is supposed to make...I dont see it either.
Thanks in advance, I know this has probably been answered a million times