How to Make a IR Proximity Sensor at Home

by NEW PEW in Circuits > Sensors

122163 Views, 539 Favorites, 0 Comments

How to Make a IR Proximity Sensor at Home

How To Make Infrared Proximity Sensor
0.jpg
1.jpg
Schema IR.jpg

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.

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.

The appendices contain a simple diagram to keep the project clear.

Supplies

  • IR LED
  • Photodiode
  • Green LED
  • 2 BC547 transistors
  • 100 Ohms resistor
  • 47K resistor
  • 9V Battery
  • 9V Battery connector

BC 547 Transistors

2.jpg
50.jpg
3.jpg
4.jpg

A transistor is a device mostly used for switching purposes. As one of the sizable semiconductor devices, the transistor has found use in great digital applications such as embedded systems, digital circuits, and control systems. In both digital and analog domains transistors are substantially used for exceptional utility usage like amplification, logic operations, switching and so on.

In this project we use the transistors as a switch. A transistor conducts current across the collector-emitter path only when a voltage is applied to the base. When no base voltage is present, the switch is off. When base voltage is present, the switch is on. To provide the LED with sufficient voltage, we use the first transistor, which is controlled with the signal from the photodiode, to control the second transistor. This gives the LED power directly from the battery.

Solder the emitter of transistor 1 to the base of transistor 2.

IR Led

5.jpg
6.jpg
7.jpg
8.jpg
9.jpg
10.jpg
11.jpg

Solder the positive connection of the IR led to the collector connection of both transistors. Cut off the other connection a bit (we need space for the resistor here).

Resistor 100 Ohm

12.jpg
13.jpg
14.jpg
15.jpg
16.jpg

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.

Green LED

17.jpg
18.jpg
19.jpg
20.jpg
21.jpg

Bend the pins of the LED. Solder the green LED with the + side to the emitter of transistor 2.

Resistor 47K

22.jpg
23.jpg
24.jpg

Connect the 47K resistor between the - terminal of the LED and the BASE terminal of transistor 1.

Photodiode

25.jpg
26.jpg
27.jpg
28.jpg

Now the photodiode is connected across the collector and base of transistor 1. Bend the pins of the photodiode so that it fits properly. Solder the connections.

Finish Off

29.jpg
30.jpg
31.jpg
32.jpg
33.jpg
34.jpg

Bend the pin of the 100 Ohm resistor. Connect it with a rest piece to the negative connection of the green LED.

Connecting the Power Supply

35.jpg
36.jpg
37.jpg
38.jpg

Fit a 9V battery connector to the sensor. The red cable to the positive connection, the black to the negative.

Ready!

How To Make Infrared Proximity Sensor
34.jpg
0.jpg
39.jpg
40.jpg
41.jpg

The sensor is ready! Connect a 9V battery to the connector and the sensor will work.

If the LED stays on, the IR LED or the photodiode may have to be bent slightly so that the infrared beam does not hit the photodiode (if it is not disturbed).

Have fun with this project!