jaebo code not working,

Share you PDE file with our community

Posts: 144
Joined: Tue Aug 14, 2012 1:11 pm
PostPosted: Wed Apr 02, 2014 9:12 pm
as title says jaebo not working I am using the code below.

I see the values changing on the controller but the pumps isn't going what it shows.


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 <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
    ReefAngel.AddSalinityExpansion();  // Salinity Expansion Module
    ReefAngel.AddWaterLevelExpansion();  // Water Level Expansion Module
    // Ports toggled in Feeding Mode
    ReefAngel.FeedingModePorts = Port1Bit | Port2Bit;
    // Ports toggled in Water Change Mode
    ReefAngel.WaterChangePorts = Port1Bit | Port2Bit;
    // Ports toggled when Lights On / Off menu entry selected
    ReefAngel.LightsOnPorts = 0;
    // Ports turned off when Overheat temperature exceeded
    ReefAngel.OverheatShutoffPorts = Port3Bit;
    // Use T1 probe as temperature and overheat functions
    ReefAngel.TempProbe = T1_PROBE;
    ReefAngel.OverheatProbe = T1_PROBE;

    // 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( Port4 );
    ReefAngel.Relay.On( Port6 );
    ReefAngel.Relay.On( Port7 );
    ReefAngel.Relay.On( Port8 );
    ReefAngel.Relay.On( Box1_Port1 );

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

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

void loop()
{
    ReefAngel.Relay.DelayedOn( Port2 );
    ReefAngel.StandardHeater( Port3 );
    ReefAngel.Wavemaker1( Port5 );
    ReefAngel.StandardATO( Box1_Port2 );
    ReefAngel.CO2Control( Box1_Port3 );
    ReefAngel.PHControl( Box1_Port4 );
    ReefAngel.PWM.Channel0PWMSlope();
    ReefAngel.PWM.Channel1PWMSlope();
    ReefAngel.PWM.Channel2PWMSlope();
    ReefAngel.PWM.Channel3PWMSlope();
    ReefAngel.DCPump.UseMemory = true;
    ReefAngel.DCPump.DaylightChannel = Sync;
    ReefAngel.DCPump.ActinicChannel = None;
   
        if (hour()>=8 && hour()<11)
    {
     
      ReefAngel.PWM.SetDaylight( TidalSwellMode(40,true) ); // Tidal Swell at 40% on sync mode
     }
    else if (hour()>=11 && hour()<12)
    {
   
      ReefAngel.PWM.SetDaylight( ReefCrestMode(50,20,true) ); // ReefCrest at 50% + - 20 on sync mode
   
    }
    else if (hour()>=12 && hour()<13)
    {
     
      ReefAngel.PWM.SetDaylight( millis()%1000>800?80:0); // WaveMode on sync mode
   
    }
    else if (hour()>=13 && hour()<14)
    {
     
      ReefAngel.PWM.SetDaylight( ReefCrestMode(70,20,true) ); // ReefCrest at 70% + - 20 on sync mode
     
    }
    else if (hour()>=15 && hour()<18)
    {
     
      ReefAngel.PWM.SetDaylight( NutrientTransportMode(77,90,3000,true) ); // Nutrient Transport on sync mode
     
    }
    else if (hour()>=21 && hour()<24)
    {
     
      ReefAngel.PWM.SetDaylight( millis()%1000>800?70:0); // Wave on sync mode
     
    }
    else
    {
     
      ReefAngel.PWM.SetDaylight( LongPulseMode(40,40,10,true) ); // Long pulse at 40% with 10s pulse on syncy mode
     
    }
     if (ReefAngel.DisplayedMenu==FEEDING_MODE)
      {
                ReefAngel.PWM.SetDaylight(0);
      }
      if (ReefAngel.DisplayedMenu==WATERCHANGE_MODE)
      {
               ReefAngel.PWM.SetDaylight(0);
      }


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

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

Adam
58 Gal
Image

Posts: 144
Joined: Tue Aug 14, 2012 1:11 pm
PostPosted: Wed Apr 02, 2014 9:20 pm
should also mention using the wizard. tidel swell still no pump action
Adam
58 Gal
Image

Posts: 260
Joined: Fri Jul 20, 2012 7:13 am
Location: Oakley, CA
PostPosted: Wed Apr 02, 2014 9:25 pm
Change:

Code: Select all
  ReefAngel.DCPump.UseMemory = true;


to

Code: Select all
  ReefAngel.DCPump.UseMemory = false;


and see if that helps.

Posts: 144
Joined: Tue Aug 14, 2012 1:11 pm
PostPosted: Wed Apr 02, 2014 9:37 pm
I switched it over to the actinic side and nothing either.

I thinking the dimming ports on the relay box are bad.

sucks. I was going to buy one more cable and get another pump...
Adam
58 Gal
Image

Posts: 260
Joined: Fri Jul 20, 2012 7:13 am
Location: Oakley, CA
PostPosted: Thu Apr 03, 2014 8:23 am
You tried setting ReefAngel.DCPump.UseMemory to false also? What do you have the DC pump set to on the portal?

Do you have multi-meter you can put on the dimming ports to measure the voltage?

Posts: 12044
Joined: Fri Mar 18, 2011 6:47 pm
PostPosted: Thu Apr 03, 2014 8:37 am
Have you ever used the dimming ports before?
If your box is one of the early versions, it did not have the booster built-in.
It was an optional item. You would need to open the box to find out.
Let me know which revision or take some photos.
Roberto.

Posts: 144
Joined: Tue Aug 14, 2012 1:11 pm
PostPosted: Thu Apr 03, 2014 5:24 pm
I will try again later tonight once the lights go out. and I will unplug everything and open the box up.

I bought it 2 years ago I think. I used the dimming ports for a short period of time. while I was saving to buy the dimming expansion.
Adam
58 Gal
Image

Posts: 144
Joined: Tue Aug 14, 2012 1:11 pm
PostPosted: Thu Apr 03, 2014 5:25 pm
relay box dimming ports haven't been used in almost 2 years.
Adam
58 Gal
Image

Posts: 144
Joined: Tue Aug 14, 2012 1:11 pm
PostPosted: Thu Apr 03, 2014 6:37 pm
I tested for output voltage on the relay box, nothing. I have the DC pump set to 100% constant. No voltage on either ports.

Guess I will continue to use the stock jaebo controller.


Anyone need a jaebo pump cord?
Adam
58 Gal
Image

Posts: 98
Joined: Sun Jul 21, 2013 8:18 am
PostPosted: Thu Apr 03, 2014 7:30 pm
Ademster wrote:I tested for output voltage on the relay box, nothing. I have the DC pump set to 100% constant. No voltage on either ports.

Guess I will continue to use the stock jaebo controller.


Anyone need a jaebo pump cord?


I had a similar problem with the relay box, where the dimming channels were not working. Roberto advised that I change chip LM358P on the relay board. I did that and the dimming channels were functioning after that.

Dr Davaraj
Image
Next

Return to My PDE/INO file

Who is online

Users browsing this forum: No registered users and 1 guest

cron