Jebao wavemaker

Post Reply
slm222
Posts: 105
Joined: Wed Nov 18, 2015 9:16 pm

Jebao wavemaker

Post by slm222 »

my question is, if I use the jebao cable is there a way to have the pumps on a certain mode with a certain max percentage be able to run lets say from 8 am to 9 pm and while running that certain mode.. be able to ramp up and down through the percentages with it hitting max at mid day?
User avatar
cosmith71
Posts: 1437
Joined: Fri Mar 29, 2013 3:51 pm
Location: Oklahoma City

Re: Jebao wavemaker

Post by cosmith71 »

Yup. I think you could use the PWMSlope function and feed it to the pump function.
slm222
Posts: 105
Joined: Wed Nov 18, 2015 9:16 pm

Re: Jebao wavemaker

Post by slm222 »

Ok, I saw that you could tie it in with the parabola selection of the actinic or white channel. I am a potential buyer but am curious of things like this before I pull the trigger as im not great at codes.
User avatar
cosmith71
Posts: 1437
Joined: Fri Mar 29, 2013 3:51 pm
Location: Oklahoma City

Re: Jebao wavemaker

Post by cosmith71 »

You could do it independently of the lights as well.
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Jebao wavemaker

Post by rimai »

Yeah, you can basically create whatever waveform you can think of.
We have the basic waveforms like the ecotech waveforms and to add to that, we also have slopes, parabolas, sigmoids and else wafeforms. There may be more that I can't think of.
Roberto.
slm222
Posts: 105
Joined: Wed Nov 18, 2015 9:16 pm

Re: Jebao wavemaker

Post by slm222 »

great! will play with it when I get it in I will come here for help. I can think of some advanced usages for it but no sense in asking now, im sure its more than capable.
slm222
Posts: 105
Joined: Wed Nov 18, 2015 9:16 pm

Re: Jebao wavemaker

Post by slm222 »

I am generating my code in anticipation of my order, if I post here could you help me develop a code to add in to perform the way I would like.

I am thinking:
from 9 am to 7 pm - alternate back and forth randomly maybe reef crest? (I can set a % that I would like it to stay at, and it can choose to go something like 20% over or under.. or anywhere in between that 40 percent range at its choice)
from 7pm - 9am - alternate back and forth for 20 minutes at a time at the lowest possible percentage

is something like that possible?
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: Jebao wavemaker

Post by lnevo »

yes
slm222
Posts: 105
Joined: Wed Nov 18, 2015 9:16 pm

Re: Jebao wavemaker

Post by slm222 »

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

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


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

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

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

void loop()
{
    ReefAngel.StandardHeater( Port1,764,771 );
    ReefAngel.SingleATO( true,Port2,200,0 );
    ReefAngel.MHLights( Port3,21,0,9,0,10 );
    ReefAngel.StandardLights( Port4,9,0,19,0 );
    ReefAngel.MHLights( Port8,12,0,15,0,7 );
    ReefAngel.PWM.SetDaylight( PWMParabola(9,0,20,0,15,48,15) );
    ReefAngel.PWM.SetActinic( PWMParabola(9,0,20,0,15,48,15) );
    ReefAngel.DCPump.UseMemory = false;
    ReefAngel.DCPump.SetMode( ReefCrest,50,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.AddWifi();
    ReefAngel.ShowInterface();
}

Post Reply