2 koralias
- Rodasphoto
- Posts: 187
- Joined: Wed Apr 10, 2013 2:48 pm
- Location: Athens, Ga
- Contact:
2 koralias
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?
- Rodasphoto
- Posts: 187
- Joined: Wed Apr 10, 2013 2:48 pm
- Location: Athens, Ga
- Contact:
Re: 2 koralias
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
Try this instead:
Code: Select all
ReefAngel.WavemakerRandom1( Port5,60,100 );
ReefAngel.WavemakerRandom2( Port6,60,100 );
Roberto.
- Rodasphoto
- Posts: 187
- Joined: Wed Apr 10, 2013 2:48 pm
- Location: Athens, Ga
- Contact:
Re: 2 koralias
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
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?
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
Only on and off. Direction reversing is a hit or miss issue from what I've heard
Re: 2 koralias
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...
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...
Roberto.
Re: 2 koralias
yeah, mine would get screwed up too.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...
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
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
Sent from my XT912 using Tapatalk 4
Re: 2 koralias
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
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
i plan on setting it up next week. that's one of my tasks for my vacation.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
Sent from my Nexus 7
- Rodasphoto
- Posts: 187
- Joined: Wed Apr 10, 2013 2:48 pm
- Location: Athens, Ga
- Contact:
Re: 2 koralias
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.