How to generate code to control pH for calcium reactor.

Related to the development libraries, released by Curt Binder
Post Reply
akom6
Posts: 1
Joined: Tue May 31, 2011 2:33 pm

How to generate code to control pH for calcium reactor.

Post 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,
binder
Posts: 2871
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

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

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