Page 1 of 1

Help with 2 X Jebao Wave-makers and Application Iterface

Posted: Thu Jun 18, 2015 10:08 am
by raythesaint
So I've been jacking with my Jebao's since I got my speed-cables in the mail last Saturday. My Jebao's are on port 5 and port 6. When using the RA Wizard for setup only port 5 seems to be operational clicking on every several minutes, I have yet to see port 6 active. I tried a custom code after reading various member posts but neither wave-maker turned on at all even though the head-unit and app said otherwise.

I have 2 X Jebao RW-8's connected by 2 speed-cables to Daylight and Actinic channel dimming ports.

This is what I was attempting to do:

1. Set custom port labels

2. Set a day wave pattern to reef crest min @30% and max @60%
one set to sync and the other to anti-sync on @14:00 and off @20:30

Set night to lagoon @30%
one set to sync and the other to anti-sync on @20:31 and off @13:59

3. Setup app control for wave-makers

I would like to change settings "intensity, mode, timer" for my wave-makers from the app or at least through the head-unit.

I will post my code hopefully someone can spot what I did wrong...

Code: Select all

#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 = Port1Bit | Port2Bit | Port5Bit | Port7Bit | Port8Bit;
    // Ports toggled in Water Change Mode
    ReefAngel.WaterChangePorts = Port1Bit | Port2Bit | Port5Bit | Port6Bit | Port7Bit | Port8Bit;
    // Ports toggled when Lights On / Off menu entry selected
    ReefAngel.LightsOnPorts = 0;
    // Ports turned off when Overheat temperature exceeded
    ReefAngel.OverheatShutoffPorts = Port3Bit | Port7Bit;
    // Use T1 probe as temperature and overheat functions
    ReefAngel.TempProbe = T1_PROBE;
    ReefAngel.OverheatProbe = T1_PROBE;
    // Set the Overheat temperature setting
    InternalMemory.OverheatTemp_write( 820 );

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


    // 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 );

    ////// Place additional initialization code below here
   
//Define labels for 2014 LCD screen

#define ATO                   8
#define Reactor              7
#define WM2                  6
#define WM1                  5
#define UVL                   4
#define Heater               3
#define Skimmer            2
#define Return               1


 

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

