Page 1 of 1
ORP Calibration using 400mv cal solution - is it possible?
Posted: Thu Dec 06, 2012 2:47 am
by dazza1304
Hi, here in the UK, it is very difficult (and expensive) to get hold of 470mv cal solution.
However, 400mv solution is easy to obtain and cheap!
So, how can I change the calibration so that I can calibrate with the 400mv solution, as I am sure it must be possible!
Look forward to your replies!
Re: ORP Calibration using 400mv cal solution - is it possibl
Posted: Thu Dec 06, 2012 1:37 pm
by rimai
It's embedded in the libraries, but if you want to change it, you can.
The issue is that everytime libraries get updated, it will revert back to 470.
But, I don't think you will be calibrating that many times either...
It's inside ReefAngel.cpp line 3636
And line 757
Code: Select all
Params.ORP=map(Params.ORP, ORPMin, ORPMax, 0, 470); // apply the calibration to the sensor reading
Re: ORP Calibration using 400mv cal solution - is it possibl
Posted: Thu Dec 06, 2012 2:04 pm
by dazza1304
Thats cool, no problem.
May be a silly question, but how do I open and edit the reef angel.cpp file??!!
Re: ORP Calibration using 400mv cal solution - is it possibl
Posted: Thu Dec 06, 2012 2:21 pm
by rimai
any plain text editor.
Even notepad works
Re: ORP Calibration using 400mv cal solution - is it possibl
Posted: Thu Dec 06, 2012 2:28 pm
by dazza1304
Got it & Sorted!!
That was easy!!
Re: ORP Calibration using 400mv cal solution - is it possibl
Posted: Fri Dec 07, 2012 7:05 am
by dazza1304
Ok, edited the .cpp file fine, recompiled and uploaded, but cal value still showing as 470mv?
I have double checked and the reef angel.cpp file has def been changed to 400mv instead of 470mv.
Do I need to do something to force the change into the compiler?
Re: ORP Calibration using 400mv cal solution - is it possibl
Posted: Fri Dec 07, 2012 10:29 am
by rimai
No, it should take it if the minute the file is saved.
I just tested and worked for me.
The ReefAngel.cpp file is located at Documents\Arduino\libraries\ReefAngel
Re: ORP Calibration using 400mv cal solution - is it possibl
Posted: Fri Dec 07, 2012 10:43 am
by dazza1304
Sorted, for some reason I see to have 2 groups of files - I changed the reef angel.cpp that was in applications on my mac, but didnt work as above. However, when I changed as in the file path from documents, now works!!