Page 1 of 1

jaebo code not working,

Posted: Wed Apr 02, 2014 9:12 pm
by Ademster
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();
}


Re: jaebo code not working,

Posted: Wed Apr 02, 2014 9:20 pm
by Ademster
should also mention using the wizard. tidel swell still no pump action

Re: jaebo code not working,

Posted: Wed Apr 02, 2014 9:25 pm
by Piper
Change:

Code: Select all

  ReefAngel.DCPump.UseMemory = true;
to

Code: Select all

  ReefAngel.DCPump.UseMemory = false;
and see if that helps.

Re: jaebo code not working,

Posted: Wed Apr 02, 2014 9:37 pm
by Ademster
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...

Re: jaebo code not working,

Posted: Thu Apr 03, 2014 8:23 am
by Piper
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?

Re: jaebo code not working,

Posted: Thu Apr 03, 2014 8:37 am
by rimai
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.

Re: jaebo code not working,

Posted: Thu Apr 03, 2014 5:24 pm
by Ademster
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.

Re: jaebo code not working,

Posted: Thu Apr 03, 2014 5:25 pm
by Ademster
relay box dimming ports haven't been used in almost 2 years.

Re: jaebo code not working,

Posted: Thu Apr 03, 2014 6:37 pm
by Ademster
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?

Re: jaebo code not working,

Posted: Thu Apr 03, 2014 7:30 pm
by davaraj
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

Re: jaebo code not working,

Posted: Thu Apr 03, 2014 9:12 pm
by rimai
Did you open the box to check?

Re: jaebo code not working,

Posted: Fri Apr 04, 2014 6:50 am
by Ademster
No, I just tested for voltage on the dimming port pins. with it commanding both actinic and daylight channel 100% no voltage..

Re: jaebo code not working,

Posted: Fri Apr 04, 2014 8:16 am
by rimai
I meant open the box to see if you have old style box or not.
If it is one of the old style boxes, you will need a PWM booster add-on.
Check the revision of the board or take a photo.

Re: jaebo code not working,

Posted: Fri Apr 04, 2014 9:57 am
by Ademster
I'll open it up tonight

Re: jaebo code not working,

Posted: Fri Apr 04, 2014 7:06 pm
by Ademster
Revision 8.0 looks like the IC chip fried. burn marks all around the ic chip and also you can see it got hot around the legs.

Guess I have to order one and replace it

Re: jaebo code not working,

Posted: Fri Apr 04, 2014 7:17 pm
by Ademster
Image

Image

Image

Image

Re: jaebo code not working,

Posted: Fri Apr 04, 2014 8:02 pm
by rimai
Looks like saltwater damage.