Is anybody interested in the ability to change what temp probe is monitoring their tank? Right now you have to use the 1st temp sensor to monitor your tank. This probe is what the StandardFan and StandardHeater functions use.
Just curious if anybody would be interested. Oh, and for those who are curious, there would be approximately 14-18 bytes added to code size (exact amount is unknown but bare minimum would be 14 bytes).
curt
Tank Temp Probe
Re: Tank Temp Probe
Curt,binder wrote:Is anybody interested in the ability to change what temp probe is monitoring their tank? Right now you have to use the 1st temp sensor to monitor your tank. This probe is what the StandardFan and StandardHeater functions use.
Just curious if anybody would be interested. Oh, and for those who are curious, there would be approximately 14-18 bytes added to code size (exact amount is unknown but bare minimum would be 14 bytes).
curt
would be interesting you have more than one temperature probe operating in the same tank, but with different capabilities to control "StandardFan2 and StandardHeater2." Thus it could for example control the temperature of the LED lamp and if necessary an Unlock extra fan or even turn off the LED lighting.
tanks.
Marcelo
Re: Tank Temp Probe
You can do this but you can't use the default functions. You would have to code in that functionality in your PDE file manually. If you wanted to turn on a port/relay based on temp 2, you could do this:mbertalha wrote: Curt,
would be interesting you have more than one temperature probe operating in the same tank, but with different capabilities to control "StandardFan2 and StandardHeater2." Thus it could for example control the temperature of the LED lamp and if necessary an Unlock extra fan or even turn off the LED lighting.
Code: Select all
void loop()
{
// rest of functions go here
// ...
// turn on port 6 when temp falls below 76.0 and turn off when temp gets above 80.0
if (ReefAngel.Params.Temp2 <= 760 && ReefAngel.Params.Temp2 > 0) ReefAngel.Relay.On(Port6);
if (ReefAngel.Params.Temp2 >= 800) ReefAngel.Relay.Off(Port6);
}
curt
-
- Posts: 471
- Joined: Sat Jan 14, 2012 2:08 pm
- Location: Montgomery Village, MD
Re: Tank Temp Probe
Curt, did you ever demonstrate how we might do this? This is happening to me right now. Thxmbertalha wrote:binder wrote:Is anybody interested in the ability to change what temp probe is monitoring their tank? Right now you have to use the 1st temp sensor to monitor your tank. This probe is what the StandardFan and StandardHeater functions use.
Just curious if anybody would be interested. Oh, and for those who are curious, there would be approximately 14-18 bytes added to code size (exact amount is unknown but bare minimum would be 14 bytes).
curt
Roscoe's Reefs - Starting Over Again:
Building new 29g Nano after landlord went berserk over my 4 75 gallon tanks, Multiple RA's, Water mixing stations, etc. Your help welcomed in remembering all I've forgotten.
Building new 29g Nano after landlord went berserk over my 4 75 gallon tanks, Multiple RA's, Water mixing stations, etc. Your help welcomed in remembering all I've forgotten.
Re: Tank Temp Probe
I have it added to the libraries for the next release (which should be very soon). Then there will be a very simple way to change the probe that monitors the tank.
-
- Posts: 471
- Joined: Sat Jan 14, 2012 2:08 pm
- Location: Montgomery Village, MD
Re: Tank Temp Probe
Just wanted to thank Roberto and Binder for helping me write the code to perform the step detailed above. Attached is the snippet I now use and it works great!.
Code: Select all
// Bunch of stuff deleted so you can just see the relevant code
// T1_Probe now monitors my salt water reservoir mixing station
void setup()
{
ReefAngel.TempProbe = T2_PROBE; // Set the 1st plug (which acts like the 2nd plug)
ReefAngel.OverheatProbe = T2_PROBE; // to monitor the overheat and temperatures
}
void loop()
{
// Specific functions
if (ReefAngel.Params.Temp[T2_PROBE] <= 780 && ReefAngel.Params.Temp[T2_PROBE] > 0) ReefAngel.Relay.On(Port7);
if (ReefAngel.Params.Temp[T2_PROBE] >= 791) ReefAngel.Relay.Off(Port7);
if (ReefAngel.Params.Temp[T1_PROBE] <= 780 && ReefAngel.Params.Temp[T1_PROBE] > 0) ReefAngel.Relay.On(Port1);
if (ReefAngel.Params.Temp[T1_PROBE] >= 791) ReefAngel.Relay.Off(Port1);
ReefAngel.ShowInterface();
}
Roscoe's Reefs - Starting Over Again:
Building new 29g Nano after landlord went berserk over my 4 75 gallon tanks, Multiple RA's, Water mixing stations, etc. Your help welcomed in remembering all I've forgotten.
Building new 29g Nano after landlord went berserk over my 4 75 gallon tanks, Multiple RA's, Water mixing stations, etc. Your help welcomed in remembering all I've forgotten.