Shop OBEX P1 Docs P2 Docs Learn Events
Ping Ultrasonic Sensor wind interference - please help!!! — Parallax Forums

Ping Ultrasonic Sensor wind interference - please help!!!

rubberband_freakrubberband_freak Posts: 8
edited 2013-04-07 16:04 in Accessories
I have recently purchased 2 Ping))) ultrasonic sensors. I'm working on a semester long project that would use these sensors and an Arduino UNO rev 3 board to measure distance between my car and another object while parking my car.

I'm also hopeful to use this sensor to measure distance between my car and another car while driving. The problem I've run into is wind and noise interference. I blew air using a motorized fan into the scope of the sensor (without sensing the fan itself) and it threw the reading off (found an "object" 20-30 inches closer). I also found that noise threw it off a little bit too.

If using this sensor for just parking, wind or noise are not a huge concern. Wind speeds while driving would obviously interfere. I'd really like to use this while driving to detect cars in front and behind me. To the best of my knowledge, some newer cars use ultrasonic sensors for this purpose, but I've yet to find how they've corrected for interference.

I've looked into the new laser sensor that was just released by Parallax, but it does not get the range I need (and costs more $$$). I'm also using the parabolic reflector stand from gadget gangster http://www.gadgetgangster.com/find-a-project/56?projectnum=361. I've run my tests with and without the reflector and got the same, disheartening result.


Other than somehow correcting for interference of wind at different speeds in the program code, does anybody have any suggestions to rig up some sort of wind/noise guard that would not interfere with the sensor? Sorry for the long post, I wanted to make sure I covered everything.

Thanks ahead of time for any and all suggestions!

