Introduction: A Very Simple Proximity Detector

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.

DON'T MAKE ANY CONNECTIONS YET, THAT'S FOR THE NEXT STEP.

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).

Comments

author
JerryW73 made it!(author)2016-11-26

OffLogic: First off.....I am - NOT - a "circuit designer"!!! But, I - AM - an "Electronics Builder", 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.

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" to less than 12" 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 "refrigerator door light".

I have already designed the rack chassis and have obtained some LED lighting panels as the light source. All I need now is a "hands-free" proximity sensor or a motion detector as the trigger to turn-on this internal rack light. The reason for this "rack-light" 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!!!

You can reach me at: arrakis1200@gmail.com

Regards,

JBWilliams

/

author
kmanchanda made it!(author)2016-12-19

As far as I can understand from what you wrote , you want an internal light controlled by the opening of the door ?

If you can share an image of the chassis , It would be great .

Till then , I am pretty sure you can use a Bump switch (240V ) for the light .

author
paul4tune made it!(author)2016-09-28

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

author
ajdajd made it!(author)2015-08-19

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.

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).

author
ajdajd made it!(author)2015-08-19

I found IS485/486 to be more appropriate (theoretically) for what I want. Cheaper too.

author
Odie+Sr.O made it!(author)2015-04-05

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. . .

author
johnyradio made it!(author)2015-01-05

is the trip-distance adjustable on this project? thx!

author
wiglessbuzzard made it!(author)2008-01-10

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.

author
offlogic made it!(author)2008-01-13

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.

author
johnyradio made it!(author)2015-01-05

Any solution found for this one? thx

author
offlogic made it!(author)2013-01-08

It's possible to add a flip-flop to do this, but the basic circuit alone won't do this.
The venerable 4013 or a pair of NAND gates can do this nicely.

author
johnyradio made it!(author)2015-01-05

do what? :)

author
offlogic made it!(author)2014-10-06

Anyone interested in an Instructable on a programmable PIC based prox detector good for several feet?

author
Laz4741 made it!(author)2014-10-17

Yes Please, I need my sensor to work for at least 2-3 feet.

author
offlogic made it!(author)2014-10-18

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.
It was a pretty easy intro to making SMD PCBs then assembling the same the easy way. "I know stuff", as the saying goes.
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)

author
offlogic made it!(author)2014-10-06

Just brouse the Sharp opto-electronics lines on mouser.com or digikey.com you'd be amazed at the sensors out there.

author
offlogic made it!(author)2014-10-06

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.

author
rahulkhairnar made it!(author)2013-09-19

I'm unable to find IS471F can you tell me alternative of it..,,,n please reply as much as possible....it's urgent

author
offlogic made it!(author)2013-09-19

I'm not aware of any alternate parts off the top of my head.
I know they have them in stock here: http://www.junun.org/MarkIII/Info.jsp?item=46.
You might be able to put something together with a tone-decoder (LM567), led and a phototransistor or something.

author
offlogic made it!(author)2014-10-06

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?

author
Laz4741 made it!(author)2014-10-06

Does the final product have a power out for when the sensor senses whatever is in range? I plan to add a piezo buzzer.

author
s444kee made it!(author)2013-09-16

Brilliant!!! This is just one half of a circuit i am trying to build.

I am trying to activate upto 12 LEDS consecutively with each detection from the proximity sensor.

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.

Any help greatly appreciated.

author
offlogic made it!(author)2013-09-19

Sounds like you've got it pretty well figured out.

author
rahulkhairnar made it!(author)2013-09-19

I'm unable to find IS471F can you tell me alternative of it..,,,n please reply as much as possible....it's urgent

author
Flanders88 made it!(author)2013-06-25

Which program do you use to draw your circuits schematics?

author
Tobor1977 made it!(author)2013-01-14

I'd like a LED to light up when the detector detects something, is there a simple way to do that?

Thanks for the help.

author
Tobor1977 made it!(author)2013-01-08

Great thank you for the quick reply, just ordered the dectors.

author
offlogic made it!(author)2013-01-08

I can do better than that, I'll just send you a link!
http://www.zen22142.zen.co.uk/ronj/tg1s.html

author
Tobor1977 made it!(author)2013-01-08

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!

author
offlogic made it!(author)2013-01-08

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.

author
esg.827 made it!(author)2012-06-04

Im making an array of LEDs , i want them to turn on and off with something like this, would it be possible??

author
offlogic made it!(author)2012-06-04

The datasheet is at http://www.junun.org/MarkIII/datasheets/IS471F.pdf
Raw output is good for sinking 50mA.

author
offlogic made it!(author)2012-06-04

Subject to the raw current output of the IS471, yes.
Otherwise add a transistor buffer or a driver chip to up the current capacity.

author
fbujold made it!(author)2012-02-10

ir-detector for about 10$ you suppply 5 V you get an analog output .5 to 4 volt. No hassle garantee!

author
offlogic made it!(author)2012-02-11

Yeah, that's a great device if you need proportional analog output.
It's expensive, but great if you don't just want a simple OC output!

author
Davius+Minimus made it!(author)2008-01-03

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!

author
raven1479 made it!(author)2011-12-20

thank u

author
rthapliyal made it!(author)2011-12-11

does it give analog output???
coz it's not clear from the instructions that i does...
and also is IS741 available in india???

author
offlogic made it!(author)2011-12-11

Nope, it's a discrete logic level, 1 or 0.
Not sure about availability in India, check local Sharp distributors or order via Junon over the interwebs.

author
shaunwhite made it!(author)2010-09-28

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

author
offlogic made it!(author)2011-07-02

If you hooked up an LED straight to the 9V batt it wouldn't work for long! :)
The Sharp part is made to handle this matter. It works just fine, trust me (as Bernie Madoff used to say).

author
sde+meeter made it!(author)2011-08-06

Also if i run the 5V my PIC works on? Nice sensor by the way

author
offlogic made it!(author)2011-11-11

Yep, seems to work fine from 5VDC.
I think 4.5VDC will be at the lower limit, though, so no 3.3VDC.

author
reajrdn made it!(author)2011-10-24

Stumbled onto all this info. Really exciting even for an ol' guy like me.
Far too many years from making PCBs and little widget circuitry.
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.
I'm in Folsom, CA Home 916 989-3005
Office in Fair Oaks, CA
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.
And, possible opportunity for anyone looking to join an emerging company.

Carl Rea Jordan reajrdn@yahoo.com www.optx-ltd.com (emerging)
I have several other start-up and need some entrepreneur-type minds.

author
offlogic made it!(author)2011-11-11

I'm sending you an email, Carl. Curiosity and all. :)

author
Mike+Nelson made it!(author)2011-11-04

Not sure how hard it would be, but could you setup the "Alert" 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?

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...

Thanks!

author
offlogic made it!(author)2011-11-06

It's doable. The detector output is good to 50mA at up to 16V.
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.
Or an inverter chip, if you like.

author
cwienands made it!(author)2011-10-11

Nice instructable. For the lazy amongst us, check out optoswitches such as the "Photo Reflective Sensor (SEN130A3B)" 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.

author
amruth made it!(author)2011-06-21

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.

author
offlogic made it!(author)2011-07-02

Yeah, what steveastrouk said!
Sorry, I've been off for a while.

About This Instructable

216,602views

246favorites

License:

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