Gadget freaks, model railroaders, roboticists or cat-hosts will love the versatility of the Sharp IS471 infrared proximity detector. It is the size of a transistor, operates over the 4-16 volt range, and can detect objects about 4-9 inches away by reflected IR pulses.
The basic implementation requires only the IS471, an IR LED and a 9 volt battery and can be built by most any tinkerer in less than 10 minutes.

Step 1: Gather the Parts

The parts you'll need are:
1) the Sharp IS471 (available for $2 at: http://www.junun.org/MarkIII/Info.jsp?item=46 or $3 from www.digikey.com, and others)
2) a 940nm IR emitter (such as the Fairchild QED-234, available from www.mouser.com for about 50 cents, and other sources)
3) Something to mount the above two items on. You've got a lot of options here. There are several excellent Instructables on making your own PCBs. If you want to try it out before doing the etching thing you can use a pluggable breadboard (not shown) or go with a small piece of perf-board (pads on .100" centers, shown at bottom left).
4) 9 volt batter and battery clip
5) Soldering iron & solder, diagonal cutters (if not going the breadboard route).

If you'd rather not etch, but still want something snazzy you might drop me a line about the very small custom perf-boards I had made at www.pad2pad.com (shown at bottom right), priced at $2 each for the bare boards, postage included).

Step 2: Putting It Together

Insert the leads of the IS471 into the perfboard close to an edge. The leads will need to be spread out just a bit, since they are spaced more narrowly than the average perfboard holes/pads. Note that the flat side of the IS471 needs to face outward, since this is the side that "sees".

Bend the IR LED to the right as shown below. With the LED positioned as shown the short lead (the cathode) is on top.

Step 3: Mount the IR LED

The LED is best mounted to the bottom of the perfboard as shown below. The board will act as a light barrier, so the IS471 will only see light that is reflected off objects rather than direct illumination from the IR LED, though you may need to add a strip of black tape when assembly is completed to prevent the IR pulses from shining through the holdes in the perfboard.

Position the IR LED so the short lead (cathode) of the IR LED is two holes behind pin 3 of the IS471, and the anode (long leg) of the LED is two holes behind pin 2 of the IS471.


Step 4: Make Some Connections

Time to get the soldering iron hot!
1) Tack down all the pins of the IS471 and the IR LED just to keep them in place.
2) Connect the cathode (short leg) of the IR LED to pin 4 of the IS471 (just bend the leads together then solder to make this connection).
3) Connect the anode (long leg) of the IR LED to pin 1 of the IS471 (just bend the leads together then solder to make this connection).
4) Solder the red wire from the 9volt battery clip to the IS471 pin 1/IR LED anode connection.
5) Solder the black wire from the 9volt battery clip to pin 3 of the IS471.
6) Solder a wire to pin 2 of the IS471. This is the "Low on Detect" signal.

Step 5: Test It!

Now you get to test your new IR proximity detector!

Before snapping on a battery, check your work for solder bridges, there should be no connections other than those given in the previous step.

To test your proximity detector:
1) Connect the battery, then connect the leads from a volt-meter between the black (ground) wire of the battery clip and the "Low on Detect" wire.
2) Point the detector off into empty space and you should see about 8 volts on the meter. (Sometimes just laying it on a tabletop will allow enough reflection to trigger it, so you might have to raise it up just an inch or three).
3) Put your hand about a foot in front of the detector and slowly move it closer while watching the meter. Somewhere in the 4-9 inch range you will see the meter fallto 0 volts. You have been DETECTED!

NOTE: Location and placement is important. Sunshine will "blind" the receiver, greatly decreases detection range. I've found that just a little bit of a sun-shade takes care of this most of the time.

Step 6: Fun Time!

Just making a meter twitch isn't very flashy, especially to your non-geek friends.

How about triggering a Radio Shack 20 Second Record/Play module? This is good for adding sounds to a model train layout, or mysteriously playing the theme from "Twilight Zone" when you wave your hand over it? Or using it to automatically play a startling noise when triggered by your cat jumping onto your work-bench?

Step 7: Mysterious Sounds!

Connect your detector module to the circuit board of the Record/Play module according to the picture below.

Step 8: Controlling a Relay

For larger tasks you might want to use the proximity detector to control a relay.
I've used the circuit below and find it very versatile. You can hang several detectors off it and it will pull the relay if any of them see an object.

Step 9: Whatever You Want It to Do...

The open collector output of the IS471 makes it perfect for so many things it's hard to decide just which way to go.

Robot builders love it for non-contact obstacle detection, pet-owners can use it as a doorbell for their pet doors, model railroaders can trigger sounds or animations without reed-switches or track cuts... heck, I jsut like making things happen with a wave of my hands (just like in the sci-fi movies).

