Help with 2 X Jebao Wave-makers and Application Iterface

Do you have a question on how to do something.
Ask in here.
Post Reply
raythesaint
Posts: 13
Joined: Sat Apr 11, 2015 6:05 pm

Help with 2 X Jebao Wave-makers and Application Iterface

Post 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();
}

rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

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

Post 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?
Roberto.
raythesaint
Posts: 13
Joined: Sat Apr 11, 2015 6:05 pm

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

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

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

Post 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();
}
Roberto.
raythesaint
Posts: 13
Joined: Sat Apr 11, 2015 6:05 pm

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

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

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

Post 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.
Roberto.
raythesaint
Posts: 13
Joined: Sat Apr 11, 2015 6:05 pm

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

Post by raythesaint »

When I changed DCPump memory to true and hit compile I got this error message:'True' was not declared in this scope?
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

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

Post by rimai »

case sensitivity is very important
Roberto.
raythesaint
Posts: 13
Joined: Sat Apr 11, 2015 6:05 pm

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

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

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

Post by rimai »

Humm...
Removing this shouldn't affect it, but try.

Code: Select all

    ReefAngel.DCPump.SetMode( ShortPulse,50,500 );
Roberto.
raythesaint
Posts: 13
Joined: Sat Apr 11, 2015 6:05 pm

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

Post by raythesaint »

No, no change, do I have to select anything or turn anything on in the app that would show the controls?
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

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

Post by rimai »

Are you talking about the android app?
Roberto.
raythesaint
Posts: 13
Joined: Sat Apr 11, 2015 6:05 pm

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

Post by raythesaint »

I don't know, it's called Reef Angel remote and I downloaded it from the Windows store.
raythesaint
Posts: 13
Joined: Sat Apr 11, 2015 6:05 pm

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

Post 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.
binder
Posts: 2871
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

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

Post 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
raythesaint
Posts: 13
Joined: Sat Apr 11, 2015 6:05 pm

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

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

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

Post by rimai »

Long press on the android.
Roberto.
binder
Posts: 2871
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

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

Post 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
raythesaint
Posts: 13
Joined: Sat Apr 11, 2015 6:05 pm

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

Post by raythesaint »

Got it, long hold I will check out the manual... Thanks
01M5PWR
Posts: 3
Joined: Thu May 28, 2015 2:34 pm
Location: Fort Collins, CO USA

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

Post 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?
120g High Mixed Reef
60g Cube Mixed Reef
raythesaint
Posts: 13
Joined: Sat Apr 11, 2015 6:05 pm

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

Post 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
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

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

Post by lnevo »

Yeah that needs to be programmed separately
Post Reply