PH Control question

Expansion modules and attachments
Post Reply
lucho
Posts: 80
Joined: Fri Mar 02, 2012 8:11 am

PH Control question

Post 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
lucho
Posts: 80
Joined: Fri Mar 02, 2012 8:11 am

Re: PH Control question

Post by lucho »

Maybe I am answering my own questions, but should I be using PHControl instead of CO2Control?


Sent from my iPhone using Tapatalk
lucho
Posts: 80
Joined: Fri Mar 02, 2012 8:11 am

Re: PH Control question

Post 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
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: PH Control question

Post by rimai »

You have to create your own. Those functions assume the pH port in the head unit.
Roberto.
binder
Posts: 2871
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: PH Control question

Post 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
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: PH Control question

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

Re: PH Control question

Post by binder »

there ya go. solution for the problem. woohoo!


Sent from my iPad using Tapatalk
lucho
Posts: 80
Joined: Fri Mar 02, 2012 8:11 am

Re: PH Control question

Post 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
lnevo3
Posts: 16
Joined: Fri Nov 11, 2016 11:08 am

Re: PH Control question

Post by lnevo3 »

Yes, but I think you want to use the ReefAngel.CO2Control(Solenoid,true); PHControl should do the opposite behavior of the CO2Control
lucho
Posts: 80
Joined: Fri Mar 02, 2012 8:11 am

Re: PH Control question

Post by lucho »

Thanks!


Sent from my iPhone using Tapatalk
Post Reply