WaveMaker not functioning

Expansion modules and attachments
Post Reply
jemw
Posts: 41
Joined: Sat Oct 08, 2011 9:21 am

WaveMaker not functioning

Post by jemw »

I generated code using RAGen and added my moonlights and a 2 minute delay on port 3. Ports 5 and 6 are for Wavemaker1 and Wavemaker 2. I fired up ReefAngel Client (v2.2) and changed wavemaker 1 & 2 from 0 to 10, but ports 5 & 6 are still always on.
_____
Jim
binder
Posts: 2871
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: WaveMaker not functioning

Post by binder »

What does your PDE file look like?

curt
jemw
Posts: 41
Joined: Sat Oct 08, 2011 9:21 am

Re: WaveMaker not functioning

Post by jemw »

My pde:
// Autogenerated file by RAGen (v1.1.0.126), (10/29/2011 06:54)
// RA_102911_Final.pde
// 02 Nov 2011: Incorporated my manual changes into the generated version
//
// This version designed for v0.8.5 Beta 17 or later

/* The following features are enabled for this PDE File:
#define DisplayLEDPWM
#define wifi
#define WDT
#define SIMPLE_MENU
*/


#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
// Authentication does not work with ReefAngel Client at the moment
// WifiAuthentication("xxx:YYYYYY");

ReefAngel.FeedingModePorts = B11111100;
ReefAngel.WaterChangePorts = B11111111;
ReefAngel.OverheatShutoffPorts = B00000011;
ReefAngel.LightsOnPorts = B00000011;

// Set Actinic and Daylight (moonlight ports) off by default
ReefAngel.PWM.SetActinic(0);
ReefAngel.PWM.SetDaylight(0);

// Ports that are always on
ReefAngel.Relay.On(Port8);
}

void loop()
{
// Specific functions
ReefAngel.MHLights(Port1);
ReefAngel.StandardLights(Port2);
ReefAngel.Relay.DelayedOn(Port3, 2); // Tunze here - wait 2 min before pwr on
ReefAngel.StandardFan(Port4);
ReefAngel.Wavemaker1(Port5);
ReefAngel.Wavemaker2(Port6);
ReefAngel.StandardHeater(Port7);
if ( hour() <= 5 || hour () >= 20 ) // Moonlights on from 8PM to 6AM
{
ReefAngel.PWM.SetActinic(MoonPhase());
ReefAngel.PWM.SetDaylight(MoonPhase());
}
else
{
ReefAngel.PWM.SetActinic(0);
ReefAngel.PWM.SetDaylight(0);

}

ReefAngel.ShowInterface();
}
_____
Jim
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: WaveMaker not functioning

Post by rimai »

I just loaded the code and it works fine for me...
I had to reboot the controller after I made the changes with Client though.
Roberto.
jemw
Posts: 41
Joined: Sat Oct 08, 2011 9:21 am

Re: WaveMaker not functioning

Post by jemw »

rimai wrote:I just loaded the code and it works fine for me...
I had to reboot the controller after I made the changes with Client though.
After power cycling the controller, it also works for me. Does this mean that all changes made to memory using ReafAngel Client require a power cycle of the controller?
_____
Jim
binder
Posts: 2871
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: WaveMaker not functioning

Post by binder »

jemw wrote:
rimai wrote:I just loaded the code and it works fine for me...
I had to reboot the controller after I made the changes with Client though.
After power cycling the controller, it also works for me. Does this mean that all changes made to memory using ReafAngel Client require a power cycle of the controller?
no they shouldn't. they get loaded immediately however with your cases of them being 0 to start with may have required a reboot. i'm not exactly sure though without testing it or looking more at the code.

curt
jemw
Posts: 41
Joined: Sat Oct 08, 2011 9:21 am

Re: WaveMaker not functioning

Post by jemw »

binder wrote:
jemw wrote:
rimai wrote:I just loaded the code and it works fine for me...
I had to reboot the controller after I made the changes with Client though.
After power cycling the controller, it also works for me. Does this mean that all changes made to memory using ReafAngel Client require a power cycle of the controller?
no they shouldn't. they get loaded immediately however with your cases of them being 0 to start with may have required a reboot. i'm not exactly sure though without testing it or looking more at the code.

curt
After setting to 10 seconds and testing for timing, I went back and adjusted to 20 seconds. Allowed two minutes after making the change to observe the change did not happen. Again for the change to take place required a power cycle.
_____
Jim
binder
Posts: 2871
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: WaveMaker not functioning

Post by binder »

What version of the libraries are you running?

curt
jemw
Posts: 41
Joined: Sat Oct 08, 2011 9:21 am

Re: WaveMaker not functioning

Post by jemw »

binder wrote:What version of the libraries are you running?

curt
Dev Lib Version: 0.8.5.19
_____
Jim
Post Reply