Page 1 of 1
stuck in demo
Posted: Tue Mar 06, 2012 1:57 am
by ausreef
probably a stupid question but how do you get the ra out of demo mode,got mine today and whatever i do it just sits there clicking relays on and off,have tried re assinging all the ports on but no luck,have also tried putting in a pwm slope but comes up with a failiure message,also red status light stays on all the time
Re: stuck in demo
Posted: Tue Mar 06, 2012 3:47 am
by ausreef
ive switched from port 3 to 5 and this seems to have fixed the problem,but i cant load a pwm slope it comes up pwmslope not defined and a couple of other messages,where exactly in the pde do i paste it?
ps just fyi the international plug adapters dont fit Australian plugs
Re: stuck in demo
Posted: Tue Mar 06, 2012 8:34 am
by rimai
Can you post your code?
Re: stuck in demo
Posted: Tue Mar 06, 2012 10:27 am
by binder
It sounds like you have not loaded the Internal Memory file first. The ports are toggling on / off because of the value it reads in for the wavemakers is 0 or another value.
Like Roberto said, let's see your code. Plus, try loading the Internal Memory file first to get the default values set.
Re: stuck in demo
Posted: Tue Mar 06, 2012 8:58 pm
by ausreef
ive now downloaded the internal memory and got the controllerdoing what i want via ragen,im just having trouble putting the pwm slope in my pde canyou tell me anything i need to change and where to paste it
/ Autogenerated file by RAGen (v1.2.1.158), (03/07/2012 14:56)
// RA_030712_1456.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 SIMPLE_MENU
#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
// Ports that are always on
ReefAngel.Relay.On(Port1);
ReefAngel.Relay.On(Port2);
ReefAngel.Relay.On(Port3);
ReefAngel.Relay.On(Port4);
ReefAngel.Relay.On(Port5);
ReefAngel.Relay.On(Port6);
ReefAngel.Relay.On(Port7);
ReefAngel.Relay.On(Port8);
}
void loop()
{
// Specific functions
ReefAngel.PWM.ActinicPWMSlope();
ReefAngel.PWM.DaylightPWMSlope();
ReefAngel.ShowInterface();
}
Re: stuck in demo
Posted: Tue Mar 06, 2012 9:12 pm
by ausreef
ive tried this but still get expected ,)' before token error
// Autogenerated file by RAGen (v1.2.1.158), (03/07/2012 14:56)
// RA_030712_1456.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 SIMPLE_MENU
#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
// Ports that are always on
ReefAngel.Relay.On(Port1);
ReefAngel.Relay.On(Port2);
ReefAngel.Relay.On(Port3);
ReefAngel.Relay.On(Port4);
ReefAngel.Relay.On(Port5);
ReefAngel.Relay.On(Port6);
ReefAngel.Relay.On(Port7);
ReefAngel.Relay.On(Port8);
}
void loop()
{
// Specific functions
ReefAngel.PWM.SetActinic(PWMSlope(8,30,20,30,15,100,60,0);
ReefAngel.PWM.SetDaylight(PWMSlope(8,30,20,30,15,100,60,0);
ReefAngel.ShowInterface();
}
Re: stuck in demo
Posted: Tue Mar 06, 2012 9:19 pm
by rimai
You are missing a ) at the end of each line.
Use this:
Code: Select all
ReefAngel.PWM.SetActinic(PWMSlope(8,30,20,30,15,100,60,0));
ReefAngel.PWM.SetDaylight(PWMSlope(8,30,20,30,15,100,60,0));
Re: stuck in demo
Posted: Tue Mar 06, 2012 9:39 pm
by ausreef
your a ledgend Roberto that loaded up ok and i have 9.6v at each pwm port, thanks))))