Easy Infrared Proximity Sensor
Easy Infrared Proximity Sensor
by NEW PEW
In this Instructable I show you how to make a simple infrared sensor for hobby projects and to learn how an infrared
sensor works.
I used an infrared sensor with one of my previous Instructables (the automatic hand sanitizer dispenser) but I didn't
know exactly how this sensor worked so I dived into it a little further.
Video tutorial:
//www.youtube.com/embed/PeyQez7_p-4
An IR sensor is basically a device which consists of a pair of an IR LED and a photodiode which are collectively called a
photo-coupler or an opto-coupler. The IR LED emits IR radiation. The IR radiation is emitted in a beam from the IR LED.
When this beam is disturbed, it widens and "hits" the photodiode. The photodiode converts the IR light into an electrical
current. Because the output of the photodiode is not constant, I opted for a circuit with BC547 transistors. I will explain
how this works in step 1.
Supplies:
IR LED
Photodiode
Green LED
2 BC547 transistors
100 Ohms resistor
47K resistor
9V Battery
9V Battery connector
A transistor is a device mostly used for switching no base voltage is present, the switch is o . When base
purposes. As one of the sizable semiconductor devices, voltage is present, the switch is on. To provide the LED
the transistor has found use in great digital applications with su cient voltage, we use the rst transistor, which
such as embedded systems, digital circuits, and control is controlled with the signal from the photodiode, to
systems. In both digital and analog domains transistors control the second transistor. This gives the LED power
are substantially used for exceptional utility usage like directly from the battery.
ampli cation, logic operations, switching and so on.
Solder the emitter of transistor 1 to the base of transistor
In this project we use the transistors as a switch. A 2.
transistor conducts current across the collector-emitter
path only when a voltage is applied to the base. When
Solder the positive connection of the IR led to the collector connection of both transistors. Cut o the other connection a
bit (we need space for the resistor here).
The IR led needs a 100 Ohm resistor. Solder this to the IR LED.
It does not matter in which direction or on which side of the IR LED. A resistor works the same in both directions.
Bend the pins of the LED. Solder the green LED with the + side to the emitter of transistor 2.
Step 6: Photodiode
Now the photodiode is connected across the collector and base of transistor 1. Bend the pins of the photodiode so that it
ts properly. Solder the connections.
Bend the pin of the 100 Ohm resistor. Connect it with a rest piece to the negative connection of the green LED.
Fit a 9V battery connector to the sensor. The red cable to the positive connection, the black to the negative.
How to Make a IR Proximity Sensor at Home: Page 10
Step 9: Ready!
//www.youtube.com/embed/PeyQez7_p-4
Very handy circuit that can also be used to check IR remote controls. Using two transistors in this
way is known as a "Darlington" configuration, and it is a very good way to amplify tiny currents
(like the current generated in the photodiode).
https://www.youtube.com/watch?v=_M8FQIPi1qk
https://www.youtube.com/watch?v=_M8FQIPi1qk