Waterproofing an ultrasonic range finder
I want to experiment with using ultrasonic range finders for measuring tank levels. Since this will be on a boat, and boats move, it is most likely that the sensor mounting location will be splashed by the contents of the tank. Does anybody know if an ultrasonic range finder can be waterproofed without affecting its accuracy?
I'm looking at the Devantech SRF04, sold by Parallax at www.parallax.com/detail.asp?product_id=28015 as one possibility.
An alternative would be SensComp's Piezo Transducers, such as www.senscomp.com/specs/40KPT25%20%20spec.pdf, which is sealed and claims to be for "environmentally rugged" applications.
The plus of the SRF04 is that everything is handled on the device itself. Where as SensComp's unit is just the transducer so I'd have to develop the driver and sensing circuits. Although, since the target application is not a very processing intensive one, it might be possible to handle it on the processor. I don't think a stamp would be fast enough, but would an SX? A timing diagram for the SRF04 (www.robot-electronics.co.uk/htm/srf04tech.htm) shows that the time between pulsing the transducers and receiving the return pulse is as short as 100us.
Thoughts?
Thanks,
Jim
I'm looking at the Devantech SRF04, sold by Parallax at www.parallax.com/detail.asp?product_id=28015 as one possibility.
An alternative would be SensComp's Piezo Transducers, such as www.senscomp.com/specs/40KPT25%20%20spec.pdf, which is sealed and claims to be for "environmentally rugged" applications.
The plus of the SRF04 is that everything is handled on the device itself. Where as SensComp's unit is just the transducer so I'd have to develop the driver and sensing circuits. Although, since the target application is not a very processing intensive one, it might be possible to handle it on the processor. I don't think a stamp would be fast enough, but would an SX? A timing diagram for the SRF04 (www.robot-electronics.co.uk/htm/srf04tech.htm) shows that the time between pulsing the transducers and receiving the return pulse is as short as 100us.
Thoughts?
Thanks,
Jim
Comments
Do a quick search on Google for MIR. I think it stands for Micro Impulse Radar. From the research I've done in the past, it seems like they were used to measure the amount of liquid in a tank.
Hope that helps.
Paul
Jim, the only thing I can think of, is a unit rated for water immersion, perhaps you could adapt an old depth finder unit.
Post Edited (Paul Baker) : 1/26/2005 10:07:27 PM GMT
Paul, thanks for the thought on a depth sounder transducer, but it would be much too big. I also don't believe that it would provide the minimum distant that I would need. Part of the problem is that I need something that has an accurate range of 1-2 inches at the closest, out to 4-5 feet.
Jim
Gosh, I hope nobody just finished eating.
Jim
Hang it above it and have it measure down to the fluid surface?!
Ultrasonic would work for sure....but wouldn't if you mounted it behind plexiglass...however, a couple of nicely drilled holes with some caulking around the backsides to hold it would work....but does IR reflect off water surfaces?
Of course, as it sloshes your readings would be erratic.
Do you need to know Full and Empty and Half-full (or half empty for you pessimists!)?· Just build a float sensor and triggers at those levels.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·
Steve
http://members.rogers.com/steve.brady
"Inside each and every one of us is our one, true authentic swing. Something we was born with. Something that's ours and ours alone. Something that can't be learned... something that's got to be remembered."
The sensor won't be immersed, but will be close, within a couple inches, to the liquid surface of a full tank, thus the concern of sloshing. The target app is a holding tank which is what holds sewage on a boat. Read my post above regarding why simple floats won't work. Floats and various contact sensors have been around for years. And for years people who have to open up the tanks and clean the floats or sensors have cursed them.
Jim
If you try to implement this idea, I would purchase a cheap (not all-weather) speaker for your proof of concept and try it in a partially filled aquarium or something.
Also you might try to have it do a periodic (like one a day) self cleaning process, where you drive it hard at its resonant frequency for a period of time, hopefully this would shake loose any accumulated debris on it's element. And if you found this cleaning process to be audible outside the tank, and you wanted to be totally geeky, you could iterface it with your alarm clock to do it when you should be waking up [noparse]:)[/noparse].
Paul
I was thinking of utlrasonic for two reasons, one being the fact that it is inaudible. In our case the holding tank is directly under our bunk and is made of plastic. The other being size. I need to keep the entire sensor module to about 2" in diameter max. If I can get it really small, like mounted in a tube < 1/2" diamter and a couple inches long, I might be able to solve some other issues with tank measurement not related to this initial effort. SensComp makes a 40kHz transducer that's only 9.1mm in diameter and 4.5mm high. The problem is that according to SensComp it can't be used for ranges under 6" because of ringing, a problem I confess to knowing nothing about. I always thought ringing was what you did with a bell.
Jim
Post Edited (Jim McCorison) : 1/27/2005 6:14:43 PM GMT
how big is the tank?· how tall is the vertical column of water?!· You could drop a sealed pipe down in to the tank.· The pressure in the this pipe would increase the further you put it in (being that the pipe is longer than the vertical column)....so you could then connect a regular pressure sensor to this 'AIR' pipe and determine how much fluid you have in the tank.
It's akin to putting your thumb on one end of a straw and pushing the other end in to your milk.· The milk can't displace the air because your thumb is covering it's vent.....so the pressure increases.· Now take your thumb off the straw and the milk shoots up the straw.
I don't know the formula's you'd need to figure this out so i don't know how much water you'd have to displace to get enough pressure to be readable.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·
Steve
http://members.rogers.com/steve.brady
"Inside each and every one of us is our one, true authentic swing. Something we was born with. Something that's ours and ours alone. Something that can't be learned... something that's got to be remembered."
We've used balloons (and condoms on occasion) to make instrument boxes weathertight.· The cycling of heat (day/night) causes a 'pumping' action wrt pressure in the box and usually what would happen is the box would slowly fill with moisture.· By drilling a hole in the box and attaching a balloon....the ballon would make the adjustments for the extra pressure and the boxes seals wouldn't be compromised....
Long rambling story....
But, similar to what you want....if you can't get enough displacement to measure pressure, then maybe putting a balloon on the end of the pipe and measuring that somehow (opto's/flex-sensor/ir distance/etc..) then that might give an idea on tank state.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·
Steve
http://members.rogers.com/steve.brady
"Inside each and every one of us is our one, true authentic swing. Something we was born with. Something that's ours and ours alone. Something that can't be learned... something that's got to be remembered."
http://www.celeritous.com/estore/index.php?main_page=product_info&cPath=1&products_id=5
http://www.globalw.com/products/wl700.html
http://www.pulsonictechnologies.com/products/transducers.htm
The above link is specially designed for waste water level measurement! Still they can only effectively measure distances greater than 25cm.
http://www.masterlevel.com/transducer.html
I think measuring things as close as you want may be impossible for ultrasonic, or so difficult you'll find the sensor very expensive. This is because at 76 F, the speed of sound is 1136 ft/s, if your measuring a level of 2" from sensor, means a total travel time (for 4") of just under·300 uS, if the transducer is operating at 40kHz·one pulse cycle will take 25 uS, and most sensors require a ramp-up and ramp-down·with several pulses (this looks like a 40kHz signal who's amplitude is dictated by another sinusoid of a lower frequency) since the element is mechanical, after driving it it will continue to ring afterwards in decreasing amplitude, just like striking a bell. If you try to detect a reflection signal during that ringing (ie object is very short distance away) it will register the ringing as part of the signal. There are two possible methods of combating this, ringing cancelation and phase cancelation.
Ringing cancelation involves driving the transducer, then when you what it to stop, applying a signal with a phase of 180 degrees of the signal pulse while also diminishing the amplitude of the 180 degree pulse to match the damped respose of the element, this is equivalent to placing your hand on a ringing bell, the sound is muffled but not entirely muted. This is the principle used in Bose's noise canceling headphones, they drive the headphone with a signal whose phase is 180 degrees out of phase with external noise.
Phase·cancelation is taking the measurement ringing and all, and post processing the signal by subtracting the known ringing response of the transducer from the signal, the result should recover enough of the reflected signal to detect its presence.
Each has thier own benifit and downside, each of which would require quite a few paragraphs to explain and would require sojouning into DSP theory.
Paul
Actually phase cancelation is the wrong term, its ringing cancelation too just done in post processing, I was going to write about phase detection where you try to detect any signal out of phase with the ringing by using correlation, but if the distance happens to reflect a signal thats in phase, this method won't work.
Post Edited (Paul Baker) : 1/27/2005 7:03:31 PM GMT
I don't know what your holding tank is made of, or if you would even want to drill it to install contact probes into the tank, but it's a free idea nonetheless.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Knight Designs
324 West Main Street
P.O. Box 97
Montour Falls, NY 14865
(607) 535-6777
Business Page:·· http://www.knightdesigns.com
Personal Page:··· http://www.lightlink.com/dream/chris
Designs Page:··· http://www.lightlink.com/dream/designs
·
I have been following all these suggestions, and have a novel approach for you. It may not be quite as cost effective as some of the suggestions (as floats etc) but I'm positive it will give you the best and most reliable answer for reading the level in a sloshing tank that you dont want to get into very often.
The concept is deceptively simple; and simplicity is often a good candidate.
Get a piece of three eights or half inch or so of·plastic tubing or somewat rigid hose a little longer than the depth of your tank.
Attach this to the side of the tank·(leave a quarter or so inch of clearance·between the pipe and the bottom of your tank) and have it extend out through the top of the tank.
Then seal that to make it water tight.
Get a tiny air compressor such as might be used for an aquarium, but sufficient pressure capability.
Connect a "TEE" at the top of the pipe, and attach the compressor output to one side.
Connect a low cost pressure transducer to the other side of the "TEE".
To take a level reading, turn on the compressor, and read the pressure.
Air will bubble out the bottom of the tube, and the air pressure it needs to do that is directly proportional to the height of fluid outside the tube.
That is of course only if the tank is vented·and there is no other pressure in the tank.
Do some software averaging of the air pressure (level) if there is a lot of sloshing.
You could even place the compressor and pressure sensor (and hence the "TEE") at a location more distant from the tank by a lenghth of connecting hose, provided that it always remains above the tank....... you would not accidentally want to create a siphon!
Very simple, no moving parts, all working pieces accessible from outside the tank, easy to calibrate before installation etc.
Should be a fun project.
Peter
·
As an afterthought; presuming you did not need to take a reading very often, or at least for a trial, you could even eliminate the air compressor and blow into the hose. Although it would be somewhat more complicated software to do your averaging.
Peter
Peter, Good thinking. There is actually a marine product out there that uses this method on an analog basis. It is well respected.
Paul, Thanks for the explanation of ringing. It makes good sense. As far as range, the SRF04 claims 2cm - 3m (0.78" - 118") and is only priced at $36.00 through Parallax. Daventech also makes a much smaller sensor with 2cm - 6m for 25.50 pounds sterling. This is what got me headed down the waterproofing path. In an email to Daventech they said they don't have a method for waterproofing, but are regularly requested to do so. The email hinted that a product will be forthcoming, but nothing about when.
Mary, Where is Mary anyway? This is the second thread where she's been appropriate.
Chris, Sloshing is mostly only an issue for protection of the sensor. I don't really need instant level readings. So averaged, or smoothed would be find. But I do need more than a full indication. The last thing you want is to be caught with a full holding tank, no place to pump out, and a strong need to use the holding tank. So I'd really like to use a variable reading.
Jim
sloshing around.
bugg
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
So many projects, so little time.