Lab - 13 - PhotoInterupter and Proximity Sensor
Lab - 13 - PhotoInterupter and Proximity Sensor
Submission profile
1
2
Performance Objective
To understand the working principle of photointerruptor and proximity sensor
To design circuits based on photointerruptor
To interface photointerruptor with Arduino UNO
To design circuits based on proximity sensor
Equipment
DC Power Supply
Multimeter
Components
Photointerupptor
Proximity Sensor
Arduino UNO
Bread Board/Connecting Wires
Resistors
LEDs/Buzzers
Photointerrupter
A photointerrupter, also called a photogate, combines an infrared LED emitter to produce
an optical light path and an infrared detector to sense when the light path is broken. Both devices
are housed in the same package so no mechanical adjusting is needed. On the side of the
transistor there is a daylight blocking filter to make the photointerrupter less sensitive to ambient
light. A photointerrupter serves as the basis for position and speed measurement when combined
with timers and suitable targets of alternating opacity and transparency.
There are various different kinds of photo interrupter, different shapes and different sizes
but all do the same job.
Photointerrupter Operating principle
Current flows to the LED, causing it to light up. This light enters the phototransistor,
resulting in current flow.
Object detection is enabled by detecting the change in transistor current due to the
presence/absence of a screen.
3
F igure 9.1:
P hotointerruptor pin diagram and s chemati c diagram
4
Activity 1
Implement the circuit given in Fig 9.2 and observe the output.
Proximity Sensors
A proximity sensor is a sensor able to detect the presence of nearby objects without any physical
contact. A proximity sensor often emits an electromagnetic field or a beam of electromagnetic
radiation (infrared, for instance), and looks for changes in the field or return signal. The object
being sensed is often referred to as the proximity sensor's target. Different proximity sensor
targets demand different sensors. For example, a capacitive proximity sensor or photoelectric
sensor might be suitable for a plastic target; an inductive proximity sensor always requires a
5
metal target. Proximity sensors can have a high reliability and long functional life because of the
absence of mechanical parts and lack of physical contact between the sensor and the sensed
object.
Proximity sensors are also used in machine vibration monitoring to measure the variation in
distance between a shaft and its support
Difference between 3 wire PNP and NPN proximity when describing 3 wire sensor
Most industrial proximity sensors (inductive, capacitive, ultrasonic and photo electric) are solid
state. The term solid state refers to the type of components used within the sensor. Solid state
electronic components such as transistors are used to switch the output of the sensor upon
detection of an object.
Two specific types of 3 wire sensors are available; PNP and NPN. The difference is a result of
the internal circuit design and type of transistors used. A key point to observe is that PNP and
NPN has nothing to do with whether the sensor is normally open (N/O) or normally closed
(N/C), i.e. a PNP sensor may be either N/O or N/C as can an NPN be either N/O or N/C.
Why two types?
The selection of a PNP sensor verses an NPN sensor is determined by the nature of the circuit
the device is to be used in. When used in a traditional relay type control circuit, it is
normally possible to use either the PNP or the NPN type of sensor as shown in figure 9.3. PNP
sensors tend to be more commonly used.
6
Figure 9.3: Traditional relay
type control circuit
Procedures
Testing Different Proximity Switches:
Proximity switches will be provided. Each group will need to connect power (+12V) and
ground to the proximity switches and read the output voltage with a DMM. Most of the
proximity switches will have a small wiring diagram label attached to the sensor or supplied
with the packaging. A typical wiring arrangement is shown in Figure 9.4. If the resistor symbol
is shown on the label, then try a 10 k resistor first. If no resistor symbol is shown on the label,
try not using one first. Use a different color wire (orange, yellow, blue, etc.) for the output from
each proximity switch.
Figure 9.4: Typical proximity Switch Wiring Figure 9.5: Sensing Distance Definition
Activity 3
Implement below Circuit:
7
Figure 9.6: Circuit Diagram
1. Record the approximate distance at which the object is sensed, i.e., when the LED signal on
……………...
2. Record whether the light goes on when object is sensed (NO-“normally open”), or if the light goes
off when object is sensed (NC-“normally closed”).
Observation: ………………………………..
3. Record any effects due to the target being “at an angle” to the sensor.
Observation: …………………………………
Review Questions:
(1) Write few applications of Photointerruptor
8
9