PH Control question

Expansion modules and attachments

Posts: 80
Joined: Fri Mar 02, 2012 8:11 am
PostPosted: Wed Aug 30, 2017 6:15 pm
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

Posts: 80
Joined: Fri Mar 02, 2012 8:11 am
PostPosted: Wed Aug 30, 2017 6:18 pm
Maybe I am answering my own questions, but should I be using PHControl instead of CO2Control?


Sent from my iPhone using Tapatalk

Posts: 80
Joined: Fri Mar 02, 2012 8:11 am
PostPosted: Thu Aug 31, 2017 8:36 pm
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

Posts: 12279
Joined: Fri Mar 18, 2011 6:47 pm
PostPosted: Thu Aug 31, 2017 9:41 pm
You have to create your own. Those functions assume the pH port in the head unit.
Roberto.
User avatar
Posts: 2745
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
PostPosted: Fri Sep 01, 2017 4:23 am
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
User avatar
Posts: 5355
Joined: Fri Jul 20, 2012 9:42 am
PostPosted: Fri Sep 01, 2017 8:03 am
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)
User avatar
Posts: 2745
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
PostPosted: Fri Sep 01, 2017 9:22 am
there ya go. solution for the problem. woohoo!


Sent from my iPad using Tapatalk

Posts: 80
Joined: Fri Mar 02, 2012 8:11 am
PostPosted: Mon Sep 04, 2017 7:22 am
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

Posts: 16
Joined: Fri Nov 11, 2016 11:08 am
PostPosted: Mon Sep 04, 2017 5:24 pm
Yes, but I think you want to use the ReefAngel.CO2Control(Solenoid,true); PHControl should do the opposite behavior of the CO2Control

Posts: 80
Joined: Fri Mar 02, 2012 8:11 am
PostPosted: Mon Sep 04, 2017 7:28 pm
Thanks!


Sent from my iPhone using Tapatalk

Return to Addons

Who is online

Users browsing this forum: No registered users and 2 guests

cron