<p>OffLogic: First off.....I am - NOT - a &quot;circuit designer&quot;!!! But, I - AM - an &quot;Electronics Builder&quot;, in that I am capable of designing various types of mechanical chassis/enclosures/housings - AND - the Printed Circuit Boards which go into my mechanical designs. I thought I would mention that first.</p><p>I am needing a proximity sensor circuit schematic which can be mounted into a 1U rack-mount chassis and be able to detect the opening and closing of a rear rack-door, which would be between 4&quot; to less than 12&quot; away from the sensor. When a technician opens the rack-door, an internal light would turn-on and remain on until the door is closed. Basically, the same thing as a &quot;refrigerator door light&quot;.</p><p>I have already designed the rack chassis and have obtained some LED lighting panels as the light source. All I need now is a &quot;hands-free&quot; proximity sensor or a motion detector as the trigger to turn-on this internal rack light. The reason for this &quot;rack-light&quot; is so a technican can work on cables and/or equipment and not have to worry about having a work-light to start with, let alone having to try to hold onto this light or finding a place to clamp it onto. A problem looking for a solution and I've got it. Can you assist me on this here? THANKS!!!</p><p>You can reach me at: arrakis1200@gmail.com</p><p>Regards,</p><p>JBWilliams</p><p>/</p>
<p>As far as I can understand from what you wrote , you want an internal light controlled by the opening of the door ?</p><p>If you can share an image of the chassis , It would be great .</p><p>Till then , I am pretty sure you can use a Bump switch (240V ) for the light .</p>
<p>i need to make a proximity sensor to attach to a toolbox so if someone walks near it will sound an alarm, is there a way of just a single beam with a range of about 2 to 3 feet </p>
<p>Can I not connect the IR led to the GLout (pin 4)? My understanding of the datasheet is that the sensor only responds to a specific frequency, so the IR led really must be connected to it. I wanted to include an transistor-based amplifier to the IR led so that I can control the range easily by adjusting the gain/current through the IR led.</p><p>Are there other ways to improve the range? What I really want is a proximity detector whose range is easily adjustable (e.g., by use of trimmer resistor).</p>
<p>I found IS485/486 to be more appropriate (theoretically) for what I want. Cheaper too.</p>
<p>Adding a small piece of shrink tubing to the LED will keep a side view from triggering the sensor.. . . Can be used for directional sensing. . . . I have used this method since I found out that transistors make good light sensors, about 1955. . . Have fun. . . </p>
<p>is the trip-distance adjustable on this project? thx!</p>
Does anyone have a recommendation for a proximity sensor that can detect 1' - 25'? Basically I'd like to make a set of bat-ears for my completely blind grandmother. I'm thinking something that steadily puts out a tone over a 1-ear headphone. Closer things get higher tones, more distant things get lower tones..etc. Any suggestions? I'm a complete noob at this, but I'm smart & learn quickly.
I might recommend looking at some of the ultrasonic modules available at www.sparkfun.com or a something IR based on the Vishay TSOP series. Send me an email and we can talk.
<p>Any solution found for this one? thx</p>
<p>Anyone interested in an Instructable on a programmable PIC based prox detector good for several feet?</p>
<p>Yes Please, I need my sensor to work for at least 2-3 feet.</p>
Lemme dig up my notes and codes and schematics for the PIC-based project. It was good to 4 feet or so, I generally was quoting 'one meter' using high output IR-LEDs. <br>It was a pretty easy intro to making SMD PCBs then assembling the same the easy way. &quot;I know stuff&quot;, as the saying goes.<br>Let me get to work on the quick+cheap PIC-based dingus I cooked up using an agile PWM LIDAR (for individuation of competing units)
<p>Just brouse the Sharp opto-electronics lines on mouser.com or digikey.com you'd be amazed at the sensors out there.</p>
<p>Laz, nah, it's only rated at 50ma max. Drive a transistor or gang a bunch of 40106 or 4016 to give it a kick easily. Go browse Mouser for driver ICs.</p>
I'm unable to find IS471F can you tell me alternative of it..,,,n please reply as much as possible....it's urgent
I'm not aware of any alternate parts off the top of my head. <br>I know they have them in stock here: http://www.junun.org/MarkIII/Info.jsp?item=46. <br>You might be able to put something together with a tone-decoder (LM567), led and a phototransistor or something.
<p>I was able to make a pretty nifty prox detector that worked at 3-4 feet using a low pin count PIC, IR LED and IR detector. might look at that?</p>
<p>Does the final product have a power out for when the sensor senses whatever is in range? I plan to add a piezo buzzer.</p>
Brilliant!!! This is just one half of a circuit i am trying to build. <br> <br>I am trying to activate upto 12 LEDS consecutively with each detection from the proximity sensor. <br> <br>To make the circuit more bespoke i would ideally like to have the 12 LEDs in 4 banks containing 3 LEDs each. From a four-position selector switch I would like to choose whether the LEDs 1 - 3 light, 1 - 6 light, 1 - 9 light or 1 - 12 light. <br> <br>Any help greatly appreciated.
Sounds like you've got it pretty well figured out.
I'm unable to find IS471F can you tell me alternative of it..,,,n please reply as much as possible....it's urgent
Which program do you use to draw your circuits schematics?
I'd like a LED to light up when the detector detects something, is there a simple way to do that? <br> <br>Thanks for the help.
Great thank you for the quick reply, just ordered the dectors.
Nice circuit. Two questions... how long did it takefor the company to make the custom perf boards and do you know if these components are available at Radio Shack? Thanks!
I used Pad2Pad to handle the fab, and pushed it out to 3 week turn to keep it super cheap (under 20 cents per board). And, no, gotta order the detectors from the Internets.
Im making an array of LEDs , i want them to turn on and off with something like this, would it be possible??
The datasheet is at http://www.junun.org/MarkIII/datasheets/IS471F.pdf <br>Raw output is good for sinking 50mA.
Subject to the raw current output of the IS471, yes. <br>Otherwise add a transistor buffer or a driver chip to up the current capacity.
<a href="http://sharp-world.com/products/device/lineup/data/pdf/datasheet/gp2y0a21yk_e.pdf" rel="nofollow">ir-detector </a>for about 10$ you suppply 5 V you get an analog output .5 to 4 volt. No hassle garantee!
Yeah, that's a great device if you need proportional analog output.<br>It's expensive, but great if you don't just want a simple OC output!
Radio shack has changed this chip (276-1323) recently (somewhere around January 2008). If you get it from radio shack make sure it's the one you want!
thank u
does it give analog output???<br>coz it's not clear from the instructions that i does...<br>and also is IS741 available in india???
Nope, it's a discrete logic level, 1 or 0.<br>Not sure about availability in India, check local Sharp distributors or order via Junon over the interwebs.
Is the Vcc using 9v? because base on the datasheet of the QED234 Fairchild, it says tht the forward voltage is only 1.6 volt and a forward current of 100mA. Wouldnt it spoil the IR LED at tht voltage? Please educate me as i'm just a newbie in this sort of things
If you hooked up an LED straight to the 9V batt it wouldn't work for long! :)<br>The Sharp part is made to handle this matter. It works just fine, trust me (as Bernie Madoff used to say).
Also if i run the 5V my PIC works on? Nice sensor by the way
Yep, seems to work fine from 5VDC.<br>I think 4.5VDC will be at the lower limit, though, so no 3.3VDC.
Stumbled onto all this info. Really exciting even for an ol' guy like me. <br>Far too many years from making PCBs and little widget circuitry. <br>At 80 yrs. old, am again starting a new company and the IR LED and Sharp IS471 may solve a problem--- better, create an opportunity. <br>I'm in Folsom, CA Home 916 989-3005 <br>Office in Fair Oaks, CA <br>Would like to find some people who are into making PCBs and Proximity sensors. I need some help because my electronic savvy is too far lost in deep core. <br>And, possible opportunity for anyone looking to join an emerging company. <br> <br>Carl Rea Jordan reajrdn@yahoo.com www.optx-ltd.com (emerging) <br>I have several other start-up and need some entrepreneur-type minds.
I'm sending you an email, Carl. Curiosity and all. :)
Not sure how hard it would be, but could you setup the &quot;Alert&quot; to go off when the IR Detector sees the IR light? So reverse basically? would it be a NOT chip or is there an easier way?<br><br>I want to setup an IR LED on one side of the cat food container and the detector on the other side, and have it light up a separate light when the food is low enough for the IR LED's path to not be blocked by cat food... so the path would be normally blocked...<br><br>Thanks!
It's doable. The detector output is good to 50mA at up to 16V.<br>Just reverse the logic, so that your device operates on a logical 1 instead of a 0. For the step 8 example, you'd use an NPN transistor instead of the PNP shown.<br>Or an inverter chip, if you like.
Nice instructable. For the lazy amongst us, check out optoswitches such as the &quot;Photo Reflective Sensor (SEN130A3B)&quot; from Seeedstudio. Disclaimer: I'm not related to Seeedstudio in any way, it just happens that I ordered a couple of them the other day and had the part number available.
Hi there author, i would like a LED get triggered when i move my hand in front of the detector. How do i make it happen, should i connect the positive side of the LED to the V-out pin and the negetive pin of the LED to the negetive side of the power source.
Yeah, what steveastrouk said!<br>Sorry, I've been off for a while.
Nice little project BTW.
No, connect the LED anode to the V+ pin, connect the LED cathode (via a resistor) to the Vo pin.

About This Instructable




More by offlogic:A very simple proximity detector 
Add instructable to: