Page 1 of 1
wave maker and skimmer
Posted: Wed Apr 10, 2013 7:07 pm
by keitht
I would like to set ports 5 and 6 to random and port 1 to turn off with a float switch can this be done?
If so what codes need to be replaced and with what.
I want my skimmer to turn off when skimmate container is full.
Thank you
Keith
Re: wave maker and skimmer
Posted: Wed Apr 10, 2013 9:11 pm
by rimai
Try this:
Code: Select all
ReefAngel.WavemakerRandom1( Port6,60,100 );
ReefAngel.WavemakerRandom2( Port5,60,100 );
ReefAngel.Relay.Set( Port1, ReefAngel.HighATO.IsActive );
Re: wave maker and skimmer
Posted: Thu Apr 11, 2013 6:29 pm
by keitht
Still not working for me where do i put this I keep getting an error.
Re: wave maker and skimmer
Posted: Thu Apr 11, 2013 7:58 pm
by rimai
You need to place it in the loop() section.
What is the error you are getting?
Re: wave maker and skimmer
Posted: Thu Apr 11, 2013 7:59 pm
by rimai
Actually... I just noticed a typo...

Use this:
Code: Select all
ReefAngel.WavemakerRandom1( Port6,60,100 );
ReefAngel.WavemakerRandom2( Port5,60,100 );
ReefAngel.Relay.Set( Port1, ReefAngel.HighATO.IsActive() );
Re: wave maker and skimmer
Posted: Sun May 19, 2013 5:41 pm
by keitht
I still cant get it where exactly do I put the code. I load the preloaded and try pasteing it in the ( ) after where it said loop() and i get an error
The following features were automatically added:
Watchdog Timer
Version Menu
The following features were detected:
Dimming Signal
Extra Font - Medium Size (8x8 pixels)
Date/Time Setup Menu
Standard Menu
RA_Preloaded:32: error: variable or field 'loop' declared void
RA_Preloaded:32: error: expected `)' before ';' token
RA_Preloaded:33: error: expected constructor, destructor, or type conversion before '.' token
RA_Preloaded:34: error: expected constructor, destructor, or type conversion before '.' token
RA_Preloaded:35: error: expected unqualified-id before ')' token
What am I doing wrong and I cant open the wizard on my netbook.
Re: wave maker and skimmer
Posted: Sun May 19, 2013 6:25 pm
by cosmith71
Put it after the { after void loop().
--Colin
Re: wave maker and skimmer
Posted: Sun May 19, 2013 6:28 pm
by cosmith71
Like this:
void loop()
{
ReefAngel.WavemakerRandom1( Port6,60,100 );
ReefAngel.WavemakerRandom2( Port5,60,100 );
ReefAngel.Relay.Set( Port1, ReefAngel.HighATO.IsActive() );
Rest of the code...
--Colin