Homemade Infrared Rangefinder (Similar to Sharp GP2D120 by pyrohaz
Featured
DSCN1504 (Medium).JPG
GP2D12 (Medium).jpg
DSCN1467 (Medium).JPG
Here is my instructable on how to construct a pretty simple (for some!) short range infrared rangefinder/range sensor. Infrared rangefinders are very useful in a number of projects. The majority of these come from obstacle detection (in robots) or generally detecting distances! The one shown here is only a simple rangefinder and will only really be able to measure about 6 or 7cm infront of the range finder. Luckily, most objects reflect infrared well enough to produce a reading (including a hand, paper and tin foil). I will be showing you how to use the infrared range finder with an Arduino and ways of linearizing the result.
 
Remove these adsRemove these ads by Signing Up

Step 1: Theory

The theory behind an infrared rangefinder is that pulsed infrared is emitted from an IR led and then reflected back off an object into an IR receiver. As light adheres to the inverse square law which states that as distance from a source is increased, the intensity decreases by the square (Source: http://hyperphysics.phy-astr.gsu.edu/hbase/vision/isql.html). Essentially, the light is emitted by the infrared LED, which then bounces off the object. In the first instance, the LED is the emitter and the reflective object is the observer. Once the light hits the object, it then bounces off and is reflected back to the IR receiver. The object is then acting as the source of light so the inverse square law takes effect twice. This has the problem that the maximum range of the rangefinder is quite short and to increase the range, higher power LED’s would be required.

Another problem that takes affect with light based rangefinders is how it can be affected by ambient light. I fix this in my rangefinder by modulating the emitting LED. Without this modulation, a simple light bulb connected to the mains can affect the result by superimposing 50Hz onto the actual signal.

My rangefinder works through having a  modulated IR source at an ultrasonic frequency, being detected by a IR receiver (IR photodiode) which is then fed into a high pass filter, amplified and peak detected.
Mic100 says: Apr 23, 2013. 1:39 PM
Hi
Very good teaching of the electronic of IR sensors
and also very good for my money
Thank You very much :=)
Mic100 says: Mar 19, 2013. 3:20 PM
Is Technical but is a Nice instructable
i'm try to make the same with 38KHz carrier for decoding RC5 ir code and drive my futur robot
Thank You
Squid1930 says: Mar 2, 2013. 5:14 PM
Great Instructable. How accurate do you think this is?
pyrohaz (author) says: Mar 2, 2013. 6:19 PM
Hey, thanks a lot! :) Unfortunately, not particularly. As you can see in the schematic diagram, it uses lots of resistors and capacitors (none of these being particularly accurate, generally +/- 10%) which are also affected by temperature, humidity, extraneous light and pressure changes. If you were to keep environmental changes constant though, it could actually be quite accurate. Good enough for a not too important task though!
ray74 says: Jan 25, 2013. 9:53 PM
Awesome.
pyrohaz (author) says: Jan 27, 2013. 5:59 AM
Cheers :D
Bot1398 says: Jan 25, 2013. 6:40 PM
Superb instructable , deserves a vote :)
pyrohaz (author) says: Jan 27, 2013. 5:59 AM
Thanks dude! :)
lewisb42 says: Jan 25, 2013. 2:00 PM
Favoriting this. Could be useful on a mini-sumo robot -- it would be very nice to have a single circuit board with microcontroller and rangefinders integrated.
pyrohaz (author) says: Jan 27, 2013. 5:59 AM
Cheers dude! If you only need it for short range, I wreckon thats a good shout! Cheers :)
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!