Page 1 of 1

PH Control question

Posted: Wed Aug 30, 2017 6:15 pm
by lucho
This may be an easy one, but I can't get the ph control to work to control the solenoid in my ca reactor. I have a PH Exp with the probe in the reactor.
I use the following code:
ReefAngel.CO2Control(Solenoid);

And in the internal memory I have 7.0 as High and 6.6 as low.

My PH is below 6.6 and the solenoid is still on. What am in missing?
Thanks!




Sent from my iPhone using Tapatalk

Re: PH Control question

Posted: Wed Aug 30, 2017 6:18 pm
by lucho
Maybe I am answering my own questions, but should I be using PHControl instead of CO2Control?


Sent from my iPhone using Tapatalk

Re: PH Control question

Posted: Thu Aug 31, 2017 8:36 pm
by lucho
I still need help. That didn't work either. How is the coding so I use the ph expansion probe for the PH Control?


Sent from my iPhone using Tapatalk

Re: PH Control question

Posted: Thu Aug 31, 2017 9:41 pm
by rimai
You have to create your own. Those functions assume the pH port in the head unit.

Re: PH Control question

Posted: Fri Sep 01, 2017 4:23 am
by binder
what you would need to do is like Roberto says. you need to copy whatever function you want to use into your INO file and update it to use the ph expansion port.
give that a try and post back.

if that sounds foreign to you or if you are lost, just post what function you want to use and I'll make the changes for you to test.

Sent from my XT1585 using Tapatalk

Re: PH Control question

Posted: Fri Sep 01, 2017 8:03 am
by lnevo
I added functionality to use the phEXp with these functions in 2014

https://github.com/reefangel/Libraries/ ... 4e287f13be

You just need to add a true to the function to use the expansion.

You'll also have to set the ph on/off values in memory as they are separate locations unless you specify them in your function call.

+#define Mem_I_PHEControlOn VarsStart+165
+#define Mem_I_PHEControlOff VarsStart+167

+void ReefAngelClass::CO2Control(byte CO2Relay, int LowPH, int HighPH, bool useExp)

Re: PH Control question

Posted: Fri Sep 01, 2017 9:22 am
by binder
there ya go. solution for the problem. woohoo!


Sent from my iPad using Tapatalk

Re: PH Control question

Posted: Mon Sep 04, 2017 7:22 am
by lucho
Thanks guys. This is a bit foreign. Lee, let me see if I understand. Variables 165 and 167 are the ones that control the ph high and ph low.
The code I should have in the loop section is:
PHControl(Solenoid, true)


Sent from my iPhone using Tapatalk

Re: PH Control question

Posted: Mon Sep 04, 2017 5:24 pm
by lnevo3
Yes, but I think you want to use the ReefAngel.CO2Control(Solenoid,true); PHControl should do the opposite behavior of the CO2Control

Re: PH Control question

Posted: Mon Sep 04, 2017 7:28 pm
by lucho
Thanks!


Sent from my iPhone using Tapatalk