Society of Robots - Robot Forum

General Misc => Robot Videos => Topic started by: Admin on February 17, 2008, 07:24:21 PM

Title: sharp IR 'radar'
Post by: Admin on February 17, 2008, 07:24:21 PM
Just another fun example of what one can do with a simple scanning sharp IR. And yes, the $50 Robot can do this.

[youtube]Sf6sLpG6AnQ[/youtube]
Title: Re: sharp IR 'radar'
Post by: airman00 on February 18, 2008, 10:35:38 AM
How was it able to work outside?  IR in sunlight?????
Title: Re: sharp IR 'radar'
Post by: izua on February 18, 2008, 10:54:33 AM
modulating might help ???
edit: or maybe it was cloudy :P
Title: Re: sharp IR 'radar'
Post by: paulstreats on February 19, 2008, 06:16:48 PM
sharp ir range finders have their own modulation built in in for optimal performance
Title: Re: sharp IR 'radar'
Post by: airman00 on February 19, 2008, 06:21:51 PM
sharp ir range finders have their own modulation built in in for optimal performance

I understand that Sharp IRs are optimized, but can they really work in sunlight ?
Title: Re: sharp IR 'radar'
Post by: fritsl on February 20, 2008, 06:06:00 AM
They stink in sunlight!!

But - at daytime you can see the other car - it is only important at night  ;D
Title: Re: sharp IR 'radar'
Post by: Admin on February 20, 2008, 08:11:58 AM
Quote
I understand that Sharp IRs are optimized, but can they really work in sunlight ?
Despite popular belief, it is quite possible for both direct and indirect sunlight to significantly affect results.

I never tested it entirely, but I theorize direct sunlight can flood the sensors.

Maybe I'll do an experiment sometime and report back (but not now, busy on another project).
Title: Re: sharp IR 'radar'
Post by: airman00 on February 20, 2008, 04:32:59 PM
ill do an experiment this week with it
Title: Re: sharp IR 'radar'
Post by: paulstreats on February 20, 2008, 06:42:34 PM
please do, ill be interested in the results also...

It saves us all some work ;D
Title: Re: sharp IR 'radar'
Post by: airman00 on February 20, 2008, 06:58:53 PM
Im guessing that Ill take readings off a photoresistor also to give a amount of light.


Then ill do the tests at a handful of values , and in different enviornments , outside,  indoors with windows open, etc.
Title: Re: sharp IR 'radar'
Post by: Trumpkin on February 25, 2008, 10:50:53 AM
i've seen the project before but never noticed how awsome it is!!
Title: Re: sharp IR 'radar'
Post by: ceruleanplains on March 02, 2008, 06:47:41 PM
This my first post - so I hope this is helpful.

there's a few things you could do to mitigate the effects of the IR outside these three are increasing in difficulty and cost:

1.) you can put the sensor in a deep cavity (~2-4") with black absorbing material e.g. foam in a camera case surrounding it.  this reduces scattering from the surroundings that would add noise to the detectors.  this is highly fov constraining however.  but you can have a linear array to increase this.  the downside is that the black material in the sun will eventually heat and saturate the sensor.

2.) the IR from outside is also going to be because of the temperature differentials as well as the material backscatter in IR.  you can test this as airman seems to be trying out; but all materials will have some backscatter and thermal mass to them.  lighter materials will have different signatures than heavy materials.  also color and reflectivity matter, so these characteristics will change the behavior from room temperature dynamics.  This is because a lot of the sensors are likely using black or gray body assumptions for the temperature response unless they have multiple IR colors.  so a near field background calibration is necessary often.  this means you have a control that you look at at a controlled temperature and reflectivity and then you can try and compare those readings to what your sensor is observing in the real world. [cheap way is to possibly put this in a box in a specific area of the field of regard of the sensor and take some occasional measurements/cals]. adding a color sensor & photodetector could help.

3.) outdoors can have a lot of particulates and aerosols and more variation in water vapor than indoors.  avoiding these variations is generally a good idea, or having active monitoring of these conditions to eliminate the biases to your readings.  this again more advanced and will require a lot more sensors and more $.

basic rule is to eliminate the random backscatter, control or observe the thermal properties of the bot's sensors,  calibrate out the noise, and rule out false alarms with other sensors.
Title: Re: sharp IR 'radar'
Post by: airman00 on March 02, 2008, 06:51:57 PM
This my first post - so I hope this is helpful.

there's a few things you could do to mitigate the effects of the IR outside these three are increasing in difficulty and cost:

1.) you can put the sensor in a deep cavity (~2-4") with black absorbing material e.g. foam in a camera case surrounding it.  this reduces scattering from the surroundings that would add noise to the detectors.  this is highly fov constraining however.  but you can have a linear array to increase this.  the downside is that the black material in the sun will eventually heat and saturate the sensor.

2.) the IR from outside is also going to be because of the temperature differentials as well as the material backscatter in IR.  you can test this as airman seems to be trying out; but all materials will have some backscatter and thermal mass to them.  lighter materials will have different signatures than heavy materials.  also color and reflectivity matter, so these characteristics will change the behavior from room temperature dynamics.  This is because a lot of the sensors are likely using black or gray body assumptions for the temperature response unless they have multiple IR colors.  so a near field background calibration is necessary often.  this means you have a control that you look at at a controlled temperature and reflectivity and then you can try and compare those readings to what your sensor is observing in the real world. [cheap way is to possibly put this in a box in a specific area of the field of regard of the sensor and take some occasional measurements/cals]. adding a color sensor & photodetector could help.

3.) outdoors can have a lot of particulates and aerosols and more variation in water vapor than indoors.  avoiding these variations is generally a good idea, or having active monitoring of these conditions to eliminate the biases to your readings.  this again more advanced and will require a lot more sensors and more $.

