jaebo code not working,

Share you PDE file with our community
Post Reply
Ademster
Posts: 144
Joined: Tue Aug 14, 2012 1:11 pm

jaebo code not working,

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

Adam
58 Gal
Image
Ademster
Posts: 144
Joined: Tue Aug 14, 2012 1:11 pm

Re: jaebo code not working,

Post by Ademster »

should also mention using the wizard. tidel swell still no pump action
Adam
58 Gal
Image
Piper
Posts: 296
Joined: Fri Jul 20, 2012 7:13 am
Location: Oakley, CA

Re: jaebo code not working,

Post by Piper »

Change:

Code: Select all

  ReefAngel.DCPump.UseMemory = true;
to

Code: Select all

  ReefAngel.DCPump.UseMemory = false;
and see if that helps.
Ademster
Posts: 144
Joined: Tue Aug 14, 2012 1:11 pm

Re: jaebo code not working,

Post 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...
Adam
58 Gal
Image
Piper
Posts: 296
Joined: Fri Jul 20, 2012 7:13 am
Location: Oakley, CA

Re: jaebo code not working,

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

Re: jaebo code not working,

Post 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.
Roberto.
Ademster
Posts: 144
Joined: Tue Aug 14, 2012 1:11 pm

Re: jaebo code not working,

Post 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.
Adam
58 Gal
Image
Ademster
Posts: 144
Joined: Tue Aug 14, 2012 1:11 pm

Re: jaebo code not working,

Post by Ademster »

relay box dimming ports haven't been used in almost 2 years.
Adam
58 Gal
Image
Ademster
Posts: 144
Joined: Tue Aug 14, 2012 1:11 pm

Re: jaebo code not working,

Post 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?
Adam
58 Gal
Image
davaraj
Posts: 98
Joined: Sun Jul 21, 2013 8:18 am

Re: jaebo code not working,

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

Re: jaebo code not working,

Post by rimai »

Did you open the box to check?
Roberto.
Ademster
Posts: 144
Joined: Tue Aug 14, 2012 1:11 pm

Re: jaebo code not working,

Post by Ademster »

No, I just tested for voltage on the dimming port pins. with it commanding both actinic and daylight channel 100% no voltage..
Adam
58 Gal
Image
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: jaebo code not working,

Post 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.
Roberto.
Ademster
Posts: 144
Joined: Tue Aug 14, 2012 1:11 pm

Re: jaebo code not working,

Post by Ademster »

I'll open it up tonight
Adam
58 Gal
Image
Ademster
Posts: 144
Joined: Tue Aug 14, 2012 1:11 pm

Re: jaebo code not working,

Post 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
Adam
58 Gal
Image
Ademster
Posts: 144
Joined: Tue Aug 14, 2012 1:11 pm

Re: jaebo code not working,

Post by Ademster »

Image

Image

Image

Image
Adam
58 Gal
Image
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: jaebo code not working,

Post by rimai »

Looks like saltwater damage.
Roberto.
Post Reply