Comments

  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2012-02-29 19:42
    rb_freak,

    Welcome to the forum!

    Perhaps there is something in this thread that will help: http://forums.parallax.com/showthread.php?133544

    -Phil
  • rubberband_freakrubberband_freak Posts: 8
    edited 2012-02-29 20:07
    Thanks for the quick reply!

    That sounds like something to try, but if the wind is constantly blowing into the sensor, it would give a constant incorrect reading rather than spike up and down.
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2012-02-29 20:15
    You could try putting a layer of open-cell foam over the receiver. That's what broadcasters use to break up wind noise in their microphones. For ultrasonics you'll have to find just the right foam, and you will almost certainly get some attenuation.

    -Phil
  • rubberband_freakrubberband_freak Posts: 8
    edited 2012-02-29 20:25
    Hmm, that sounds like a decent solution. Just need to find various types of foams. Any suggestions of places I can acquire them relatively fast?
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2012-02-29 20:32
    Not a clue. Sorry. Maybe someone else can chime in.

    -Phil
  • rubberband_freakrubberband_freak Posts: 8
    edited 2012-02-29 20:49
    Looking at some data sheets, the right "sensor" (looking with sensors facing you) emits the chirp while the left one listens. Is this correct? I want to know which sensor to place the windscreen over.
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2012-02-29 21:49
    With the transducers facing you and with the three-pin connector pointing down, receive is on the left; transmit, on the right.

    -Phil
  • ElectricAyeElectricAye Posts: 4,561
    edited 2012-03-01 06:46
    .... Just need to find various types of foams. Any suggestions of places I can acquire them relatively fast?

    You might look at McMaster. They can usually ship the same day you order and sometimes get it to you the next day, but it's always more expensive than if you find it somewhere else.

    On McMaster, just search rubber foam, then look for foam structure and select open cell.


    http://www.mcmaster.com/#foam-rubber/=gh2juo
  • TtailspinTtailspin Posts: 1,326
    edited 2012-03-01 08:02
    I am afraid it gets worse... try spraying water into the blowing air from the fan...:frown:

    I had some old over the ear, ear buds, that had little removable foam coverings, they fit over the transducers just right,
    I placed my Ping into a shallow Tupperware container with only the transducers poking out.
    drill 5/8" holes for the transducers, and push hard to make a nice seal, add silicon around the cable.
    and your good to go for the car wash, or rain storm...

    I think I have been lucky, as I have the Ping tilted slightly toward the ground, so no water collects in the transducers.


    -Tommy
  • rubberband_freakrubberband_freak Posts: 8
    edited 2012-03-01 18:38
    Ttailspin wrote: »
    I am afraid it gets worse... try spraying water into the blowing air from the fan...:frown:

    I had some old over the ear, ear buds, that had little removable foam coverings, they fit over the transducers just right,
    I placed my Ping into a shallow Tupperware container with only the transducers poking out.
    drill 5/8" holes for the transducers, and push hard to make a nice seal, add silicon around the cable.
    and your good to go for the car wash, or rain storm...

    I think I have been lucky, as I have the Ping tilted slightly toward the ground, so no water collects in the transducers.


    -Tommy

    Seems like an interesting design, but I'm a little confused. Would you happen to have a picture or diagram?
  • TtailspinTtailspin Posts: 1,326
    edited 2012-03-01 21:12
    Of course your confused, I wrote it that way....heh, sorry bout that.
    See if this picture clears up some of my babble...
    Ping_Protection.JPG

    I took off the little ear bud caps for clarity.
    as you can see, press fitting the transducer's into slightly undersize holes makes for a nice seal..

    -Tommy
    800 x 600 - 398K
  • rubberband_freakrubberband_freak Posts: 8
    edited 2012-03-02 00:07
    Ttailspin wrote: »
    Of course your confused, I wrote it that way....heh, sorry bout that.
    See if this picture clears up some of my babble...
    Ping_Protection.JPG

    I took off the little ear bud caps for clarity.
    as you can see, press fitting the transducer's into slightly undersize holes makes for a nice seal..

    -Tommy

    Thanks for the reply! I now understand what you were talking about. I might give your design a whirl to protect the sensor from the elements. I'm going to need to experiment with various types of earbud/microphone foams to see which works best to cancel wind noise, but does not interfere with readings. Thanks Tommy, Phil, and ElectricAye for your responses and input. I'll try to keep you guys posted.
  • GordonMcCombGordonMcComb Posts: 3,366
    edited 2012-03-02 12:18
    I might be stating the obvious here, but the Ping doesn't have the distance you need to detect objects far enough way at driving speed. You need to be a car length (about 10 to 12 feet) for every 10 MPH, so assuming a typical street driving speed of 30 MPH, the *minimum* distance would be 30 feet, which is well outside the Ping's range. Anything less and you're dangerously close to the car ahead anyway, too close for any alarm sensor to give you warning of an impending rear-ender.

    The maximum range of the Ping is 3 meters, or LESS THAN one car length. The only safe speed at which to measure that length would be the kind when you're in the McDonald's drive-thru lane. And in that case, wind isn't going to be a problem. If you're traveling at 30 MPH, and you're within 10 feet of the car in front of you, you will not have time to stop your car if given a warning. Better hope your airbags are in good working condition!

    Ignoring the environmental issues like water and bugs, wind interference just doesn't come up at the speeds and distances over which the Ping would be a useful (and safe!) sensor. Remember that if you do find a wind sock material that cuts down on the wind, it'll also cut down the maximum range. It's impossible to block wind without also attenuating the sound waves to some degree.

    Car makers may use ultrasonic sensors for backup sensors, but any forward-facing sensor is going to be either radar, some kind of proximity detector (e.g. LIDAR), or some such. None of these are possible in a $30 sensor.

    -- Gordon
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2012-03-02 15:43
    Gordon,

    Good catch! I got as far as "parking" in his original post and assumed the wind thing was for parking in very windy conditions. (Where I live, that would be a valid consideration.)

    -Phil
  • TtailspinTtailspin Posts: 1,326
    edited 2012-03-02 18:28
    I did not have the heart to crush rubberband_freak's dream to customize his car with a PING(((...
    I figured it did no harm to learn about the ping first, and then learn all about Radar and such. :smile:

    A little caveat about the ping shown in the photo,..it's under the porch, and not under the hood/bonnet of an automobile.
    I have water blasted near and around the TupperWare/Ping box, and it still indicates when something
    walks or blows across its path. after two or so years...

    The PING((( rocks!, :thumb:...just not under the hood of an automobile...


    -Tommy
  • rubberband_freakrubberband_freak Posts: 8
    edited 2012-03-04 03:35
    As "broken hearted" as I am, I'm still glad everyone chimed in! I still have time (but not a lot of it) to update and modify my design. Does anybody have a suggestion has to what type of Arudino compatible sensor I could use for a front-facing sensor that would work for this application? Any specifics would greatly be appreciated.
  • GordonMcCombGordonMcComb Posts: 3,366
    edited 2012-03-04 08:00
    Radar is about the only viable option, and it's pretty expensive. There's a short article on Wikipedia on it that might get you started

    http://en.wikipedia.org/wiki/Collision_avoidance_system

    and

    http://en.wikipedia.org/wiki/Precrash_system

    Other sensor types have significant problems, including short range, greatly reduced accuracy in bad weather, exposure to elements, effects on other drivers, and so on.

    Most current systems provide a backup to existing safety measures. They can't warn early enough for humans to react, so instead they do things like "pre-trigger" the airbags, so they are more sensitive in the event of an actual collision.

    That said, there's an emerging science in using vision technology for this sort of thing, backing up radar for foggy conditions. A stereo dash camera analyzes the scene ahead, judging distances the same way our eyes do. Outlines of cars are mapped as they come into and out of view. A vision system is more useful at higher speeds, which unless the driver is bonehead stupid will never be the case in foggy or poor weather conditions. (Actually, the camera could be used to tell the driver to slow down ... "You can't see ahead of you, dummy!")

    -- Gordon
  • rubberband_freakrubberband_freak Posts: 8
    edited 2012-03-04 13:31
    Thanks for the info Gordon, I was thinking about using a camera as plan B. I'm gonna go ahead and mark this solved. If anyone has anymore information, please keep posting. You can also email me at my username at yahoo.
  • ajhikerajhiker Posts: 1
    edited 2012-12-06 22:31
    The ultrasonic sensor module such as made by parralax has one transducer that serves as a transmitter and one that servers as a reciever. The sensors are oriented to and calibrated to reflect a ping off of a soid object. So air is not substantial enough to reflect the ping and the reciever circuit is not sensitive enough to hear the very faint echo born off of the air molecules. Two transducers must be aimed directly toward one another. First the signal is sent across in one direction and then in the other. The transit times are subtracted and the difference will be the wind velocity provided they line up with direction of the air flow. If are not trigonometry can be applied. In fact it this method combined with two more transducers set at a right angle, combined the trig calculations, that will get your project working.
    I have the algorythm that must be programmed if anyone is interested.
  • rkguyrkguy Posts: 1
    edited 2013-04-07 16:04
    I am totally interested. Are you still around ajhiker?
    ajhiker wrote: »
    The ultrasonic sensor module such as made by parralax has one transducer that serves as a transmitter and one that servers as a reciever. The sensors are oriented to and calibrated to reflect a ping off of a soid object. So air is not substantial enough to reflect the ping and the reciever circuit is not sensitive enough to hear the very faint echo born off of the air molecules. Two transducers must be aimed directly toward one another. First the signal is sent across in one direction and then in the other. The transit times are subtracted and the difference will be the wind velocity provided they line up with direction of the air flow. If are not trigonometry can be applied. In fact it this method combined with two more transducers set at a right angle, combined the trig calculations, that will get your project working.
    I have the algorythm that must be programmed if anyone is interested.
Sign In or Register to comment.