If you want to control a set of fans based on the Temp2 probe, you won't need to modify the reefange.cpp file at all. You also cannot use the StandardFan function as that is hard wired for the Temp1 probe.
Your modification will need to be in your PDE file. You will need to add in something like this to your loop():
void loop()
{
// other code here
// Turn on Fan set plugged into Relay 7 when the temp hits 80.0 degrees F
if ( ReefAngel.Params.Temp2 >= 800 )
{
ReefAngel.Relay.On(7); // or whatever port you want
}
else
{
ReefAngel.Relay.Off(7); // Turn the port off if the temp is below 80.0 degrees
}
// rest of code here
}
That should take care of things for you. You will just need to modify the temperature that you want to trigger the fan set to turn on at and you will need to change the relay port that the fan set is plugged into.
Curt
On Fri, Apr 15, 2011 at 11:28 PM, Josh Yarboro
<yarbo...@yahoo.com> wrote:
I run the standard libraries, and I have played around with the standardfan code with no success. I currently have a set of fans that come on at certain temp with Temp1 probe, but I want to add a second set of fans that respond to Temp2 probe. what am I missing? I tried editing reefangel.cpp file, is there something else that needs to be done?
thanks, hope that makes sense.
|