wave maker and skimmer

Do you have a question on how to do something.
Ask in here.
Post Reply
keitht
Posts: 5
Joined: Fri Mar 29, 2013 7:54 pm

wave maker and skimmer

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

Re: wave maker and skimmer

Post by rimai »

Try this:

Code: Select all

    ReefAngel.WavemakerRandom1( Port6,60,100 );
    ReefAngel.WavemakerRandom2( Port5,60,100 );
    ReefAngel.Relay.Set( Port1, ReefAngel.HighATO.IsActive );
Roberto.
keitht
Posts: 5
Joined: Fri Mar 29, 2013 7:54 pm

Re: wave maker and skimmer

Post by keitht »

Still not working for me where do i put this I keep getting an error.
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: wave maker and skimmer

Post by rimai »

You need to place it in the loop() section.
What is the error you are getting?
Roberto.
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: wave maker and skimmer

Post 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() );
Roberto.
keitht
Posts: 5
Joined: Fri Mar 29, 2013 7:54 pm

Re: wave maker and skimmer

Post 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.
User avatar
cosmith71
Posts: 1432
Joined: Fri Mar 29, 2013 3:51 pm
Location: Oklahoma City

Re: wave maker and skimmer

Post by cosmith71 »

Put it after the { after void loop().

--Colin
User avatar
cosmith71
Posts: 1432
Joined: Fri Mar 29, 2013 3:51 pm
Location: Oklahoma City

Re: wave maker and skimmer

Post 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
Post Reply