0
Offline
Newbie
Karma: 0
Posts: 5
|
 |
« on: July 10, 2009, 12:40:05 pm » |
I have a system set up that will automatically change the water on my fish tank. It works well and I am using wires in the water as electrodes and have them plugged into the analog ports on the arduino. It senses water fine but the problem is that the wires disintegrate and every metal i have tried emits a milky white substance into the water when it is sensing. Can someone suggest an alternative for sensing water? Is there a different kind of metal I can use that will not mess up the water and disintegrate? Thanks.
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Jr. Member
Karma: 0
Posts: 50
Arduino rocks
|
 |
« Reply #1 on: July 10, 2009, 02:33:37 pm » |
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
UK
Online
Brattain Member
Karma: 143
Posts: 19380
I don't think you connected the grounds, Dave.
|
 |
« Reply #2 on: July 10, 2009, 02:40:09 pm » |
You could possibly try a pressure switch.
If you want to encourage cephalopods, don't use copper.
|
|
|
|
|
Logged
|
Pete, it's a fool looks for logic in the chambers of the human heart.
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 5
|
 |
« Reply #3 on: July 10, 2009, 02:50:35 pm » |
Are there any conductors that do not corrode during electrolysis? If not i will probably just use a float switch. Won't the contacts for each terminal corrode inside the switch?
|
|
|
|
« Last Edit: July 10, 2009, 02:56:30 pm by biscuit495 »
|
Logged
|
|
|
|
|
"The old Europe"
Offline
Edison Member
Karma: 0
Posts: 2003
Bootloaders suck!
|
 |
« Reply #4 on: July 10, 2009, 03:02:55 pm » |
A first improvement would be to lower the current by lowering the voltage with a voltage divider (potentiometer). The sensor will still work if the Arduino only reads e.g. 200 instead of 1023. If you used an operational amplifier, this could go even further.
The 2nd step would be to just read the level every e.g. 2 seconds for a very short time. So activate the sensor by using a digital pin as the voltage source and turn it to an output and set it to HIGH. Then read the analog value and turn the sensor off by setting the pin to input (internal pullups must be off).
|
|
|
|
« Last Edit: July 10, 2009, 03:03:17 pm by madworm »
|
Logged
|
• Upload doesn't work? Do a loop-back test. • There's absolutely NO excuse for not having an ISP! • Your AVR needs a brain surgery? Use the online FUSE calculator. • My projects: RGB LED matrix, RGB LED ring, various ATtiny gadgets... • Microsoft is not the answer. It is the question, and the answer is NO!
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 5
|
 |
« Reply #5 on: July 10, 2009, 03:19:19 pm » |
I have a 1.6Kohm resistor as voltage divider is this enough resistance? I like the idea of having a digital pin provide the current for the analog read. I think that will reduce the problem greatly. Thanks.
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Jr. Member
Karma: 0
Posts: 77
Arduino rocks
|
 |
« Reply #6 on: July 11, 2009, 01:38:56 am » |
Tell me if you find a suitable pressure sensor 
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Dallas
Online
Shannon Member
Karma: 129
Posts: 10382
|
 |
« Reply #7 on: July 11, 2009, 02:46:40 am » |
Would a light sensor work? Will water "break" a light beam? I know lasers are used for tank guaging. Will an optical proximity sensor work in a similar fasion? Would something like this... http://www.sparkfun.com/commerce/product_info.php?products_id=8959...detect the surface of the water?
|
|
|
|
|
Logged
|
|
|
|
|
SF Bay Area
Offline
Edison Member
Karma: 6
Posts: 1215
Arduino Ninja
|
 |
« Reply #8 on: July 11, 2009, 02:50:20 am » |
I've used these fluid level sensors before. They're optical, there is no electrical or mechanical interaction with the water. The LED and photodiode detect a change in refraction out of the sensing cone. http://www.fluidswitch.com/pages/Optical-Liquid-Level-Sensors.htmIf you know anything about optics, you know that they work due to the index of refraction, which involves changes in material. Water to air, or air to glass, or glass to different types of glass...they'll all change the angle of light a different way. Also consider prisms; due to the index of refraction, light hitting a surface at a certain angle on an internal glass-air interface will reflect. The angle of the cones on these fluid sensors appears to be close to the limit of refraction in air. Once water or some other fluid contacts the surface of the plastic, the light will probably no longer reflect off both walls of the cone and return to the photodiode. You could either find some of these sensors or do some experiments and figure out
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 5
|
 |
« Reply #9 on: July 11, 2009, 08:46:16 pm » |
Does anyone know where to find these optical sensors or how to make them? I have some cds photocells but I dont know how I would make one from that. Now i have it set for the analog input to receive power from a digital pin and I only have it check every 40 seconds. It works well and even after left for hours in a small container of water the corrosion is not visible at all. Also I now use graphite rods insted of wire ends. I dont think the corrosion is at a harmful level now but if i could find an optical sensor I would switch. Thanks.
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Jr. Member
Karma: 0
Posts: 89
Arduino rocks
|
 |
« Reply #10 on: July 12, 2009, 12:22:17 am » |
those float switches are probably nothing more than a simple reed switch with a magnet in the moving float section. So, you could make one yourself too and have the reed switch on the outside of the tank nice and dry and the magnet sealed in a float on the inside of the tank.
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 24
Arduino rocks
|
 |
« Reply #11 on: July 16, 2009, 07:14:08 pm » |
Lower the current and voltage to reduce electrolysis. Also, you could generate and send an AC signal instead of DC.
Alternately, try putting a capacitive sensor on the outside of the tank.
|
|
|
|
|
Logged
|
|
|
|
|
London, England
Offline
Edison Member
Karma: 3
Posts: 1026
Go! Go! Arduinoooo !!!
|
 |
« Reply #12 on: July 17, 2009, 08:45:56 am » |
|
|
|
|
|
Logged
|
|
|
|
|
Lancashire, UK
Offline
Edison Member
Karma: 8
Posts: 1988
|
 |
« Reply #13 on: July 17, 2009, 10:13:24 am » |
If the water level doesn't change very fast, I'd use the wires and turn them on just long enough to get a reading every few minutes. If they were on for say 1 second every five minutes, the electrolysis would be very slow and the wires would last a long time.
|
|
|
|
|
Logged
|
|
|
|
|
North York, Ontario
Offline
Full Member
Karma: 0
Posts: 142
Arduino rocks!
|
 |
« Reply #14 on: July 18, 2009, 09:45:46 am » |
What about using some copper braid and a capacitance-sensing library like this one: http://www.arduino.cc/playground/Main/CapSenseIve been looking at a water level sensor for measuring water in a rain gauge and this was something I came across. Perhaps its possible to measure the change in capacitance and relate that to water level?
|
|
|
|
« Last Edit: July 18, 2009, 09:48:08 am by SpikedCola »
|
Logged
|
|
|
|
|
|