Water Level's Limitation

Expansion modules and attachments
User avatar
Sacohen
Posts: 1833
Joined: Sun Apr 21, 2013 6:25 am
Location: Davie, FL

Re: Water Level's Limitation

Post by Sacohen »

I've done that too.
The difference is I drilled out the stop in the T so the pipe sides all the way thru and I glued the T a little off the bottom of the bin.

I think when you calibrate the WL sendor, do it with the T on so you get true 0.

Sent from my SM-G928P using Tapatalk
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: Water Level's Limitation

Post by lnevo »

I'm ok with it not all the way down. Will most likely have my rigid feed tubing go below the water level sensor opening. This way when I hit 0 there will still he water to draw
User avatar
Sacohen
Posts: 1833
Joined: Sun Apr 21, 2013 6:25 am
Location: Davie, FL

Re: Water Level's Limitation

Post by Sacohen »

Lee,
How long are your WL tubes?
I saw on FB that you have your setup, up and running and i wanted to know if you had to change that line off code in the WaterLevel. Cpp.

Sent from my SM-G928P using Tapatalk
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: Water Level's Limitation

Post by lnevo »

Yes I changed that line of code. The Brutes are less than 36" I didn't measure but I can get some measurements later. It seems that there is plenty of headroom though.
User avatar
Sacohen
Posts: 1833
Joined: Sun Apr 21, 2013 6:25 am
Location: Davie, FL

Re: Water Level's Limitation

Post by Sacohen »

I'm using a 20 gallon Brute.
The WLS is only about 24".
I would like to know what length yours is so when I redo my water container it will be about 30".

Sent from my SM-G928P using Tapatalk
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: Water Level's Limitation

Post by lnevo »

So on the 20 gallon brute, it's working fine. On the 30g brute, there seems to be a cap on the water depth that it's able to manage. At some point it reaches the cap (~1500 on the sensor reading) and doesn't read higher at a certain depth. I'm currently filling to a bit under the lip where it expands (~22g). It seems that the first few inches before that lip all read at 1500.

On the 20g brute, I fill to around 16g and it reads fine as the water is drawn out. The only wierd thing is that the percentage seems off, but the rate of change seems the same, although I'm only looking at a 7 day windows. I just started monitoring the levels on reeftronics so I should be able to get a reading later this month to see if the rate is consistent or curved. Either way, it's good and i can rely on it for usage. Not sure if I'll hit the same cap if I overfill. I am at the same sensor reading for 100% (1520)

Roberto, any thoughts on being able to raise the sensitivity further?
User avatar
Sacohen
Posts: 1833
Joined: Sun Apr 21, 2013 6:25 am
Location: Davie, FL

Re: Water Level's Limitation

Post by Sacohen »

You added that 1 line of code yhat Roberto gave a while back?

What is the length of the pipe in the 30g?

Sent from my SM-G928P using Tapatalk
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Water Level's Limitation

Post by rimai »

I would have to test the sensor.
It seems you are hitting the end of the sensor and not the end of the chip scale.
The chip is a 12bit ADC, which means 4096 steps. 2048 positive and 2048 negative.
If your readings are stopping at around 1500, it seems the chip can read further, but the sensor can't.
That means you would only be able to do that if the sensor was replaced with one with higher PSI reading.
The current sensor is for .52PSI
Roberto.
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: Water Level's Limitation

Post by lnevo »

So it seems then that the limit is around the 18" mark.
User avatar
arch
Posts: 20
Joined: Sun Mar 10, 2013 12:22 am

Re: Water Level's Limitation

Post by arch »

I'm not sure about the multi-channel water level expansion, but according to the eagle files, the water level expansion (v1.2) uses a Freescale MPVZ5004GW7U pressure sensor.

The spec sheet for the sensor quotes a pressure range of 3.92kPa - or about 400mm.
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: Water Level's Limitation

Post by lnevo »

