ORP calibration with 220mV fluid

Post Reply
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: ORP calibration with 220mV fluid

Post by lnevo »

Ok, I started a branch and added in all the framework to do the flexible orp calibration... now the function just needs to be written.

I have to back out a little bit because it's quite a large function with lots of drawing, etc. Maybe phrusher wants to get involved :) or if anyone else wants to give it a try, you can checkout the flexOrp branch on my repo

https://github.com/lnevo/Libraries/tree/flexOrp
coolbird
Posts: 90
Joined: Thu Apr 18, 2013 2:16 am
Location: Stockport, Cheshire, UK

Re: ORP calibration with 220mV fluid

Post by coolbird »

lnevo wrote:Ok, I started a branch and added in all the framework to do the flexible orp calibration... now the function just needs to be written.

I have to back out a little bit because it's quite a large function with lots of drawing, etc. Maybe phrusher wants to get involved :) or if anyone else wants to give it a try, you can checkout the flexOrp branch on my repo

https://github.com/lnevo/Libraries/tree/flexOrp
Thank you for your assistance :-)
Image
Graham2212
Posts: 21
Joined: Wed Mar 27, 2013 2:58 am
Location: Johannesburg, South Africa

Re: ORP calibration with 220mV fluid

Post by Graham2212 »

Any luck with an update on this?
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: ORP calibration with 220mV fluid

Post by lnevo »

Not really. I think if roberto can answer its easy enough to manually modify. Its a lot of work i dont have time for to create the screens for flex orp calibration. Sorry :( maybe someone else can pitch in and pick it up but not sure how close the framework is since i did it a few versions ago..
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: ORP calibration with 220mV fluid

Post by rimai »

For manual edit, there files that need to be modified is a different one.
In the new libraries, you actually need to update the file ReefAngel_1.5_LCD.h located in \Documents\Arduino\Libraries\ReefAngel
Look for the line 3786 and change this:

Code: Select all

	unsigned int iCal[2] = {0,470};
To this:

Code: Select all

	unsigned int iCal[2] = {0,220};
Then open ReefAngel.cpp located in the same folder and look for line 583 and change this:

Code: Select all

		Params.ORP=map(Params.ORP, ORPMin, ORPMax, 0, 470); // apply the calibration to the sensor reading
To this:

Code: Select all

		Params.ORP=map(Params.ORP, ORPMin, ORPMax, 0, 220); // apply the calibration to the sensor reading
Roberto.
rrodriguess
Posts: 133
Joined: Sun Mar 09, 2014 11:01 am
Location: Santos - Brazil

Re: ORP calibration with 220mV fluid

Post by rrodriguess »

Roberto

Any loss (precision or somethong else) calibrating with a 220mv instead of 470mv? What about 400mv?

Just to understand our options here.

Best regards
Rafa
Image
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: ORP calibration with 220mV fluid

Post by rimai »

Yes, you will get twice less resolution.
Roberto.
rrodriguess
Posts: 133
Joined: Sun Mar 09, 2014 11:01 am
Location: Santos - Brazil

Re: ORP calibration with 220mV fluid

Post by rrodriguess »

Simple as that..

tks Roberto
Image
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: ORP calibration with 220mV fluid

Post by rimai »

Actually, no. You should be fine as long as you know the readings would be about half of what RA is showing.
Roberto.
Post Reply