Page 1 of 1

2 koralias

Posted: Fri Apr 19, 2013 7:21 pm
by Rodasphoto
I used the wizard and programmed them both as random wave makers but one only get switched on. Is there a limitation on how many power heads I can set to wave maker? If there is what do I do with the second one to make it come on randomly?

Re: 2 koralias

Posted: Fri Apr 19, 2013 8:44 pm
by rimai
Can you post your code?

Re: 2 koralias

Posted: Sat Apr 20, 2013 7:58 pm
by Rodasphoto

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


    // Ports that are always on
    ReefAngel.Relay.On( Port1 );
    ReefAngel.Relay.On( Port8 );

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

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

void loop()
{
    ReefAngel.StandardLights( Port2,9,0,21,5 );
    ReefAngel.StandardLights( Port3,9,0,21,30 );
    ReefAngel.StandardLights( Port4,9,0,21,30 );
    ReefAngel.WavemakerRandom( Port5,60,100 );
    ReefAngel.WavemakerRandom( Port6,60,100 );
    ReefAngel.StandardHeater( Port7,778,784 );
    ReefAngel.PWM.SetChannel( 0, PWMParabola(9,0,20,0,15,100,15) );
    ReefAngel.PWM.SetChannel( 1, PWMParabola(8,30,20,30,15,100,15) );
    ////// Place your custom code below here
    

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

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

void DrawCustomMain()
{
    int x,y;
    char text[10];
    // Dimming Expansion
    x = 15;
    y = 2;
    for ( int a=0;a<6;a++ )
    {
      if ( a>2 ) x = 75;
      if ( a==3 ) y = 2;
      ReefAngel.LCD.DrawText( COLOR_DARKGOLDENROD,DefaultBGColor,x,y,"Ch :" );
      ReefAngel.LCD.DrawText( COLOR_DARKGOLDENROD,DefaultBGColor,x+12,y,a );
      ReefAngel.LCD.DrawText( COLOR_DARKGOLDENROD,DefaultBGColor,x+24,y,ReefAngel.PWM.GetChannelValue(a) );
      y += 10;
    }
    pingSerial();

    // Parameters
#if defined DisplayLEDPWM && ! defined RemoveAllLights
    ReefAngel.LCD.DrawMonitor( 15, 43, ReefAngel.Params,
    ReefAngel.PWM.GetDaylightValue(), ReefAngel.PWM.GetActinicValue() );
#else // defined DisplayLEDPWM && ! defined RemoveAllLights
    ReefAngel.LCD.DrawMonitor( 15, 43, ReefAngel.Params );
#endif // defined DisplayLEDPWM && ! defined RemoveAllLights
    pingSerial();

    // Main Relay Box
    byte TempRelay = ReefAngel.Relay.RelayData;
    TempRelay &= ReefAngel.Relay.RelayMaskOff;
    TempRelay |= ReefAngel.Relay.RelayMaskOn;
    ReefAngel.LCD.DrawOutletBox( 12, 84, TempRelay );
    pingSerial();

    // Date and Time
    ReefAngel.LCD.DrawDate( 6, 122 );
    pingSerial();
}

void DrawCustomGraph()
{
}

Re: 2 koralias

Posted: Sat Apr 20, 2013 7:59 pm
by rimai
Try this instead:

Code: Select all

    ReefAngel.WavemakerRandom1( Port5,60,100 );
    ReefAngel.WavemakerRandom2( Port6,60,100 );

Re: 2 koralias

Posted: Sun Apr 21, 2013 3:52 pm
by Rodasphoto
That seems to work. Weird because I used the wizard I used the wizard and thought it would do this automatically. Thanks for the help.

Re: 2 koralias

Posted: Tue Oct 08, 2013 12:08 pm
by Bruz4023
i know this is old and dead but i want to revive it temporarily!

I have 2 koralias and i was wondering if you are just switching them on and off with the relays, or do you have fancier ones you can control the speed of? I just ordered so i havent played with anything yet!

The reason i ask is dont they reverse their direction often? Or just click loudly?

Re: 2 koralias

Posted: Tue Oct 08, 2013 1:26 pm
by lnevo
Only on and off. Direction reversing is a hit or miss issue from what I've heard

Re: 2 koralias

Posted: Tue Oct 08, 2013 1:32 pm
by rimai
Mine spins backwards all the time.
One of them is even dead and inside the tank with its power plug disconnected :(
Worse is that I have 2x WP-25 (controllable Jebao pumps) brand new in the box waiting to be hooked up and I'm too lazy and out of time to do it... :oops:

Re: 2 koralias

Posted: Tue Oct 08, 2013 6:01 pm
by binder
rimai wrote:Mine spins backwards all the time.
One of them is even dead and inside the tank with its power plug disconnected :(
Worse is that I have 2x WP-25 (controllable Jebao pumps) brand new in the box waiting to be hooked up and I'm too lazy and out of time to do it... :oops:
yeah, mine would get screwed up too.

oh and I have a wp-40 that im too lazy to hook up as well. I feel your pain.

Sent from my Nexus 7

Re: 2 koralias

Posted: Wed Oct 09, 2013 7:51 pm
by johniii
If your koralias spin backwards email hydor they will send you the stuff to fix it plus extra parts. They don't even ask the age.

Sent from my XT912 using Tapatalk 4

Re: 2 koralias

Posted: Thu Oct 10, 2013 10:01 am
by Bruz4023
ok because that is what mine do too!

hey if you to lazy to hook up that wp-40 i could take it off your hands i have been looking for one! probably one or two wp-25s would be better for my tank

Re: 2 koralias

Posted: Thu Oct 10, 2013 7:11 pm
by binder
Bruz4023 wrote:ok because that is what mine do too!

hey if you to lazy to hook up that wp-40 i could take it off your hands i have been looking for one! probably one or two wp-25s would be better for my tank
i plan on setting it up next week. that's one of my tasks for my vacation. :)

Sent from my Nexus 7

Re: 2 koralias

Posted: Sat Oct 12, 2013 11:00 am
by Rodasphoto
When I purchased mine they were the updated ones and do not spin backwards. I really have to listen carefully to hear that they come on.