Help with setting up Reef Angel for use as pH controller
-
gumyulow
- Posts: 3
- Joined: Fri Mar 16, 2012 4:50 pm
Help with setting up Reef Angel for use as pH controller
I saw some threads with suggestions, but I can't seen to get it working correctly. Anyone have this functionality already coded?
-
binder
- Posts: 2865
- Joined: Fri Mar 18, 2011 6:20 pm
- Location: Illinois
- Contact:
Re: Help with setting up Reef Angel for use as pH controller
It monitors PH by default out of the box. It may need to be calibrated properly first, but it is functionality that's built in and not removable.
-
gumyulow
- Posts: 3
- Joined: Fri Mar 16, 2012 4:50 pm
Re: Help with setting up Reef Angel for use as pH controller
Sorry, I should have been more clear. I need to use this to control my calcium reactor. More specifically I need it to turn on and off my CO2 solenoid to keep the pH in the reactor between 6.5 and 6.8. I found some code that someone posted but it was just a snippet and I cannot figure out how to add it to the stock code and get it to work? Someone else out there has to have needed this to?
I kind of need this quickly so if anyone can help me with a working .ino file I'm willing to Paypal over some $$$. I'll learn as I go after that
I kind of need this quickly so if anyone can help me with a working .ino file I'm willing to Paypal over some $$$. I'll learn as I go after that
-
binder
- Posts: 2865
- Joined: Fri Mar 18, 2011 6:20 pm
- Location: Illinois
- Contact:
Re: Help with setting up Reef Angel for use as pH controller
Ok. That makes sense. This is relatively simple to add to your INO file. What you need to do is post your existing INO file here that you want it added. Then spell out exactly what you want.
Example: I want to turn on Port2 (calcium reactor) when the pH drops below 6.5 then turn it off when the pH gets to 6.8.
Is that what you are wanting? That would be handled like this:
Just make sure that Port2 is not used for another device and that it's only used for this setup. You can obviously change the ports around.
If this is not what you want or you need more specific help, just let us know. Roberto may have a better solution for you.
Example: I want to turn on Port2 (calcium reactor) when the pH drops below 6.5 then turn it off when the pH gets to 6.8.
Is that what you are wanting? That would be handled like this:
Code: Select all
void loop()
{
// ... rest of code goes here
if ( ReefAngel.Params.PH < 650 ) ReefAngel.Relay.On(Port2);
if ( ReefAngel.Params.PH >= 680 ) ReefAngel.Relay.Off(Port2);
ReefAngel.ShowInterface();
}
If this is not what you want or you need more specific help, just let us know. Roberto may have a better solution for you.
-
rimai
- Posts: 12857
- Joined: Fri Mar 18, 2011 6:47 pm
Re: Help with setting up Reef Angel for use as pH controller
Yeah, that should work for you.
Roberto.
-
gumyulow
- Posts: 3
- Joined: Fri Mar 16, 2012 4:50 pm
Re: Help with setting up Reef Angel for use as pH controller
Thanks, you guys are a lifesaver. So just add that code to the bottom and upload it? Do I need to modify the internal memory code at all yet?
-
rimai
- Posts: 12857
- Joined: Fri Mar 18, 2011 6:47 pm
Re: Help with setting up Reef Angel for use as pH controller
Yeah, just above ShowInterface() should work.
Roberto.
-
binder
- Posts: 2865
- Joined: Fri Mar 18, 2011 6:20 pm
- Location: Illinois
- Contact:
Re: Help with setting up Reef Angel for use as pH controller
No Internal Memory modifications are needed.
Internal Memory only needs to be loaded once. Once it is loaded and the controller is up and running, you can use any of the wifi enabled apps to update and change the values in the memory on the controller.
Internal Memory only needs to be loaded once. Once it is loaded and the controller is up and running, you can use any of the wifi enabled apps to update and change the values in the memory on the controller.
-
chort55
- Posts: 50
- Joined: Sun Mar 18, 2012 8:22 pm
Re: Help with setting up Reef Angel for use as pH controller
I am looking to accomplish basically the same thing as the OP, but I do not have a wifi module.... would I need to make a modification to the internal memory file then? Currently my internal mem file has port 8 as always on, and that is the port I would like to use for the solenoid on my co2 regulator.binder wrote:No Internal Memory modifications are needed.
Internal Memory only needs to be loaded once. Once it is loaded and the controller is up and running, you can use any of the wifi enabled apps to update and change the values in the memory on the controller.
-
rimai
- Posts: 12857
- Joined: Fri Mar 18, 2011 6:47 pm
Re: Help with setting up Reef Angel for use as pH controller
Just use that code but change Port2 to Port8
Roberto.
-
chort55
- Posts: 50
- Joined: Sun Mar 18, 2012 8:22 pm
Re: Help with setting up Reef Angel for use as pH controller
Ok great thank you Roberto!
