Re: Range-finding ultrasonic / infrared

From: Robert Monsen (rcsurname_at_comcast.net)
Date: 01/04/05


Date: Tue, 04 Jan 2005 06:29:55 GMT

Danny T wrote:
> What's the best (cheapest, quickest, easiest) way to detect obstacles
> for a small robot? The book I have starts with infrared, and later
> replaces them with ultrasonic. Infrared is way cheaper, but I don't full
> understand how it works..
>
> I've got some phototransistors here, that seem to work exaclty like
> LDRs, they just change the resistance with the light - except they also
> work with infrared (as well as normal light). I've seen infrared LEDs,
> and infrared phototransistors - am I right in thinking these are simple
> filtered to only detect IR, instead of normal light?
>
> Would these be accurate enough to be able to get a range, or would it
> simple be a yes/no if something's there? Ideally, I want to be able to
> detect a) if there's anything within, say, 6 inches, and also if there's
> anything within, say, 3 inches. That way, as things get near, I'll start
> turning my robot, but if it doesn't turn quick enough, it'll increase
> the turn when it gets closer.
>
> Thanks,

You can buy units that are designed as IR distance sensors. They give
you either a voltage (which you can read with the comparator or a/d) or
a binary output. The Sharp GP2D120 comes to mind. Here is a datasheet:

http://www.technologicalarts.com/myfiles/data/gp2d120.pdf

You can get them at the various robotics webstores. However, they are
cheaper at Arrow electronics. Make sure you get some JST connectors,
because they are a bit difficult to run without them. Acroname sells
them with the connectors and wires for $12.50 plus shipping:

http://www.acroname.com/robotics/parts/R146-GP2D120.html

I've built robots with these before, and they work pretty well. One
issue they have is that they are *really* directional. This is an issue
when you are trying to detect obstacles, and mounting becomes critical.
That is one thing to say for ultrasonics.

You can also just use a bump sensor, like the roomba.

http://www.irobot.com/home.cfm

-- 
Regards,
   Robert Monsen
"Your Highness, I have no need of this hypothesis."
     - Pierre Laplace (1749-1827), to Napoleon,
        on why his works on celestial mechanics make no mention of God.


Relevant Pages

  • Re: Where is behavior AI now?
    ... Even a simple robot needs short-term memory, ... I agree that the complexity of sensory input does not necessarily ... might be able to generalise about the nature of obstacles: ...
    (comp.robotics.misc)
  • Re: Range-finding ultrasonic / infrared
    ... >> I'll start turning my robot, but if it doesn't turn quick enough, ... > when you are trying to detect obstacles, ... but Acroname don't have visible shipping costs for the UK! ... Cheapest I've found here is: ...
    (sci.electronics.basics)
  • Re: Controlling the path
    ... Building a robot that could go around a room (no obstacles) in a spiral ... manner with only 3.5mm inside of the preceeding path. ...
    (comp.robotics.misc)
  • Re: Cooperative robots (AGV) simulation using MATLAB
    ... your robot will know obstacles if he will ... "bumps on them", and even then he won't know nothing about the obstacle ... cross roads) while traveling in the area and will choose shortcut... ...
    (comp.soft-sys.matlab)