Shop OBEX P1 Docs P2 Docs Learn Events
Snow Detection ideas...IR reflectance... — Parallax Forums

Snow Detection ideas...IR reflectance...

peevespeeves Posts: 6
edited 2010-09-19 19:55 in Accessories
I was thinking I could maybe detect falling snow using something like the QTI reflective sensor aimed sideways on a highly emissive black surface with the plane perpendicular to the beam. Then when it snows, occasionally the sensor will detect closer to white than black.

The problem is I'd prefer to have the sensor/black plane distance at least ~5-10"+ so that the snow can freely fall between the 2 without turbulent effects.

Can anyone recommend a sensor that would meet my needs? It would have to be an IR reflective sensor since it needs to function at night as well.

Comments

  • John R.John R. Posts: 1,376
    edited 2010-09-09 07:02
    Interesting challange. Thinking about what a "snowflake" is, they (at least around Wisconsin) range from very small white flecs (almost like very small sleet) to large fluffly flakes, and everythign in between. The really fine stuff could be hard to see.

    On thought would be to use a line scanner. You could put the line scanner opposite a black background, and use LEDs on the side the of the line scanner to illuminate the flakes. This would give a high contrast between a flake and the background. It could also work for other types of precipitation.


    John R.
  • bdickensbdickens Posts: 110
    edited 2010-09-09 08:01
    Water clarity has a tool called a secchi disk which relies on the distance from the surface that the disk "disappears" and infers the clarity. It's pretty much the standard for water clarity. Low tech, but recognized world wide.

    I wonder if the answer might be (Disclaimer:I live in Southern Alabama where snow is pretty darn rare) to establish a reference distance for a light sensor, then back it up mechanically, measuring the point it disappears. Encoder would measure the distance. At the point where your light sensor reads nothing on a clear day, you have reference. Then work from that.

    Alternative two might be to create a variable light source, and a photoreceiver set apart. Then reduce the light source in steps (PwM). If perfectly clear you should get a 1-1 ratio (correcting for distance). if snowing (or raining) you would get a 1-lessthan1 as you lost light to interference. Secchi disk in reverse. Laser diode would do nicely.

    Now both will suffer from one annoyance, the sensors need cleaning. Dust, smoke, (in my case small crabs, algae and slime). So you may need to wipe them down once a month. A bit of clever programming and you could get it to tell you when it's needed.

    My techie-do-list includes a water clarity meter so keep us posted on how it goes.
  • John R.John R. Posts: 1,376
    edited 2010-09-09 09:58
    bdickens wrote: »
    My techie-do-list includes a water clarity meter so keep us posted on how it goes.

    One simple "genreally used" way to measure water clarity (turbidity) electronically is to shine and LED (or other light source) across a gap and use a photo sensor (photo transistor) to measure the brightness. Can can be calibrated to the secchi disk, and/or in many cases just the raw data used when only a comparison is needed (the water is "cloudier today than yesterday").

    For both this, and the original post, it might be worth checking out Dr. Allen's web site. I'll see if I dig up the URL.

    Edit: here's the url for EM Systems (Dr. Allen's web site): http://www.emesystems.com



    John R.
  • bdickensbdickens Posts: 110
    edited 2010-09-09 12:06
    Modestly off topic -

    Led in a tube - That does work, although I've discovered that in my environment, the algae REALLY like the LED and I'm pretty sure the glass shrimp thought it was love. The stuff in my tube was, in it's own right, pretty funny.

    The longer these things stayed submerged the less accurate they got. My son's answer was a servo to pull it out of the water between readings. I've thought about a test-tube brush on a servo to clean every evening.

    We had to quit playing while we finished the other projects. Once school starts, time becomes critical. Electric outboard finishes this weekend, weather station in a month and then it's back to the dreaded aquarium project.

    Thanks
  • peevespeeves Posts: 6
    edited 2010-09-09 13:57
    Interesting ideas. My initial 2 ideas were the line scanner and the photoresistor. Would the LED/photoresistor idea have issues during natural daylight or is that compensated? I'd like to eliminate the solar wavelengths from being a factor. My goal is to differentiate between rain and snow and to possibly estimate snow intensity. I already have a precipitation sensor (heated leaf moisture sensor) that tells me if it is precipitating or not. I want something more accurate than just a 32F temp threshold since technically snow can fall at 2m temps warmer than 32F and rain (freezing) can fall at temps even down near 20F.

    Here's a graph of reflectance vs wavelength of different snow crystal radii.
    spectra.jpg

    Obviously snow scatters all visible wavelengths well in all directions so they appear white to us. Rain drops tend to back scatter light more. Therefore, if my atmospherics physics isn't too rusty, if I'm emitting visible light on one side of a horizontal segment and receiving it on the other side, more light should be received through the snow than through the rain. Obviously weather radar deals with different wavelengths, but it's the same idea...rain has a higher reflectivity (back scattering) than snow and wet hail has the highest reflectivity.

    26.jpg

    With all of that in mind, I'm still having trouble figuring out how to best make this work in my head. Do you think it would be better to try to differentiate it via back scattering (amount of light received on the same side of the emitter) or by the received being on the other side (forward scattering)? I'd probably have to experiment with the differing precip types, wavelengths, and precip intensity.

    As for the line scanner...I would want a digital output from this so I can manipulate the data. I'm just learning this BASIC stamp stuff so I'm working with that microcontroller for now. From what I've read, I would need to set a voltage threshold which would analyze the analog readings as a 1 (light) or a 0 (dark). If I could somehow find that threshold which best differentiates between rain drops and snowflakes, this could work really well. I could also estimate the snow intensity by comparing the amount of "1" valued pixels in the entire 128 pixel sample.
  • kwinnkwinn Posts: 8,697
    edited 2010-09-09 14:40
    You could try having multiple leds (IR, Red, Green, Blue) and 2 photosensors on opposite sides to measure both transmitted and reflected intensities.

    By turning one led at a time on the reflected and transmitted intensities could be measured for each wavelength, with no leds on used as the zero reference.
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2010-09-09 14:44
    You might also consider refraction. Rain droplets are big enough that they will refract a slightly off-axis backlight into a linescan imager's field of view. I've used this method to detect surface features in clear glass bottles, and it works reliably. Using a combination of refraction to filter out the rain, along with transmission and/or reflection, you should be able to make the finest distinctions among the various forms of precip.

    -Phil
  • peevespeeves Posts: 6
    edited 2010-09-09 16:04
    You might also consider refraction. Rain droplets are big enough that they will refract a slightly off-axis backlight into a linescan imager's field of view. I've used this method to detect surface features in clear glass bottles, and it works reliably. Using a combination of refraction to filter out the rain, along with transmission and/or reflection, you should be able to make the finest distinctions among the various forms of precip.

    -Phil

    I believe the angle of refraction of visible light through a rain droplet is about 40-42° depending on the specific wavelength. So you're suggesting to place the linescan imager centered at this angle to the emitted light?
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2010-09-09 20:47
    Anything between >0 and the normal refraction angle should work. The main thing is keeping the backlight off-axis, so the sensor can't see anything when no raindrops are present.

    -Phil
  • ercoerco Posts: 20,255
    edited 2010-09-10 09:22
    A carefully-aligned laser beam shining into a phototransistor a fixed distance away would detect snowflakes breaking the beam. Longer distance, more chance to detect snowflakes. Just look for signal variations in the PTX output. Biggest problem may be condensation on the laser/ptx windows.

    This from a guy in Los Angeles who hasn't seen snow in years!
  • IroneIrone Posts: 116
    edited 2010-09-10 16:53
    How Ya Doin'?
    How about a scale with a water tight pan on top? A variable resistor aligned with the movement of the weight meter could tell you the weight of the liquid, solid or when both fell, and a clock could tell you how fast it is falling or even when it fell. The only problem is you have to dump the pan but if you put it close to a window it should not be much of a problem. In Pennsylvania snow falls at around a 30 degree angle but sometimes it looks horizontal. Oh yeah, you gotta dump pretty often.
  • peevespeeves Posts: 6
    edited 2010-09-13 10:29
    Alright...one more question on a totally different type of precipitation...

    The more I thought about it I wondered if I could make a sleet/hail sensor too using acoustics.

    Does anyone think the Parallax sound impact sensor has the capability of detecting "pings" from these types of precipitation? I have no idea what kind of metal I would use (to enclose the sensor) to get the loudest sound or what kind of decibels this would even put out. A quick look at the sensor specs tells me the range of detection can be adjusted.

    http://www.parallax.com/StoreSearchResults/tabid/768/txtSearch/sound/List/0/SortField/4/ProductID/614/Default.aspx
  • bdickensbdickens Posts: 110
    edited 2010-09-13 11:39
    I presume you saw this one ?
    http://www.howmuchsnow.com/ping/
  • peevespeeves Posts: 6
    edited 2010-09-13 12:29
    bdickens wrote: »
    I presume you saw this one ?
    http://www.howmuchsnow.com/ping/

    Yes and that's another project. :smilewinkgrin:

    That is simply for snow depth though and not for actual detection on if it is falling or not. I've had a few discussions with Chris on that sensor. He's quite the weather gadgets guru.
  • RavenkallenRavenkallen Posts: 1,057
    edited 2010-09-18 19:57
    NOAA has a lot of way to measure snow(I don't know about detecting individual flakes)...Here is a experimental model they are using...

    http://www.crh.noaa.gov/grr/snowsensor/

    An ultrasonic sensor might work if the snow flake is big enough...This is a cool idea and it would be very useful, Especially for someone who lives in New Hampshire. We get a LOT of snow up here...
  • Tracy AllenTracy Allen Posts: 6,658
    edited 2010-09-19 15:25
    Here's a link to a commercial product, the "Air Eye" at the site of Sten L
  • kwinnkwinn Posts: 8,697
    edited 2010-09-19 19:55
    If I were to attempt such a project I would start with the Parallax sound impact sensor for rain/sleet/hail sensing and the 32x32 image sensor used in optical mice for snow sensing.
Sign In or Register to comment.