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
PH Control question
Re: PH Control question
Maybe I am answering my own questions, but should I be using PHControl instead of CO2Control?
Sent from my iPhone using Tapatalk
Sent from my iPhone using Tapatalk
Re: PH Control question
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
Sent from my iPhone using Tapatalk
Re: PH Control question
You have to create your own. Those functions assume the pH port in the head unit.
Roberto.
Re: PH Control question
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
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
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)
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
there ya go. solution for the problem. woohoo!
Sent from my iPad using Tapatalk
Sent from my iPad using Tapatalk
Re: PH Control question
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
The code I should have in the loop section is:
PHControl(Solenoid, true)
Sent from my iPhone using Tapatalk
Re: PH Control question
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
Thanks!
Sent from my iPhone using Tapatalk
Sent from my iPhone using Tapatalk