rimai wrote:I would have to test the sensor.
It seems you are hitting the end of the sensor and not the end of the chip scale.
The chip is a 12bit ADC, which means 4096 steps. 2048 positive and 2048 negative.
If your readings are stopping at around 1500, it seems the chip can read further, but the sensor can't.
That means you would only be able to do that if the sensor was replaced with one with higher PSI reading.
The current sensor is for .52PSI
Would the sensor we were talking about for co2 tank work in this application or we'd need something in the between somewhere?
arch wrote:I'm not sure about the multi-channel water level expansion, but according to the eagle files, the water level expansion (v1.2) uses a Freescale MPVZ5004GW7U pressure sensor.

The spec sheet for the sensor quotes a pressure range of 3.92kPa - or about 400mm.
400mm = 15.7 inches which is probably pretty close enough to what I'm seeing.
rrodriguess
Posts: 133
Joined: Sun Mar 09, 2014 11:01 am
Location: Santos - Brazil

Re: Water Level's Limitation

Post by rrodriguess »

Roberto

Using webwizard and RA*, how can I change the programmable gain?

Code: Select all

addr+=0x01; // Programmable Gain
Best regards
Rafa
Image
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Water Level's Limitation

Post by rimai »

Can't :(
Roberto.
rrodriguess
Posts: 133
Joined: Sun Mar 09, 2014 11:01 am
Location: Santos - Brazil

Re: Water Level's Limitation

Post by rrodriguess »

So..no alternative? The pipe is limited to aprox. 18 inches tall?

It's seems that cloud hub has a solution implemented

http://forum.reefangel.com/viewtopic.ph ... ain#p55404

Can't we just use "WaterLevelMax_write" function (or any other) to set the maximun value manually?

I use "roberto flow", and this is very important..
Image
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Water Level's Limitation

Post by rimai »

You would need to use Arduino IDE instead of webwizard.
That way you can manually change the libraries
Roberto.
rrodriguess
Posts: 133
Joined: Sun Mar 09, 2014 11:01 am
Location: Santos - Brazil

Re: Water Level's Limitation

Post by rrodriguess »

How can I do that?
Image
rrodriguess
Posts: 133
Joined: Sun Mar 09, 2014 11:01 am
Location: Santos - Brazil

Re: Water Level's Limitation

Post by rrodriguess »

Ok.. just download the arduino software and upload using the RA+ option. Worked.. will try to change the gain.
Image
rrodriguess
Posts: 133
Joined: Sun Mar 09, 2014 11:01 am
Location: Santos - Brazil

Re: Water Level's Limitation

Post by rrodriguess »

Something is wrong....

Installed the Arduino IDE, changed the gain, uploaded the code. But the calibration does not ends.... keeps running...

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

Re: Water Level's Limitation

Post by rimai »

Did you download and used the latest dev branch of the libraries?
https://github.com/reefangel/Libraries/tree/dev
Roberto.
rrodriguess
Posts: 133
Joined: Sun Mar 09, 2014 11:01 am
Location: Santos - Brazil

Re: Water Level's Limitation

Post by rrodriguess »

No.. Just the Arduino software from the Download section. Gonna try and get back..
Image
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Water Level's Limitation

Post by rimai »

I would also recommend using IDE v1.6.8
http://forum.reefangel.com/viewtopic.php?f=7&t=5993
Roberto.
rrodriguess
Posts: 133
Joined: Sun Mar 09, 2014 11:01 am
Location: Santos - Brazil

Re: Water Level's Limitation

Post by rrodriguess »

Sure thing....
Image
rrodriguess
Posts: 133
Joined: Sun Mar 09, 2014 11:01 am
Location: Santos - Brazil

Re: Water Level's Limitation

Post by rrodriguess »

Ok.. will be a littel difficlt do make myself clear since english is not my mother language... but let's try.

- Download and install IDE v1.6.8 - done!

- Download the latest dev branch of the libraries = done!

- Changed addr+=0x03; to addr+=0x01; in waterlevel.cpp - done!

- Code compiled and uploaded - done!

After that I've calibrate the pipe/sensor out of water (0%), and fully submerse (100%). End of calibration. With the pipe still in the last position (fully submerse), I've hit "Exit Menu" and...... RA* does not show 100% as expected, but only 69% instead.

I Tryed again with orignal code (addr+=0x03;). Before calibration: Channel 1 shows 111%. Did it all over again. Pipe out of water, pipe fully in water... and RA* shows 111% again (instead of 100%)

