Page 1 of 1
documentation on PhMin, PhMax
Posted: Thu Jul 18, 2013 6:34 pm
by rossbryant1956
Is there any documentation on using these hard-coded (in the code) values? I am also wondering about values for the secondary Ph, as well as the Salinity expansion.
Since my rebuild my main pH is doing much better but while my ph expansion worked great for a while but now is back in the 9's, my salinity probe no longer has big swings but still moves between 33 and 30 in 4-5 hour swings.
My question would be whether if I had these preset values would my probes fluctuate between the presets or would something else happen. Thx
Re: documentation on PhMin, PhMax
Posted: Thu Jul 18, 2013 7:03 pm
by rimai
These values are just the 2 points for the linear interpolation.
pH reading is very linear, so you can use only 2 points to find any other point in between those two.
http://en.wikipedia.org/wiki/Linear_interpolation
If you move them, all you are going to be doing is also be shifting the displayed reading up or down depending on where you move those two points to.
Re: documentation on PhMin, PhMax
Posted: Fri Jul 19, 2013 11:16 am
by rossbryant1956
My thought is that if I set the basic calibrated values in the code of both pH, pHExp, and potentially even Salinity then and fluctuations of those values will move within those ranges. As stated previously, I am pretty happy right now with regular pH (since the rebuild) but pHExp continues to elude me.
Will this work?
Re: documentation on PhMin, PhMax
Posted: Fri Jul 19, 2013 11:59 am
by rimai
I'm not following.
Re: documentation on PhMin, PhMax
Posted: Fri Jul 19, 2013 1:05 pm
by rossbryant1956
if I put my calibrated values in my code for both ph and ph ext will my probes then fluctuate between those two numbers?
I am not code-smart enough to understand this but I think my stored in memory values for these calibrated values is getting corrupted somehow. There is no reason for my pHExp value to be reading perfectly one week, RA lock up or something, and now it is reading in the middle 9's
I tested extensively for stray voltage (none), and while my salinity probe works occasionally the every 4 -5 hour slide doesn't make any sense. Any help or ideas appreciated
Re: documentation on PhMin, PhMax
Posted: Fri Jul 19, 2013 2:46 pm
by rimai
I'm looking at your chart now. Can you place the salinity probe in a cup with tank water and leave there for a day?
I'd like to see what it does.
What do you do to bring the reading back up when it slides down?
Do you have bubbles where the salinity probe is located?
Let's modify your code a bit to check something else.
Please replace this from your code:
Code: Select all
ReefAngel.Portal("rossbryant1956");
ReefAngel.ShowInterface();
With this:
Code: Select all
ReefAngel.ShowInterface();
ReefAngel.Params.ORP=ReefAngel.PH.Read();
ReefAngel.Portal("rossbryant1956");
Let it create history for the next couple days.
Re: documentation on PhMin, PhMax
Posted: Fri Jul 19, 2013 8:42 pm
by rossbryant1956
okay. made the changes.
- moved salinity probe to cup of tank water beside tank
- added lines to code as suggested and uploaded.
Be advised the pHExt probe is in a separate tank not plumbed to the main tank.
Re: documentation on PhMin, PhMax
Posted: Mon Jul 22, 2013 9:42 am
by rimai
Ok, so looking at the graphs for the past couple days, we can see that everything has been pretty stable.
The pH expansion only needs to have the calibration values changed, cause it is reporting stable readings.
The salinity is also solid. Can you put back into your tank?
Just make sure this time, it goes into a place with no air bubbles.
Re: documentation on PhMin, PhMax
Posted: Mon Jul 22, 2013 11:49 am
by rossbryant1956
1. can you tell me what you were doing with the ORP calculation you were looking at?
2. What could have caused the pH Ext to blow it's calibration? It was just calibrated within the last two weeks, ran beautifully, then just changed. This is why I asked about hard-coded calibration values
3. I'll move the salinity probe back in but have already moved it all over the sump seeking a better home...this thing is more finicky than my big anemone. ;>
Re: documentation on PhMin, PhMax
Posted: Mon Jul 22, 2013 11:56 am
by rimai
The ORP values I was using to store the raw readings from your ph expansion module, before they were interpolated to ph values. You can definitely hard code them:
Code: Select all
ReefAngel.PHExpMin = 500;
ReefAngel.PHExpMax = 2500;
Please note that you must enter your own calibration numbers in above.
Re: documentation on PhMin, PhMax
Posted: Tue Jul 23, 2013 5:30 am
by rossbryant1956
Take a look at my salinity chart today. MUCH better but it still moves between 35.1 and 30.1 and back every 45 minutes. Just seems too programmatic but be normal tank fluctuations. Haven't done the PHMinMax stuff yet. Thx for your help.
Re: documentation on PhMin, PhMax
Posted: Tue Jul 23, 2013 7:56 am
by rimai
What do you do to bring it back to 35?
Do you have filter floss, or sock that you can wrap the probe with?
I'm curious to see what happens to the readings. The idea is to prevent any bubble to reach the tip and yet let the water pass through.
Re: documentation on PhMin, PhMax
Posted: Tue Jul 23, 2013 11:22 am
by rossbryant1956
Thats the thing, I don't touch it....it just sits in the sump going back and forth, back and forth. I'll see about wrapping it in something asap. Thx
Re: documentation on PhMin, PhMax
Posted: Fri Jul 26, 2013 10:47 am
by bencollinz
I would honestly assume it's micro bubbles. I had the same issue with my own thread on the matter affecting PH and SAL and it was micro bubbles. I just turned the probes upside down in my sump, problem solved. hopefully it's something that simple for you.
Re: documentation on PhMin, PhMax
Posted: Fri Jul 26, 2013 3:39 pm
by rossbryant1956
Wow, really? Upside down? Cool. I'll try it.