stuck in demo

New members questions
Post Reply
ausreef
Posts: 18
Joined: Fri Feb 03, 2012 7:55 pm
Location: Sydney Australia

stuck in demo

Post 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
ausreef
Posts: 18
Joined: Fri Feb 03, 2012 7:55 pm
Location: Sydney Australia

Re: stuck in demo

Post 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
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: stuck in demo

Post by rimai »

Can you post your code?
Roberto.
binder
Posts: 2865
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: stuck in demo

Post 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.
ausreef
Posts: 18
Joined: Fri Feb 03, 2012 7:55 pm
Location: Sydney Australia

Re: stuck in demo

Post 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();
}
ausreef
Posts: 18
Joined: Fri Feb 03, 2012 7:55 pm
Location: Sydney Australia

Re: stuck in demo

Post 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();
}
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: stuck in demo

Post 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));
Roberto.
ausreef
Posts: 18
Joined: Fri Feb 03, 2012 7:55 pm
Location: Sydney Australia

Re: stuck in demo

Post by ausreef »

your a ledgend Roberto that loaded up ok and i have 9.6v at each pwm port, thanks))))
Post Reply