Page 1 of 1

Water level pipe

Posted: Mon Jun 01, 2015 12:00 pm
by Ismaclst
I know that the manual says the max length of the pipe is 15". What would happen if I made it around 22" or 24"? Would it not calibrate correctly?

Re: Water level pipe

Posted: Mon Jun 01, 2015 1:11 pm
by rimai
You should be able to achieve that without any problems.

Re: Water level pipe

Posted: Mon Jun 01, 2015 5:05 pm
by Sacohen
Roberto;

Don't you have to change some code in the Water Level.cpp?

This is from the Water Level's Limitations thread http://forum.reefangel.com/viewtopic.ph ... imitations
rimai wrote:I still have not had the time to test it, but by looking at the libraries, you can try changing the gain.
Line 55 of WaterLevel.cpp
Change this:

Code: Select all

	addr+=0x03; // Programmable Gain
To this:

Code: Select all

	addr+=0x01; // Programmable Gain
Let me know if this helps.
Or has this been changed in recent library updates?

Re: Water level pipe

Posted: Mon Jun 01, 2015 5:11 pm
by rimai
That's for when you use extra long pipe. I think for that size, it is not necessary.

Re: Water level pipe

Posted: Mon Jun 01, 2015 5:34 pm
by Sacohen
rrodriguez was using a 23" tube in that other post and lsmsclst is taking about using a 22" or 24" tube.

Re: Water level pipe

Posted: Mon Jun 01, 2015 5:36 pm
by rimai
I still think that for that length the gain change is not needed, but further test needs to be done.
Just dip the entire pipe in water and watch what the calibration number is like. If it tops up, you will need to change the gain.

Re: Water level pipe

Posted: Mon Jun 01, 2015 5:39 pm
by Sacohen
Ok. Just double checking for when I start to setup my ATO & NSW system.

Re: Water level pipe

Posted: Wed Jun 03, 2015 7:09 am
by Ismaclst
I will try it tonight and let you know.

Re: Water level pipe

Posted: Wed Jun 03, 2015 10:30 am
by rrodriguess
Hy there

I use a 23'' (give or take), but I had to change the gain value on line 55 of WaterLevel.cpp, otherwise the reading gets nuts.

After that.. works perfectly

Rafa

Re: Water level pipe

Posted: Wed Jun 03, 2015 10:56 am
by Sacohen
Thanks Rafa that is the way I read it.