Thursday, 16 March 2017

sensor - Collimating a sonar beam


Wondering if anyone is aware of a way to cause an ultrasonic proximity sensor to be modded, such that, it's forward line-of-sight range remains unaffected, but it's angular spread is reduced, somewhat in the "collimator" sense (in terms of light). To explain the problem, I've been experimenting with the el-cheapo HC-SR04 sensor, trying to detect level of water in a plastic bucket (25 ltr vol.). While I am not 100% sure, but I think the diameter of the bucket it is a problem, that, even when the level of water is low (about 18-19 inches away from the sensor), I get a reading that translates to about 8 inches. Only explanation I have is that the sonar is reading the waves bouncing off the bucket walls.


I was wondering if some kind of a collimator built using sound-absorbing material, might work ? I will try experimenting with low density foam (Styrofoam perhaps) but not quite sure if it's really sound-absorbing.



Answer



Coincidentally, I happen to be playing with almost precisely what the question refers to, since yesterday. My distance sensor unit boasts a 25 degree angle, but I faced the same problems with my bucket of water.



My solution may not be an engineering marvel, and there will likely be some reaction from purists, but here is what works:



  • The sensor unit is set pointing directly into a soft cardboard tube of about 2 inch diameter and 8 inches long, the core of a kitchen foil roll: This reduces the false echoes from sides significantly. Both TX and RX are inside the tube.

  • A couple of folds of tissue paper over the TX ultrasonic emitter, to attenuate the outward ultrasonic signal.


The latter was needed because the HC-SR04 did not provide any simple way of reducing outbound signal, and it was strong enough for false positives from all directions: Reducing supply voltage didn't make much difference until at one point the module became erratic.


I now have fair precision on water depth measurement in my bucket, from various heights.




[Edit] I can't believe I'm doing this: Photos of my experiment, in my bathroom, on request from the comments!


enter image description here



The enhanced version now has two cardboard tubes, for TX and RX respectively - Even better precision and tissue paper no longer needed. Arrangement is held together by rubber-bands, because the Engineering-approved duct tape isn't handy. It's hanging from the alligator clip of a Helping Hand soldering stand.


Circuit board on top is the ultrasonic sensor, circuit board dangling from it is an Arduino Nano clone. Blue circular object at bottom of image is the official depth sensing chamber i.e. my bucket.


enter image description here


The TX and RX fit neatly centered, one in each cardboard tube.


At left edge is the Engineering Department's official representative, or at least the fingertips of said person, me.


enter image description here


This is how the set-up looks from the side, in case that helps visualize the arrangement better.


I hope this show-and-tell was useful.


No comments:

Post a Comment

arduino - Can I use TI's cc2541 BLE as micro controller to perform operations/ processing instead of ATmega328P AU to save cost?

I am using arduino pro mini (which contains Atmega328p AU ) along with cc2541(HM-10) to process and transfer data over BLE to smartphone. I...