ultrasonic sensors => maxsonar EZ-1, SRF0x, or PING

Dec 21, 2006 27 Replies

Just re-read this: it's indeed confusing. Could be that the wording is generally vague so the document can cover a wide variety of their sensor types?>

I was wrong earlier in describing the four pins of the PSD in the Sharp unit. I went back to my notes, which I made when I pulled one apart 4-5 years ago. The leads are described as "Anode 1," "Anode 2," and Cathode. Two of the four leads are the cathode, to assist in soldering. I once thought they had two diodes in them as well, but in further reading this is just how the diode is construced internally. I can no longer find the original Sharp document that described the sensor, but I recall it described as a "pin photodiode" (singular). So Anode 1 and Anode 2 are the differentiual "outputs" (I am assuming) and on these units there is no separate direct output. Sorry for the additional confusion.

-- Gordon

Here's some good technical stuff on these types of sensors I found...

formatting link
(PSD School - a 15 section paper on how to design these sensors).

formatting link
As you say, the 1D version of the sensor has 3 leads. It's got one connection on the back of the material, and two on the front. Wherever the light falls on the front cause it to generate a voltage which is a function of how far the light is away from edge contacts.

This causes the device to measure the effective "center of gravity" of the light hitting the sensor. So the type of effect I was talking about could happen, but it's a function of how small the focused dot is on the surface of the sensor. The smaller the dot, the less effect there would be.

The first technical document above goes into great detail in how to design such a sensor including all the math for selecting lenses and calculating dot sizes. I read a lot of it but not all of it.

Laser diodes it seems from the document do have extremely small light source sizes (20x4 um) which can make for an extremely small dot on the sensor if the optics are designed correctly and the dot is focused accurately. However, as the more the target moves, the dot goes more and more out of focus. So the dot size will be a function of the design, and how much the target is allowed to move. So if you want the sensor to only detect a range of movement (like the thickness of a sheet of paper) from a distance of 10 mm then the optics can be precision focused to make a very small dot on the sensor surface and create a highly accurate reading (a .004 cm dot on a 3 mm sensor surface just doesn't cause much error when half the dot goes dark and shifts the center of gravity of the dot by .001 cm).

But if you are talking about allowing the target to move 100 cm and you aren't using some complex movable focus lens system (which I don't get the impression these devices use), it seems to me it's not going to be able to focus the dot very accurately on the sensor for the full range and it could create a very large dot on the surface and the PSD will then be calculating the center of gravity of the dot. So if the out of focus dot expands to 2 cm on a 3cm sensor, and half the dot goes dark as it passes over a edge on the target, it could cause the center of gravity of the dot to shift by .5 cm which would be something like a 16% error.

So, end result, as I suspected, there will have to be some error caused by a sharp reflective change on the surface just based on how these systems work. But without knowing the exact design details of the sensor, I couldn't begin to estimate whether the effect is a .001% error or a 20% error.

Here's another idea I just thought of for caring about the direction of movement. If there is a sudden change in the depth of the target as it moves (you scan past a step in the surface), then it's possible that the dot could be momentarily hidden from the view of the receiving sensor (which is at a slight angle from the transmitter). This could cause a slight blip in the distance reading. Mounting it as they suggest could prevent the blip. Maybe both this effect and the transition from light to dark surface just causes more "blips" in the reading unless you mount it as they suggest relative to the motion. And if you had a stair-step effect in the right direction combined with a color change, you might get double the effect. (like scanning a light object going past on a dark conveyor belt).

For applications where the target is well known, I can see where effects like this might make it useful to mount the sensor in a way to minimize the noise caused by these effects (like measuring the thickness of boards going past on a conveyor belt). But for robotics use where you can't control the environment there's going to be so much noise and unpredictable results that the minor effects that I talked about seem like they would be insignificant making it of no real concern which way you mount it.

How much do these sensors cost? Where can you get one cheaply? I'm feeling motivated to buy one and play with it now....

As I recall, the Sharp units have an led with a [fixed] focussing lens on the Tx side, and a 1-D linear photodiode array, with another focussing lens, on the Rx side. It takes something like 10 averages over 50-msec of where the reflected spot falls on the array.

Since the accuracy of this device is a matter of geometrical triangulation, small changes in geometry, especially regards "orientation angle" of the object being sensed, will have large effects on where the spot falls on the array. In addition, if the object is not a flat surface and perpendicular to the sensors, but has some shape or edges to it, and the object and/or sensor is moving during the 50-msec integration period, then the spot will also jump around a lot, and the output reading will be flukey [to use a hard engineering term].

Ultrasonic sonars have their own peculiar problems, but only take a single reflective reading, and small changes in target orientation or movements will not so as big an issue as they are for a system that uses triangulation. The sensitivity of error versus change of angle, etc, should be easy to figure out with a little trigonometry.

Actually, this tends to be a limitation of the low-end ultrasonic sensors. The Polaroid sensors have always taken a series of pings (at different frequencies no less), as do most of the industrial ultrasonic ranging sensors.

-- Gordon

A really good web ref to understand PSD's is on the second page of this PDF at:

formatting link
Realize the conductive surface across the diode face is resistive. So photons generate currents somewhere across the device where the light falls, but to exit the diode, it has to go to one of the two terminals through the resistive material. So the currents will favor the closer of the two terminals (path of least resistance). The ratio of the currents tells where the light fell.

-- Randy M. Dumse

formatting link
Caution: Objects in mirror are more confused than they appear

snipped-for-privacy@drexel.edu wrote: ...

...

I cannot say that the MaxSonar-EZ1 will work better in your particular application than a Sharp GPSY0A02YK IR sensor (I have not evaluated it), but only that others have used and liked the MaxSonar-EZ1 for aerial robotics. (We have had good reports when using the MaxSonar-EZ1 for aerial robots.) It was reported to us that that various sensors were evaluated and they settled on the MaxSonar-EZ1. Because of these reports we thought it would be good to get the word out.

To help save people the work of evaluating sensors, we have published a comparison of our sensor with others sensors for a simple real world test. We looked at a swinging child's basket ball with a variety of sensors (MaxSonar-EZ1, SRF04, SRF08, SRF10, and the SRF02) . This was a side by side test with the only changes being the sensors (placed in exactly the same location) and the software in the BasicAtom microcontroller. The results are here.

formatting link
The short video shows the ball swinging, and the pdf report allows easy printing and clear reading.

Regards!

Bob Gross CEO MaxBotix Inc.

formatting link

Boy, Bob, you might make a believer out of me yet. Those results are really smooth looking for your unit. I've been somewhat skeptical, having had good luck with the SRFxx's until recently, and have found problems I hadn't previously.

I just wished you had a shorter detection range. I like to use the sonars up close for manuevering and positioning. Have you thought about reverse powering the transducer very lightly to eliminate the ring down?

-- Randy M. Dumse

formatting link
Caution: Objects in mirror are more confused than they appear

Bob, how about adding the Polaroid (now Senscomp) data? and maybe a Sharp Ranger? to give a very good overview of the sensors available on the market.

-- Randy M. Dumse

formatting link
Caution: Objects in mirror are more confused than they appear

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required