Instructables

Homemade Infrared Rangefinder (Similar to Sharp GP2D120

Featured
Picture of Homemade Infrared Rangefinder (Similar to Sharp GP2D120
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.
1-40 of 57Next »
Mic10011 months ago
I finally built your 36KHz version of the NE555 everything is OK thank you
Now I will look for RC5
everything is here smd pictures of test
http://sdrv.ms/QCZ8j1


pyrohaz (author)  Mic1007 months ago

Awesome pcb man! Glad it worked for you :)

This is so great!

motherprune2 months ago

This is so great!

cobbledbeard2 months ago

Its fascinating

mousepaper2 months ago

Thats really good

Really good

amazedgreen2 months ago

awesome.

fastbobble2 months ago

Thats wonderful...

gorgeddamp2 months ago


Thats awesome...

clearedeager2 months ago

Its astounding

illrings3 months ago


Thats fabulous

airbugger3 months ago

Thats fascinating


Its helpful :)

headlymph3 months ago

good

tealrink3 months ago

NICE

grousebandit3 months ago




Thats grand

harechubby4 months ago

good

clapfilk4 months ago

good

cheshirecorn4 months ago

Thats incredible

good

workexaminer5 months ago


Thats spectacular...

HWgeek5 months ago

Very nicely done! Having had to deal with Sharp this looks like a nice way to not have to use their stuff.

Question on Step 3 - probing the IR receiver - the scope trace. What point were you probing and what was your voltage scale on the scope?? I ask, as I am trying my hand at building up this circuit, having some issues with getting it working on the receiving end. The darlington pair doesn't seem to be amplifying the signal. Thanks!

gazumpglue7 months ago

her is the kicad PCB projet in zipped file in my i've remplaced the 4148

diodes by shottky diodes

Mic1007 months ago

thanks to :)

her is the kicad PCB projet in zipped file in my i've remplaced the 4148

diodes by shottky diodes

http://sdrv.ms/1aJznbw

pyrohaz (author)  Mic1007 months ago

Them 3d plots are great! Is that a part of kicad? I'm still used to working with eagle haha

Mic100 pyrohaz7 months ago

yes is part of kicad

pyrohaz (author)  tiecheap7 months ago

Cheers! :)

pyrohaz (author)  gamystuffed7 months ago

Thank you!

pyrohaz (author)  craniumfurbelow7 months ago

Thanks :)

pyrohaz (author)  nativemedia7 months ago

Cheers! :)

vandhika11 months ago
im newbie to electronics and want to learn. this project suites me as it seems easy to be done and i need distance meter that can be logged.

if build this, do i need the oscilloscope? is all component typical so i can use your constant (Normalize_constant, etc)?
pyrohaz (author)  vandhika11 months ago
Hey, you don't need an oscilloscope to do this project at all fortunately though one would definitely help to debug it. With hope, if you follow the build instructions directly, it should fully work! All of the component values will work with the current values.
BunnyRoger12 months ago
Very good Instructable!!!
pyrohaz (author)  BunnyRoger11 months ago
Cheers!
Awesome instructable!!
pyrohaz (author)  Amanda Culbert11 months ago
Thank you :D
MAApleton1 year ago
Very cool. Definitely one of my favorites.
pyrohaz (author)  MAApleton11 months ago
Thanks a bunch!
Thats fabulous...
1-40 of 57Next »