onepoint21 wrote:cubicalmonkey wrote:Just wanted to follow up.
I've successfully built my water level monitor using Milone Tech's 12" eTape Liquid Level Sensor.
I'm logging the resistance along with date/time once a minute via cron and then converting to inches on my graph.
Initially I tapped the sensor to the side wall of my sump whole which is basically a PVC cylinder. Since you cant place any adhesive below the first inch or two, the bottom of the tape sort of just dangles.
When the water rose and fell, the tape got suctioned to the side wall due to surface tension. I thought to place the tape inside a 1" (inside diameter) PVC pipe and drop the whole thing into the hole. That works perfectly.
Double checked with their tech support that it wouldn't interfere and it seems thats one of the recommended mounting procedures.
Attached image is my HTML5 graph showing water level in inches. The eTape inside the PVC pipe was provided by Milone Tech support but is identical to what I'm using.
graph.jpg
pvc.jpg
Could you give some more detail on how you interfaced this with the pi? I really like this solution!
I'm using an MPC3008 analogue to digital converter in order for my rpi to get the resistance level from the sensor. I purchased this here:
https://www.adafruit.com/products/856
Also followed adafruit's tutorial on connecting to the gpio.
http://learn.adafruit.com/reading-a-ana ... -a-mcp3008
Summary:
Wiring Diagram
In order to read analog data we need to use the following pins: VDD (power), DGND (digital ground) to power the MCP3008 chip. We also need four 'SPI' data pins: DOUT (Data Out from MCP3008), CLK (Clock pin), DIN (Data In from Raspberry Pi), and /CS (Chip Select). Finally of course, a source of analog data, we'll be using the basic 10k trim pot.
The MCP3008 has a few more pins we need to connect: AGND (analog ground, used sometimes in precision circuitry, which this is not) connects to GND, and VREF (analog voltage reference, used for changing the 'scale' - we want the full scale so tie it to 3.3V)
Below is a wiring diagram. Connect the 3.3V cobbler pin to the left + rail and the GND pin to the right - rail. Connect the following pins for the MCP chip
MCP3008 VDD -> 3.3V (red)
MCP3008 VREF -> 3.3V (red)
MCP3008 AGND -> GND (black)
MCP3008 CLK -> #18 (orange)
MCP3008 DOUT -> #23 (yellow)
MCP3008 DIN -> #24 (blue)
MCP3008 CS -> #25 (violet)
MCP3008 DGND -> GND (black)
From there just followed adafruit's advise from the tutorial tab.
http://www.adafruit.com/products/463
Connect pin #2 of the sensor to ground, then pin #3 to a 560 ohm resistor. The other side of the 470 ohm resistor to VCC (3.3V or 5V for example) to create a resistor divider. The ADC pin connects to the point between the resistor and sensor.
Hope this helps.