Page 1 of 1

*new user* Setup to control Jebao wavemaker remotely

Posted: Thu Dec 18, 2014 6:44 pm
by SlimyEel
Just received my reef angel controller this week, have it all setup, except for being able to control my jebao wavemaker with the app. I can control the speed via the dimming port. But on the IOS app, it has the option to change different settings, speeds and duration, which do not allow me to change them.

Can someone please tell me what I need to do to enable this. I apologize if this is such a newbie question. :oops:
I have read on the forum as much as I could make out, but unable to determine exactly what I need to do. Good news is this is the only thing I have left to have the controller the way I want it.... for now at least.

Thanks for any help you guys can offer.


#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 <InternalEEPROM.h>
#include <RA_Colors.h>
#include <RA_CustomColors.h>
#include <Salinity.h>
#include <RF.h>
#include <IO.h>
#include <ORP.h>
#include <AI.h>
#include <PH.h>
#include <WaterLevel.h>
#include <Humidity.h>
#include <DCPump.h>
#include <PAR.h>
#include <ReefAngel.h>

////// Place global variable code below here


////// Place global variable code above here


void setup()
{
// This must be the first line
ReefAngel.Init(); //Initialize controller
ReefAngel.Use2014Screen(); // Let's use 2014 Screen
// Ports toggled in Feeding Mode
ReefAngel.FeedingModePorts = Port3Bit | Port4Bit | Port6Bit | Port7Bit;
// Ports toggled in Water Change Mode
ReefAngel.WaterChangePorts = Port2Bit | Port3Bit | Port4Bit | Port5Bit | Port6Bit | Port7Bit;
// Ports toggled when Lights On / Off menu entry selected
ReefAngel.LightsOnPorts = Port1Bit;
// Ports turned off when Overheat temperature exceeded
ReefAngel.OverheatShutoffPorts = Port1Bit | Port2Bit;
// Use T1 probe as temperature and overheat functions
ReefAngel.TempProbe = T1_PROBE;
ReefAngel.OverheatProbe = T1_PROBE;
// Set the Overheat temperature setting
InternalMemory.OverheatTemp_write( 850 );

// Feeeding and Water Change mode speed
ReefAngel.DCPump.FeedingSpeed=0;
ReefAngel.DCPump.WaterChangeSpeed=0;


// Ports that are always on
ReefAngel.Relay.On( Port3 );
ReefAngel.Relay.On( Port4 );
ReefAngel.Relay.On( Port5 );
ReefAngel.Relay.On( Port6 );
ReefAngel.Relay.On( Port7 );

////// Place additional initialization code below here

// Define labels for 2014 LCD screen
ReefAngel.CustomLabels[0]="Metal Halide";
ReefAngel.CustomLabels[1]="Heater";
ReefAngel.CustomLabels[2]="Return";
ReefAngel.CustomLabels[3]="BP Reactor";
ReefAngel.CustomLabels[4]="Skimmer";
ReefAngel.CustomLabels[5]="JBJ ATO";
ReefAngel.CustomLabels[6]="Wavemaker";
ReefAngel.CustomLabels[7]="Moon Light";

////// Place additional initialization code above here
}

void loop()
{
ReefAngel.MHLights( Port1,15,0,0,0,10 );
ReefAngel.StandardHeater( Port2,780,785 );
ReefAngel.Relay.Set( Port8, !ReefAngel.Relay.Status( Port1 ) );
ReefAngel.PWM.SetDaylight( PWMSlope(8,0,1,0,15,100,120,15) );
ReefAngel.DCPump.UseMemory = true;
ReefAngel.DCPump.SetMode( Else,50,10 );
ReefAngel.DCPump.DaylightChannel = Sync;
ReefAngel.DCPump.ActinicChannel = None;
////// Place your custom code below here


////// Place your custom code above here


// This should always be the last line
ReefAngel.Portal( "SlimyEel" );
ReefAngel.ShowInterface();
}

Re: *new user* Setup to control Jebao wavemaker remotely

Posted: Thu Dec 18, 2014 6:52 pm
by lnevo
Post your code please

Re: *new user* Setup to control Jebao wavemaker remotely

Posted: Thu Dec 18, 2014 8:42 pm
by rimai
Something is weird.
You are using daylight channel for LEDs and Jebao according to your code.

Re: *new user* Setup to control Jebao wavemaker remotely

Posted: Thu Dec 18, 2014 9:18 pm
by SlimyEel
Ok, I believe part of my problem is confusion with the initial setup. When I was using the Wizard initially, I set the dimming port up because I thought it controlled the Jebao wavemaker, thus I would need to say it was in use.
I do not run led's on a dimmer, I only use a main metal halide, and led moonlights (which are not on a dimmer).
So should I not have the dimmer setup, and the Jebao would use the daylight dimmer port automatically?

Re: *new user* Setup to control Jebao wavemaker remotely

Posted: Thu Dec 18, 2014 10:23 pm
by SlimyEel
Inevo/Roberto:

Just wanted to let you guys know that that fixed it. It was just my misunderstanding on initial setup. I didn't need to tell it that I was using the Dimming Port on the screen prior to the setup of the wavemaker setup. I changed my code to this:
}

void loop()
{
ReefAngel.MHLights( Port1,15,0,0,0,10 );
ReefAngel.StandardHeater( Port2,780,785 );
ReefAngel.Relay.Set( Port8, !ReefAngel.Relay.Status( Port1 ) );
ReefAngel.DCPump.UseMemory = true;
ReefAngel.DCPump.SetMode( Else,50,10 );
ReefAngel.DCPump.DaylightChannel = Sync;

////// Place your custom code below here


////// Place your custom code above here

// This should always be the last line
ReefAngel.Portal( "SlimyEel" );
ReefAngel.ShowInterface();
}

BTW, I can not believe how incredibly simple that was, I was thinking it must be more complicated :roll: . I love this, I cant believe how cool this is, being able to change the settings from my ipad and iphone. Absolutely incredible.
Thanks again, now I am fully setup for everything I wanted a controller to do. Now I now I am just going to continue to advance it to do more "custom" things!

This forum is very helpful and you guys have been great.

Thank again.

Re: *new user* Setup to control Jebao wavemaker remotely

Posted: Fri Dec 19, 2014 4:18 am
by cosmith71
Roberto, that should be your new tagline. "Reef Angel, so easy even an eel can do it!" :mrgreen:

Glad it's working for you!

--Colin

Re: *new user* Setup to control Jebao wavemaker remotely

Posted: Fri Dec 19, 2014 5:05 am
by lnevo
Since you have UseMemory=true the mode you are setting in the code will not be used btw. Only what is set in the internal memory section in the portal.

Re: *new user* Setup to control Jebao wavemaker remotely

Posted: Fri Dec 19, 2014 9:53 am
by SlimyEel
Ok I was thinking I prefer it this way, I prefer to control everything from the app/ portal


Sent from my iPhone using Tapatalk

Re: *new user* Setup to control Jebao wavemaker remotely

Posted: Fri Dec 19, 2014 10:01 am
by lnevo
Yes by far the better way, I just didn't want you getting confused since you have this in your code.

ReefAngel.DCPump.SetMode( Else,50,10 );

It will get overwritten when the RA reads internal memory later on.