Newsgroups: comp.robotics
Path: brunix!sgiblab!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!bgsuvax!rlee
From: rlee@bgsu.edu (Bob Lee)
Subject: IR proximity circuit -- by popular demand
Message-ID: <C5HtzM.BBL@andy.bgsu.edu>
Sender: rlee@andy.bgsu.edu (Bob Lee)
Organization: Bowling Green State Univ.
Date: Wed, 14 Apr 1993 21:50:02 GMT
Lines: 118

===================
IR DETECTOR CIRCUIT
===================


                           30Hz BANDPASS FILTER          gain = 1
                                                            Q = 4


        +5V                  .1uF
         |                    ||            330K
         \            +-------||----+-------/\/\/--------+
         /            |       ||    |                    |
         \ 100K       |             |                    |
         /            |             |                    |
         \            |             |                    |
         |            |      .1uF   |     ___            |
         |     39K    |       ||    |    |   \___        |
         +----\/\/\---+-------||----+----|-      \___    |
IR       |            |       ||         |           \   |
Detector |            |                  |   LM3900   >--+---+
         |            |                  |        ___/       |
    ||---+            \             +----|+   ___/           |
    ||                /             |    |___/               |
    ||---+            \ 5.6K        \                        |
         |            /             /                        |
         |            \             \ 1M                     |
         |            |             /                        |
         |            |             \                        |
        GND          GND            |                        |
                                   +5V                       |
                                                             |
                                                             |
                                                             |
                        +------------------------------------+
                        |
                        |
                        |
                        |
                        |
                        |                  ___
                        |        120K     |   \___
                        +-------\/\/\-----|-      \___
     SCHMITT TRIGGER                      |           \
                                          |   LM3900   >--+------ Vout
                                          |        ___/   |
                                     +----|+   ___/       |
                                     |    |___/           |
                                     |                    |
                                     |                    |
                           1.1M      |         1.1M       |
                     +5V --\/\/\-----+---------\/\/\------+
                                                          |
                                                        ----- 1uF
                                                        -----
                                                          |
                                                          |
                                                         GND

NOTES:
~~~~~
- The LM3900 is a quad unipolar op-amp IC. Vcc of this chip must be on +5V DC.
- I found that the 100K pull-up resistor on the IR detector provided the optimum
  sensor performance. Any increase or decrease in the resistance caused a
  decrease in the signal quality from the IR detector.
- The 0.1uF capacitors that are part of the filter eliminate the effects of
  DC light, such as direct sunlight, something that causes an unfiltered IR
  passive detector to become swamped.
- The H->L and L->H threshold voltages in the Schmitt trigger can be changed by
  adjusting the 120K and 1.1M resistors.
- The 1uF capacitor was added to eliminate voltage spikes at the H->L and L->H
  trasitions.
- Vout is a TTL level signal that outputs a logical high 30 times/second
  when an object has gotten within 6-12 inches of the IR detector.
- I chose to run Vout into a 7406 open collector with a 4.7K pull-up resistor.
  This way I knew it would interface properly with the 6801 and would be
  buffered as well.





==================
IR EMITTER CIRCUIT
==================


                    +5V                            555         +5V
                     |                            TIMER         |
                     /                        +-----------+     |
                     \                       1|           |8    |
                     / 10ohms        GND -----|GND     Vcc|-----+
                     \                        |           |     \
                     /                        |           |     /
                     |                       3|           |     \ 2.2K
                     +------------------------|OUT        |     /
                     |                        |           |7    \
                     |                        |      DISCH|-----+
                     |                       4|_          |     \
         IR LED  ||--+               +5V -----|R          |     /
                <||                           |           |     \ 200K
                 ||--+                        |           |     /
                     |                       2|           |6    \
                     |                    +---|TRIG  THRES|-----+------+
                     |                    |   |           |     |      |
                     |                    |   +-----------+     |      |
                    GND                   |                     |    ----- .1uF
                                          |                     |    -----
                                          +---------------------+      |
                                                                       |
                                                                      GND

NOTES:
~~~~~
- Adding more IR LED's will increase the range of the IR detector.
- The signal on pin 3 of the 555 is 30Hz and has a duty cycle of 50%
- Due to the very small pull-up resistor the 555 sinks about 109mA. The specs
  say the 555 can sink up to 225mA so it's well below the danger level.
