Vous êtes sur la page 1sur 15

Proximity Sensor Project

Using Sharp Distance Measuring Sensor Unit


(Analog Output Type) and Arduino Uno Board
Project Objective
• This is an investigative project to fulfill the CO4: Develop team-
oriented project for interfacing data acquisition system with
applications. [PO10]
• Learn how the sensor works.
• Learn how to integrating hardware with Arduino.
• Learning and tinkering with electronics and coding.
• Learn how to program the Arduino Uno microcontroller and improve
our skills about electronics and use it in the real world.
Real Industrial Application

• Measure the distance of target objects or materials through the air


using “non-contact” technology. They measure distance without
damage and are easy to use and reliable.
• Machinery and processes in a wide range of industries use distance
measurement sensors where size or position feedback is required:
printing, converting, robotics, material handling, transportation and
more. For example;
• Positioning & Locating
• Dimensioning & Selecting
Positioning & Locating
• Distance measurement sensors are used to control or indicate the
position of objects and materials.
• A proportional analog signal is often sent to a PLC or motor drive,
such as a web or cable loop control, to synchronize the material
transfer between two machines.
• Distance feedback can be displayed to an operator to manually
position a vehicle or object being handled.
Dimensioning & Selecting

• Distance measurement sensors can determine the


dimensions of objects such as height, width and
diameter, using one or more sensors.
• Items can be selected or rejected based on their
dimensions or profiles, such as determining whether
an object on a conveyor is upside down or not, by
using the sensor’s timing and distance features.
Bill Of Material (BOM)
• 1 unit IR distance sensor SHARP GP2Y0A02YK0F
• 1 unit Arduino Uno Board
• 1 unit USB Cable
• 1 unit Computer
• Arduino Firmware Version 1.8.7
• 3 pieces Wires
IR Distance Sensor SHARP GP2Y0A02YK0F
• GP2Y0A02YK0F is a distance measuring sensor unit, composed of an
integrated combination of PSD (position sensitive detector), IRED
(infrared emitting diode) and signal processing circuit.
• The variety of the reflectivity of the object, the environmental
temperature and the operating duration are not influenced easily to
the distance detection because of adopting the triangulation method.
• This device outputs the voltage corresponding to the detection
distance. So this sensor can also be used as a proximity sensor.
• Distance measuring range : 20 to 150 cm
• Analog output type
• Consumption current : Typ. 33 mA
• Supply voltage : 4.5 to 5.5 V
Arduino Uno R3 Board
• The Arduino Uno is a microcontroller board. It has 14
digital input/output pins (of which 6 can be used as PWM
outputs), 6 analog inputs, a 16 MHz ceramic resonator, a
USB connection, a power jack, an ICSP (In-Circuit Serial
Programming) header, and a reset button. It contains
everything needed to support the microcontroller; simply
connect it to a computer with a USB cable or power it
with a AC-to-DC adapter or battery to get started.
• The Arduino Uno can be programmed with the Arduino
software
• Arduino uno microcontroller can sense the environment
by receiving input from a variety of sensors and can affect
its surroundings by controlling lights, motors, and other
actuators. The microcontroller is programmed using the
Arduino programming language (based on Wiring) and
the Arduino development environment (based on
Processing).
Project Implementation Flow Chart

Setup hardware
Verify correct Upload and run
(hook up sensor
COM Port code
to arduino board)

Install arduino Verify selected


Take the result
firmware board

Connect arduino
Write code and
board using a USB
verify
cable
Hardware Setup
Program
Code
Taking the Results
distance (cm) reading (V)
0 1.22
5 1.56
10 2.50
15 2.68
20 2.44
40 1.46
60 1.00
80 0.76
100 0.63
110 0.57
120 0.53
130 0.51
140 0.49
150 0.47
Comparison Between
Experiment and Datasheet Graph
OUTPUT (V) VS DISTANCE (CM) GRAPH
3.00

2.50

2.00

1.50

1.00

0.50

-
0 20 40 60 80 100 120 140 160
Conclusion
• Through this project, we learn how the sensor works and how to
make it usable using microcontroller (Arduino Uno R3 Board).
• We can explore more knowledge about electronic and others
technology and application.
Thank You

Vous aimerez peut-être aussi