ORP Calibration using 400mv cal solution - is it possible?

Expansion modules and attachments
Post Reply
dazza1304
Posts: 154
Joined: Sat Aug 04, 2012 4:22 am

ORP Calibration using 400mv cal solution - is it possible?

Post 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!
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: ORP Calibration using 400mv cal solution - is it possibl

Post 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

Code: Select all

    unsigned int iCal[2] = {0,470};
And line 757

Code: Select all

		Params.ORP=map(Params.ORP, ORPMin, ORPMax, 0, 470); // apply the calibration to the sensor reading
Roberto.
dazza1304
Posts: 154
Joined: Sat Aug 04, 2012 4:22 am

Re: ORP Calibration using 400mv cal solution - is it possibl

Post by dazza1304 »

Thats cool, no problem.

May be a silly question, but how do I open and edit the reef angel.cpp file??!!
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: ORP Calibration using 400mv cal solution - is it possibl

Post by rimai »

any plain text editor.
Even notepad works :)
Roberto.
dazza1304
Posts: 154
Joined: Sat Aug 04, 2012 4:22 am

Re: ORP Calibration using 400mv cal solution - is it possibl

Post by dazza1304 »

Got it & Sorted!!

That was easy!!
dazza1304
Posts: 154
Joined: Sat Aug 04, 2012 4:22 am

Re: ORP Calibration using 400mv cal solution - is it possibl

Post 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?
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: ORP Calibration using 400mv cal solution - is it possibl

Post 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
Roberto.
dazza1304
Posts: 154
Joined: Sat Aug 04, 2012 4:22 am

Re: ORP Calibration using 400mv cal solution - is it possibl

Post 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!!
Post Reply