You may think "Pull the pipe some inches out of the water, dumbass". The problem is that 100% is near in the middle of the pipe (it's a long pipe), and that way is pointless trying measuring anything.

Before asking.... yes, I've tryed with others channels. I even tryed with addr+=0x02;.

It's looks like there is another place in the library with addr+=0x03; fixed, and as much as I try to change in waterlevel.cpp it is not working.

I hope you all can understand me.

Roberto, any Idea?

Anyone?

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

Re: Water Level's Limitation

Post by rimai »

Does it work correctly if you use a shorter pipe?
Roberto.
rrodriguess
Posts: 133
Joined: Sun Mar 09, 2014 11:01 am
Location: Santos - Brazil

Re: Water Level's Limitation

Post by rrodriguess »

I Will have to try that... But I think It does since I was using Just Fine with RA+
Image
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Water Level's Limitation

Post by rimai »

There is a max sensing capability from the sensor itself.
If it goes past the maximum pressure (0.57 PSI), things can get weird like you are experiencing.
Roberto.
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Water Level's Limitation

Post by rimai »

You can try a pipe with a smaller diameter to see if that makes it better.
Roberto.
rrodriguess
Posts: 133
Joined: Sun Mar 09, 2014 11:01 am
Location: Santos - Brazil

Re: Water Level's Limitation

Post by rrodriguess »

Roberto

I am already using a 1/2" instead of a 3/4" pipe.
Image
rrodriguess
Posts: 133
Joined: Sun Mar 09, 2014 11:01 am
Location: Santos - Brazil

Re: Water Level's Limitation

Post by rrodriguess »

Roberto

I dont think It is the sensor limit. I was using the same pipe and the same sensor (attachment) before, but different controller (RA+ tô RA*).
Image
rrodriguess
Posts: 133
Joined: Sun Mar 09, 2014 11:01 am
Location: Santos - Brazil

Re: Water Level's Limitation

Post by rrodriguess »

Ok Roberto

I did some testing. For all tests, I used only RA * with Multi-Water Level directly connected through an Expansion Port. Everything else was disconnected.

I used the same lean code:

Code: Select all

#include <Salinity.h>
#include <ReefAngel_Features.h>
#include <Globals.h>
#include <RA_TS.h>
#include <RA_TouchLCD.h>
#include <RA_TFT.h>
#include <RA_TS.h>
#include <Font.h>
#include <RA_Wifi.h>
#include <RA_Wiznet5100.h>
#include <SD.h>
#include <SPI.h>
#include <Ethernet.h>
#include <EthernetDHCP.h>
#include <PubSubClient.h>
#include <Wire.h>
#include <OneWire.h>
#include <Time.h>
#include <DS1307RTC.h>
#include <InternalEEPROM.h>
#include <RA_ATO.h>
#include <LED.h>
#include <RA_TempSensor.h>
#include <Relay.h>
#include <RA_PWM.h>
#include <Timer.h>
#include <Memory.h>
#include <InternalEEPROM.h>
#include <RA_Colors.h>
#include <RA_CustomColors.h>
#include <RA_CustomLabels.h>
#include <RF.h>
#include <IO.h>
#include <ORP.h>
#include <AI.h>
#include <PH.h>
#include <WaterLevel.h>
#include <Humidity.h>
#include <PAR.h>
#include <DCPump.h>
#include <ReefAngel.h>
#include <SoftwareSerial.h>

void setup()
{
    // This must be the first line
    ReefAngel.Init();  //Initialize controller
    ReefAngel.Star();
    ReefAngel.SetTemperatureUnit( Celsius );  // set to Celsius Temperature
    
    
    ReefAngel.AddMultiChannelWaterLevelExpansion();

}

void loop()
{
   
    ReefAngel.Network.Cloud();
    ReefAngel.ShowTouchInterface();
}
The result was this table below:

Image


None of the tests gave an accurate result. I really have some problem.

As I already said, I am using this Multi-Water level for 2 years with RA+ untill last weekend when my RA* arrived and I decided to migrate.

May be something (or not) but very often when calibrating, I get 0 from the reading, and have to start all over again.

best regards
Rafa
Image
Post Reply