Page 1 of 1
how to: wavemakers off overnight?
Posted: Mon Mar 12, 2012 9:55 am
by bigHUN
how to code the wavemakers turn on and cycle about the time as the daylight, or similar setting?
I have the main return pump and a closed circuit pump running all time (port8), and the wavemakers on 5-6 may not need to steer overnight?
but again, at feeding time or waterchange time go off as it is now by default.
Re: how to: wavemakers off overnight?
Posted: Mon Mar 12, 2012 10:41 am
by rimai
Which port do you have your daylights?
Re: how to: wavemakers off overnight?
Posted: Mon Mar 12, 2012 12:34 pm
by bigHUN
#define Port6 6 // Wavemaker 2
#define Port5 5 // Wavemaker 1
#define Port4 4 // Standard Lights 2
#define Port3 3 // Standard Lights 1
Re: how to: wavemakers off overnight?
Posted: Mon Mar 12, 2012 12:53 pm
by rimai
You can use something like this:
Code: Select all
if (ReefAngel.Relay.Status(Port3))
{
ReefAngel.Wavemaker1(Port5);
ReefAngel.Wavemaker2(Port6);
}
else
{
ReefAngel.Relay.Off(Port5);
ReefAngel.Relay.Off(Port6);
}
Re: how to: wavemakers off overnight?
Posted: Thu Mar 15, 2012 3:10 pm
by bigHUN
what that means:
AtilaFinal:136: error: expected unqualified-id before 'if'
AtilaFinal:142: error: expected unqualified-id before 'else'
Re: how to: wavemakers off overnight?
Posted: Thu Mar 15, 2012 6:04 pm
by rimai
It's probably that you are trying to place the code above in the wrong place.
Make sure you paste inside the loop() brackets.