SparkFun Forums 

Where electronics enthusiasts find answers.

General project discussion / help
Did you make a robotic coffee pot which implements HTCPCP and decafs unauthorized users? Show it off here!
By Hydra7403
#165508
Hi everyone,

I need to detect the distance of a point in space and i was wondering if using a IR Sensor or a Sonar.
I need an accuracy of around 2mm (i read that IR are a bit nasty when it comes to precision :? ).
Here's an example of the detection:
Image
Basically,giving the facing direction of the sensor,i need to know the distance between the sensor origin and the
point A in a straight line.

What should be better?

Thanks in advance.
By jremington
#165528
Sonar ranging modules are much more accurate than most IR distance sensors, but can be confused by echos and surfaces that are not perpendicular to the line of sight, such as your drawing suggests. Their range is also quite a bit wider than 10-150 cm, whereas many ranging IR sensors are limited to less than 100 cm.
By Mee_n_Mac
#165530
Hydra7403 wrote: I need to detect the distance of a point in space.
Is this a point on a surface or a lollipop suspended in air ? How big in diameter is this spot (or lollipop) ?
By TastyResistor
#165552
It depends on your application.

IR sensors wont perform as well outdoors due to interference from the sun.
My experience with hobby priced IR and sonar sensors tells me that sonar sensors would be more accurate, with a higher distance too.

You won't achieve 2mm accuracy for any medium sized distances. A laser might be able to.
By Hydra7403
#165553
Thanks for the replies.

It can be pointed at 'any' objec.The project is to make a sort of scanner to reproduce the object in 3D by taking multiple samples.
The spot,the smaller it is,the better,a spot of 1-2 mm would be great.

It's an indoor project,@TastyResistor what do you mean by "medium sized distances"?
The problem with lasers is that they cost a ton,and i'd prefer to use something not visible (not a laser beam) if possible.

Mmm i suppose there's no way to make that sonar spot more narrow to avoid the interferences that "jremington" posted isn't it?

Thanks.
By TastyResistor
#165589
Lasers aren't visible. They'll also give you distance measurements to all visible points within its field of view.

With sonar you might be able to achieve a cm accuracy at best. Nowhere near 2mm. 2mm accuracy is bordering on industrial robotics precision.

The Kinect might be the best (and cheapest) approach to recreate the object in 3D.
I would personally wait for the xbox one kinect camera to come out. It has a depth sensor in it which sounds suitable for your application.

Otherwise there is really no substitute for a laser.
By Hydra7403
#165595
I wanted to do a "personal project" so i though to be fine with a limited budget (<100$)
but i see that it's kind of impossible since the components are too expensive for the precision needed.

About the kinect,yeah,it's an handy solution but those models unfortunately are still "rudimental" meaning that they
can't be used in a real case scenario (it`s those kind of models suitable only for video-calling and similar).

Just a last question,is it also impossible to get a 2mm precision using a infrared module
reducing the distance range to 10-90 cm?

Thanks again.
By Mee_n_Mac
#165617
Hydra7403 wrote:Just a last question,is it also impossible to get a 2mm precision using a infrared module
reducing the distance range to 10-90 cm?
It's not just the range resolution but also the vertical and horizontal resolution, aka the beamwidth. Just like pixel size affects picture resolution.