How can infrared LEDs be used as a distance sensor for different materials?

In summary, the author bought a pair of infrared LEDs and tested them to see if they could be used as a distance sensor. He found that they did not work as expected and he is unsure why. He also mentions that there are some infrared sensors that are accurate for measuring distance, but he does not know if any of these are suitable for his purposes.
  • #1
ramonegumpert
187
0
Dear Experts,

I bought a pair of infrared LEDs (transmitter + receiver).

I read that infrared can be used as distance sensor.

I have seen projects using it (eg. Sharp GP2D120 sensor) for robotics and toy cars. Just to clarify, I am not using the Sharp sensor but a normal infrared LED pair bought from an electronics parts store.

I tested it and measured with volt meter and it seems that different materials or objects reflect different intensity of infrared to the receiver.

I am wondering how can this be used as Distance sensor when there is no consistent voltage when sensing different materials.

Are there Infrared sensors that can measure distance accurately for different materials like wood, metal, plastic, concrete surfaces or materials?

Has anyone tried the Sharp sensor before? There are a few models of it.

At the moment, based on my testing , it fail to see how infrared led can measure distance accurately.

So, could you please help clarify my doubts.

Thank you very much.

Best regards
Ramone
 
Engineering news on Phys.org
  • #2
I think you've missunderstood how these things work. Sensors like these generally operate by modulating the light (or sound, the principle is the same for acoustic sensors) using an on-board oscillator and then down-mixing the reflected signal; i.e the measurement is based on time, not intensity.

You should be able to find a datasheet if you google a bit.
 
  • #3
If you mount the IR LED and IR Receiver on the front of your toy car, so that they can't see each other, (put a barrier between them), then when there is something to reflect off, the receiver will get some IR signal.

To avoid just any IR signal giving a false reading, you could modulate the transmitting IR LED with a 1000 Hz square wave to turn it on and off rapidly.
You then detect this on the receive end with a NE567 tone decoder or similar device.

Just the presence of this signal would tell your car that it is close to something and it is time to put the brakes on or turn away.

I doubt if you could really measure distance with such a device because the time interval would be so short. Infra Red light travels at the speed of light, of course. I make it about 30cm per nanosecond.
 
  • #4
I had a quick look at this particular sensor, and I am pretty sure it does NOT use time as I suggested above; I think it just uses triangulation (back to basics). I.e. it has a reciever with a number of "pixels" in it distributed over some distance from the transmitted. This also explains the short range (it is limited by the width of the sensor).
By sensing the posisiton of the maxium you the angles and then the distance.
If you look in the datasheet is seems to be quite accurate, and there is not much difference between grey and reflective surfaces.

(It does use a modulated signal, but that is probably just part of a PLL to get a better S/N ratio).
 

Related to How can infrared LEDs be used as a distance sensor for different materials?

1. What is an infrared distance sensor?

An infrared distance sensor is a type of electronic sensor that uses infrared light to measure the distance between the sensor and an object. It emits infrared light and then measures the time it takes for the light to reflect back to the sensor, which can be used to calculate the distance between the two.

2. What are the applications of infrared distance sensors?

Infrared distance sensors are commonly used in robotics, automotive, and industrial applications. They can be used for obstacle detection, object tracking, and distance measurement in various industries such as manufacturing, transportation, and security systems.

3. How does an infrared distance sensor work?

An infrared distance sensor works by emitting infrared light and then measuring the time it takes for the light to reflect back to the sensor. This time is then used to calculate the distance between the sensor and the object. The sensor uses a photodiode to detect the reflected light and a microcontroller to process the data and calculate the distance.

4. Can an infrared distance sensor be used in outdoor environments?

Yes, infrared distance sensors can be used in outdoor environments. However, they may be affected by external factors such as sunlight or other sources of infrared light. In order to minimize these effects, some sensors have built-in filters or use modulated infrared light.

5. How accurate are infrared distance sensors?

The accuracy of an infrared distance sensor depends on various factors such as the quality of the sensor, the environment, and the distance being measured. Generally, they have an accuracy of around 1-2%, but this can vary depending on the specific sensor and its intended use.

Similar threads

Replies
1
Views
878
  • Electrical Engineering
Replies
1
Views
1K
  • Electrical Engineering
Replies
3
Views
2K
  • Electrical Engineering
Replies
1
Views
2K
  • Electrical Engineering
Replies
1
Views
1K
Replies
4
Views
2K
Replies
2
Views
1K
Replies
152
Views
6K
Replies
5
Views
2K
  • Electrical Engineering
Replies
24
Views
4K
Back
Top