Page 1 of 1

How to generate code to control pH for calcium reactor.

Posted: Tue May 31, 2011 2:55 pm
by akom6
I recently purchased Reef Angel
controller, and I'd like to use it as PH
controller for my calcium reactor. Is it possible to set it up, so that
instead of using the skimmer on socket 7 to use it to cut off CO2 if pH
goes below 6.5?

Thanks in advance,

Re: How to generate code to control pH for calcium reactor.

Posted: Tue May 31, 2011 3:29 pm
by binder
akom6 wrote:I recently purchased Reef Angel
controller, and I'd like to use it as PH
controller for my calcium reactor. Is it possible to set it up, so that
instead of using the skimmer on socket 7 to use it to cut off CO2 if pH
goes below 6.5?

Thanks in advance,
Yeah, you would have to do something like this in your loop()

Code: Select all

void loop()
{
  ReefAngel.ShowInterface();

  // If the PH falls below 6.50 then turn off port7 which contains the CO2,
  // otherwise keep the port on
  if ( ReefAngel.Params.PH < 650 )
  {
    ReefAngel.Relay.Off(Port7);
  }
  else
  {
    ReefAngel.Relay.On(Port7);
  }
}
curt