void loop()
{
    /*
    ReefAngel.StandardHeater( Port3,751,791 );
    ReefAngel.WavemakerRandom( Port5,30,60 );
    ReefAngel.WavemakerRandom( Port6,30,60 );
    ReefAngel.StandardATO( Port8,60 );
    ReefAngel.PWM.SetDaylight( PWMSlope(14,0,20,30,30,60,15,30) );
    ReefAngel.PWM.SetActinic( PWMSlope(14,0,21,0,30,60,15,30) );
    ReefAngel.DCPump.UseMemory = true;
    ReefAngel.DCPump.SetMode( ReefCrest,60,10 );
    ReefAngel.DCPump.DaylightChannel = Sync;
    ReefAngel.DCPump.ActinicChannel = AntiSync;
    ReefAngel.PWM.SetDaylight( PWMSlope(20,31,13,59,30) );
    ReefAngel.PWM.SetActinic( PWMSlope(20,31,13,59,30) );
    ReefAngel.DCPump.UseMemory = true;
    ReefAngel.DCPump.SetMode( Lagoon,30,10 );
    ReefAngel.DCPump.DaylightChannel = Sync;
    ReefAngel.DCPump.ActinicChannel = AntiSync;
    */
    ////// Place your custom code below here
    

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

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


Re: Help with 2 X Jebao Wave-makers and Application Iterface

Posted: Thu Jun 18, 2015 7:55 pm
by rimai
Port 5 and port 6 need to be set to always on.
Are you able to control them with the phone app right now?

Re: Help with 2 X Jebao Wave-makers and Application Iterface

Posted: Thu Jun 18, 2015 11:16 pm
by raythesaint
N0, I can see the mode and speed but that's it. I can manipulate the port settings, initiate feed, and water change but that's about it. I forgot to mention I have a Windows phone if that makes a difference. I also forgot to mention my custom port labels did not work either. I will try setting ports 5 and 6 to always on tomorrow... Thanks

Re: Help with 2 X Jebao Wave-makers and Application Iterface

Posted: Fri Jun 19, 2015 8:13 am
by rimai
Let's do one thing at a time.
For labels: http://forum.reefangel.com/viewtopic.ph ... stomlabels
For the pump, use this code and let us know if the pumps work in short pulse mode.

Code: Select all

#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 = Port1Bit | Port2Bit | Port5Bit | Port7Bit | Port8Bit;
    // Ports toggled in Water Change Mode
    ReefAngel.WaterChangePorts = Port1Bit | Port2Bit | Port5Bit | Port6Bit | Port7Bit | Port8Bit;
    // Ports toggled when Lights On / Off menu entry selected
    ReefAngel.LightsOnPorts = 0;
    // Ports turned off when Overheat temperature exceeded
    ReefAngel.OverheatShutoffPorts = Port3Bit | Port7Bit;
    // Use T1 probe as temperature and overheat functions
    ReefAngel.TempProbe = T1_PROBE;
    ReefAngel.OverheatProbe = T1_PROBE;
    // Set the Overheat temperature setting
    InternalMemory.OverheatTemp_write( 820 );

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


    // 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 );

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

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

void loop()
{
    ReefAngel.DCPump.UseMemory = false;
    ReefAngel.DCPump.SetMode( ShortPulse,50,500 );
    ReefAngel.DCPump.DaylightChannel = Sync;
    ReefAngel.DCPump.ActinicChannel = AntiSync;
    ////// Place your custom code below here
    

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

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

Re: Help with 2 X Jebao Wave-makers and Application Iterface

Posted: Fri Jun 19, 2015 4:01 pm
by raythesaint
:D OK, after I loaded the code the Jebao on the daylight channel was working but actinic was not. In fact the Jebao on the actinic channel didn't even show on the display. I looked under the tank to check the speed-cable connections and I could see copper wire below the plug at the actinic dimmer port. I pushed it up and it turned on, both Jebaos are pulsing now. Still no control at the app though.

Re: Help with 2 X Jebao Wave-makers and Application Iterface

Posted: Fri Jun 19, 2015 5:46 pm
by rimai
Good, so we know you can control the pumps.
Now, let's move the setting from hard coded to memory.
Replace this:

Code: Select all

    ReefAngel.DCPump.UseMemory = false;
To this:

Code: Select all

    ReefAngel.DCPump.UseMemory = true;
 
You should be able to control with app now.

Re: Help with 2 X Jebao Wave-makers and Application Iterface

Posted: Fri Jun 19, 2015 6:06 pm
by raythesaint
When I changed DCPump memory to true and hit compile I got this error message:'True' was not declared in this scope?

Re: Help with 2 X Jebao Wave-makers and Application Iterface

Posted: Fri Jun 19, 2015 6:11 pm
by rimai
case sensitivity is very important

Re: Help with 2 X Jebao Wave-makers and Application Iterface

Posted: Fri Jun 19, 2015 6:34 pm
by raythesaint
That was it, I used upper case T for true. Code uploaded but still can't control pumps from app? Sorry for being such a pain... Thanks

Re: Help with 2 X Jebao Wave-makers and Application Iterface

Posted: Fri Jun 19, 2015 6:53 pm
by rimai
Humm...
Removing this shouldn't affect it, but try.

Code: Select all

    ReefAngel.DCPump.SetMode( ShortPulse,50,500 );

Re: Help with 2 X Jebao Wave-makers and Application Iterface

Posted: Fri Jun 19, 2015 8:12 pm
by raythesaint
No, no change, do I have to select anything or turn anything on in the app that would show the controls?

Re: Help with 2 X Jebao Wave-makers and Application Iterface

Posted: Fri Jun 19, 2015 8:39 pm
by rimai
Are you talking about the android app?

Re: Help with 2 X Jebao Wave-makers and Application Iterface

Posted: Fri Jun 19, 2015 9:46 pm
by raythesaint
I don't know, it's called Reef Angel remote and I downloaded it from the Windows store.

Re: Help with 2 X Jebao Wave-makers and Application Iterface

Posted: Sat Jun 20, 2015 12:43 pm
by raythesaint
I just downloaded the Reef Angel app on my daughters iPad and works perfect. I can change modes, speed, and intensity. The app for the Windows phone is shight! I guess I'll be looking for a new phone now... Thanks for all your help, I feel a lot better about my RA now that I have more control.

Re: Help with 2 X Jebao Wave-makers and Application Iterface

Posted: Sat Jun 20, 2015 7:18 pm
by binder
raythesaint wrote:I just downloaded the Reef Angel app on my daughters iPad and works perfect. I can change modes, speed, and intensity. The app for the Windows phone is shight! I guess I'll be looking for a new phone now... Thanks for all your help, I feel a lot better about my RA now that I have more control.
i hear the android app is pretty good. ;)

Sent from my Moto X

Re: Help with 2 X Jebao Wave-makers and Application Iterface

Posted: Mon Jun 22, 2015 4:01 pm
by raythesaint
Just bought an LG Escape 2 Android OS 5.0.2 and I installed the RA app from the Google play store. Once again I can see the mode, speed, duration and threshold but I can't change them. Do I need to enable something to do change settings of my Jebaos? Thanks

Re: Help with 2 X Jebao Wave-makers and Application Iterface

Posted: Mon Jun 22, 2015 4:46 pm
by rimai
Long press on the android.

Re: Help with 2 X Jebao Wave-makers and Application Iterface

Posted: Mon Jun 22, 2015 5:28 pm
by binder
yep, long press on the value and a dialog box will popup.
I would suggest that you look through the manual i posted in the android app thread on the forum. that explains everything in detail.

Sent from my Moto X

Re: Help with 2 X Jebao Wave-makers and Application Iterface

Posted: Mon Jun 22, 2015 8:13 pm
by raythesaint
Got it, long hold I will check out the manual... Thanks

Re: Help with 2 X Jebao Wave-makers and Application Iterface

Posted: Wed Jun 24, 2015 12:00 pm
by 01M5PWR
Ray,

I have my wavemakers set up the same way. I am currently running them via internal memory and the app settings. My question to you is, how did you get the day and night mode to change with the app?

Re: Help with 2 X Jebao Wave-makers and Application Iterface

Posted: Mon Jul 06, 2015 9:08 am
by raythesaint
Sorry for the delay, I didn't get a push notification when you posted. I'm not sure, I was looking for that too, I think day and night modes have to be stated in the code because it's not part of the default interface. If you already got it sorted out please let me know how you did it... Thanks

Re: Help with 2 X Jebao Wave-makers and Application Iterface

Posted: Tue Jul 07, 2015 5:09 am
by lnevo
Yeah that needs to be programmed separately