can the wavemaker function go random?
i mean when you enter 100s for wavemaker 1, can it do random time from 1-100s not the full 100s?
also, is it possible for RA to give a command =
if wavemaker 1 is off, then wavemaker 2 on, if wavemaker 1 is on, then wavemaker 2 is off.
TIA.
wavemaker
Re: wavemaker
It currently cannot go random. You could code something that you would specify the amount of time (like 100s) and then after each interval you would randomly generate a new time.cain wrote:can the wavemaker function go random?
i mean when you enter 100s for wavemaker 1, can it do random time from 1-100s not the full 100s?
This would be something like what you are wanting. At startup, whatever the value you have set for the WM1 timer is used to generate a random number from 0 to it. After every cycle a new number is generated so the off & on times will not be the same.
Code: Select all
void setup()
{
randomSeed(analogRead(0));
ReefAngel.Init();
ReefAngel.Timer[1].SetInterval(random(InternalMemory.WM1Timer_read()));
ReefAngel.Timer[1].Start();
ReefAngel.Relay.On(Port4);
}
void loop()
{
ReefAngel.ShowInterface();
if ( ReefAngel.Timer[1].IsTriggered() )
{
ReefAngel.Timer[1].SetInterval(random(InternalMemory.WM1Timer_read()));
ReefAngel.Timer[1].Start();
ReefAngel.Relay.Toggle(Port4);
}
}
Code: Select all
void setup()
{
randomSeed(analogRead(0));
ReefAngel.Init();
ReefAngel.Timer[1].SetInterval(random(InternalMemory.WM1Timer_read()));
ReefAngel.Timer[1].Start();
ReefAngel.Relay.On(Port4);
}
void loop()
{
ReefAngel.ShowInterface();
if ( ReefAngel.Timer[1].IsTriggered() )
{
ReefAngel.Timer[1].SetInterval(random(InternalMemory.WM1Timer_read()));
ReefAngel.Timer[1].Start();
ReefAngel.Relay.Toggle(Port4);
ReefAngel.Relay.Toggle(Port5); // added this line
}
}
Also note, you will NOT use the Wavemaker1, Wavemaker2, or Wavemaker functions at all when using this code. The code is also based off of my dev libraries. I also did not include all the "include" statements at the top.
You want to issue a command that turns off wm1 then immediately turns on wm2 and then when wm2 turns off immediately turn on wm1? So once you set wm1, it just toggles wm1 & wm2 back and forth?also, is it possible for RA to give a command =
if wavemaker 1 is off, then wavemaker 2 on, if wavemaker 1 is on, then wavemaker 2 is off.
See the second code example above if that's the case.
curt
Re: wavemaker
Tried it, and worked like a charm. TY.
Now to the next.
i plugged in my head unit to the ph probe and the temp sensor.
ph probe displayed properly but temperature values didnt display in the head unit.
values are all zero (0) i tried all 3 ports for the temp and nothing seems to display the value.
i also have a question with regards to ATO,
if i'm going to use the "single ATO low' this means that, if the flaot switch falls down, the ATO port turns on to activate the pump, and when the float switch rises it turns off the pump.
how does "dual ATO" works?
Now to the next.
i plugged in my head unit to the ph probe and the temp sensor.
ph probe displayed properly but temperature values didnt display in the head unit.
values are all zero (0) i tried all 3 ports for the temp and nothing seems to display the value.
i also have a question with regards to ATO,
if i'm going to use the "single ATO low' this means that, if the flaot switch falls down, the ATO port turns on to activate the pump, and when the float switch rises it turns off the pump.
how does "dual ATO" works?