basic rule is to eliminate the random backscatter, control or observe the thermal properties of the bot's sensors,  calibrate out the noise, and rule out false alarms with other sensors.

welcome to the forum

however, you can never really eliminate all the noise , especially not on a robot that moves outside

but very helpful tips for an indoor robot
Title: Re: sharp IR 'radar'
Post by: ceruleanplains on March 02, 2008, 07:12:12 PM
yup - agreed.  noise can't be eliminated in practice... especially for mobile robots in the open environment.  some of it is even useful in learning behaviors especially if they are predictable features. 
Title: Re: sharp IR 'radar'
Post by: Admin on March 09, 2008, 03:09:48 PM
So I did a sunlight test today . . . very sunny outside, pointed my sensor directly at the sun . . . and no change . . .

Which is odd cause my other sensor freaked out from sunlight coming in through the window . . .

I'm too lazy to retest the other and compare . . . I'll do it some day . . .
Title: Re: sharp IR 'radar'
Post by: ceruleanplains on March 20, 2008, 07:43:50 PM
Perhaps the Sharp IR avoids the sunlight by using as its wavebands some of the areas of the solar emission spectrum that are absorbed by water vapor. 

(http://www.ceruleanplains.com/solarrad.gif)

While 47% of sunlight is in the near-ir (800nm-2600nm) most of it is before 1400nm.  Even so there area a number of null areas that you can completely ignore the sun such as the 1800-2000nm range and 1350-1400nm.  If your other sensor was in the 1000 range or 1600 range, I could see how it would freak out.

I attempted to review the Sharp IR data sheet for help, but didn't find anything of value for wavelength.
Title: Re: sharp IR 'radar'
Post by: superchiku on March 21, 2008, 10:54:11 PM
if sharp ir causes so much problem ,then why use it ,why not ultrasonic instead
Title: Re: sharp IR 'radar'
Post by: frank26080115 on March 21, 2008, 11:33:18 PM
if sharp ir causes so much problem ,then why use it ,why not ultrasonic instead

price, the cheapest sharp IR range sensor is about $10 while the cheapest ultrasound ranger is $20
Title: Re: sharp IR 'radar'
Post by: superchiku on March 21, 2008, 11:45:46 PM
well yes thats one thing price but sharp ir must also have other advantages?
Title: Re: sharp IR 'radar'
Post by: paulstreats on March 22, 2008, 05:11:01 PM
it has a smaller spread angle meaning that you get to map with greater accuracy
Title: Re: sharp IR 'radar'
Post by: superchiku on March 23, 2008, 08:11:33 AM
goody at last me buying a sharp ir can prove to be of some advantage..
Title: Re: sharp IR 'radar'
Post by: benji on March 25, 2008, 04:33:46 PM
i dunno how the heck people map with ultrasonic
i read about it and it has a 30 degree beam
this thing is pretty unprecise,,
maybe they use some code tricks with it? im not sure about this one
i still believe tha ir is a better choice for mapping unless its range
Title: Re: sharp IR 'radar'
Post by: ceruleanplains on March 29, 2008, 07:26:50 AM
30 degree beams are useful when trying to track along long walls.  you're mentioning the issue of beamwidth vs. precision. 

For radars anyway... the 3dB precision is  beamwidth = wavelength / diameter of the aperature
and for optics... beamwidth = 1.22 wavelength /diameter (note these formulas assume small beamwidths so a small angle assumption is played and the sine portion is often neglected).  These formulas are valid for EM radiation.

Regardless... if the object you're looking for is less than this beamwidth, then you may need either a larger diameter aperature or use a smaller wavelength.  Otherwise you're good.  So if it's a vertically oriented pencil you're looking for, you might have some trouble finding its position precisely, but if it's a 5" wall... then you have a different story.

This location:
http://www.edgetech.com/pdf/App_Note_Beamwidth.pdf (http://www.edgetech.com/pdf/App_Note_Beamwidth.pdf)
Mentions a formula for apply beamwidth for sonar systems (not precisely ultrasonics - and I didn't validate it). 


Title: Re: sharp IR 'radar'
Post by: Admin on March 30, 2008, 08:12:38 AM
Quote
i dunno how the heck people map with ultrasonic
i read about it and it has a 30 degree beam
this thing is pretty unprecise
If you scan or use multiple sonar, where the beams intersect, you can get much more accurate scans if you run a filter through the data.

Still not as accurate as sharp IR, but would be much faster (for the same # of sensors).
Title: Re: sharp IR 'radar'
Post by: ceruleanplains on March 30, 2008, 08:44:21 PM
You can also combine the data with sensor fusion techniques to resolve the best known range (the ultrasonic) with the IR's azimuth data.  This is a bit more complicated because it involves playing games with fixed and/or body reference frames depending on where the sensors are mounted and correcting for their placement on board the robot.  This is serious robotics when you go here. 

You can form a best estimate and covariance through a series of samples and iterative filtering of the position of an object with a single sensor.  The difficulty with two sensors is that you have to correlate the data 'somehow' to that object (usually a priori - which means using prior knowledge of truth) then you can go back and integrate the measurements from all the other sensors you can correlate the measurements for that object and reduce the error on the best estimate significantly.  Filtering is a wild beast... especially if you're using slower microcontrollers.  I've never done filtering on a microcontroller, only on high powered PC.  And you do need to know a good bit about mechanics to pull off a multi-sensor system for moving targets.



Title: Re: sharp IR 'radar'
Post by: paulstreats on April 12, 2008, 05:49:40 PM
here is another use for the sharp ir:

[youtube]http://www.youtube.com/watch?v=Vv0Q-g2CQh0[/youtube]

It looks like it needs a bit of tweaking yet tho ;D