Robotics 4sensors
Robotics 4sensors
1
Sensor
Definition: a device for sensing a physical variable
of a physical system or an environment.
• Sensors are used in robots for both internal
feedback control and external interaction with the
outside environment.
• The links and joints move sensors such as
potentiometer, encoders, and resolvers send
signals to the controller that allow it to determine
where each joint is.
• There are many different types of sensors
available such as position, velocity, acceleration,
pressure, force/torque, and range finders.
2
The need of sensor in robot
To accurately achieve a task in an intelligent
environment, a robot has to be able to
react dynamically to changes on its
surrounding
• Robots need sensors to perceive the
environment
• Most robots use a set of different sensors
• Different sensors serve different purposes
• Information from sensors has to be
integrated into the control of the robot
3
Environmental Sensors
Provide information about the objects in the
surrounding
• Detect presence of work piece
• Determine position and orientation of work piece
• Provide information about environmental
variables such as temperature, humidity
Information is used by the control computer to
adapt trajectory
4
Classification of Sensors
Sensors a physical element which produces a signal relating
to the quantity being measured.
• Type of sensors: Analog, Digital, Active, Passive
• Analog: Output is Continuous, requires ADC to
interface.
• Digital: the output is in the form of digital signal, can be
directly interfaced to digital system.
• Active sensors: need separate power source to obtain the
output. radar, sonar, potentiometer,
• Passive sensors: these are self generating, produces
electrical signal when subjected to sensed quantity.
Piezoelectric, thermocouple, radioactive…. 5
Classification Cont’d
Proprioception (Internal state) and Exteroceptive
(external state)
• Measure values internally to the system (robot), e.g. battery
level, wheel position, joint angle, etc,
• Observation of environments, objects
Contact and non-contact
• Touch, proximity sensors
• Distance measurement sensors like IR sensor
Visual andnon-visual
• Vision-based sensing, image processing, video camera
6
Characteristics of Sensor
The main characteristics that determines the performance,
economy, ease of application, and applicability of the
sensor.
Cost: the cost of sensor must be considered when a
number of sensors are needed for the robot. The cost of
the sensor must be balanced with the reliability,
accuracy and life of the sensor.
Size: the size of the sensor has an effect on the movement
of the robot joint.
Weight: the weight of the sensors is very important
because it will affect the over all inertia of the robot
and payload.
Type of output: it may be digital or analog. The nature of
the signal determines the requirement of accessories.7
Characteristics Cont’d
Interfacing: the interfacing between the sensor and the
device can become an important issue if they do not
match or if other add-on circuits become necessary.
Resolution: it is the minimum step size within the range of
measurement of the sensor. In a wire-wound
potentiometer, it will be equal to the resistance of one
turn of the wire. For a digital devices with n bits, the
resolution becomes;
Measurement 10
Accuracy vs. Precision
11
Quantities to be measured?
• Linear displacement
Angular displacement
• Velocity,
acceleration
• Force, torque
• Angular rate etc…
12
Sensors Used in Robot
Resistive sensors
bend sensors, potentiometer, resistive photocells, ...
Tactile sensors
contact switch, bumpers…
Infrared sensors
Reflective, proximity, distance sensors…
Ultrasonic Distance Sensor
Inertial Sensors (measure the second derivatives of position)
Accelerometer, Gyroscopes,
Orientation Sensors
Compass, Inclinometer
Laser range sensors
Vision, GPS, …
13
Gas Sensor
Accelerometer Gyro
Metal Detector
Pendulum Resistive
Tilt Sensors Piezo Bend Sensor
Gieger-Muller
Radiation Sensor
Pyroelectric Detector
UV Detector
Resistive Bend Sensors
CDS Cell
Resistive Light Sensor
Digital Infrared Ranging
Pressure Switch
Miniature Polaroid Sensor
Limit Switch Touch Switch
Mechanical Tilt Sensors
IR Modulator
Lite-On IR Radio Shack Solar Cell
Receiver
Remote Receiver
Remote Receiver
Compass Compass 14
Piezo Ultrasonic Transducers
Resistive Sensors
Bend Sensors
• Resistance = 10k to 35k
• As the strip is bent, resistance increases Resistive Bend Sensor
Potentiometers
• Can be used as position sensors for sliding
mechanisms or rotating shafts
• Easy to find, easy to mount Potentiometer
15
Applications
Sensor
Sensors
• Wall Following/Collision
Detection
Sensor
• Weight Sensor
16
Inputs for Resistive Sensors
V
Voltage divider:
R1
Vsense
You have two resisters, one
R2
is fixed and the other varies,
as well as a constant voltage A/D converter
R2
Vsense V micro
R1 R2
V
Comparator:
If voltage at + is greater than at -,
digital high out
17
Infrared Sensors
Intensity based infrared
• Reflective sensors
• Easy to implement
• susceptible to ambient light
Modulated Infrared
• Proximity sensors
• Requires modulated IR signal
• Insensitive to ambient light
Infrared Ranging
• Distance sensors
• Short range distance measurement
• Impervious to ambient light, color and reflectivity of
object
18
Intensity Based Infrared
Break-Beam sensor
Reflective Sensor
Increase in ambient light
raises DC bias
voltage
• Easy to implement (few
components) time
• Works very well in controlled voltage
environments
• Sensitive to ambient light
time
19
IR Reflective Sensors
Reflective Sensor:
• Emitter IR LED + detector photodiode/phototransistor
• Phototransistor: the more light reaching the phototransistor, the more
current passes through it
• A beam of light is reflected off a surface and into a detector
• Light usually in infrared spectrum, IR light is invisible
Applications:
• Object detection,
• Line following, Wall tracking
• Optical encoder (Break-Beam sensor)
Drawbacks:
• Susceptible to ambient lighting
Provide sheath to insulate the device from outside lighting
• Susceptible to reflectivity of objects
• Susceptible to the distance between sensor and the object
20
Modulated Infrared
Modulation and Demodulation
• Flashing a light source at a particular frequency
• Demodulator is tuned to the specific frequency of light flashes.
(32kHz~45kHz)
• Flashes of light can be detected even if they are very week
• Less susceptible to ambient lighting and reflectivity of objects
• Used in most IR remote control units, proximity sensors
21
IR Proximity Sensors
amplifier bandpass filter integrator
limiter demodulator comparator
Proximity Sensors:
• Requires a modulated IR LED, a detector module with built-in
modulation decoder
• Current through the IR LED should be limited: adding a series resistor
in LED driver circuit
• Detection range: varies with different objects (shiny white card vs.
dull black object)
• Insensitive to ambient light
Applications:
• Rough distance measurement
• Obstacle avoidance
• Wall following, line following
22
IR Distance Sensors
Basic principle of operation:
• IR emitter + focusing lens + position-sensitive detector
Modulated IR light
23
IR Distance Sensors
Sharp GP2D02 IR Ranger
• Distance range: 10cm (4") ~ 80cm (30").
• Moderately reliable for distance measurement
• Immune to ambient light
• Impervious to color and reflectivity of object
• Applications: distance measurement, wall following, …
24
Basic Navigation Techniques
Relative Positioning (called Dead-reckoning)
Information required: incremental (internal)
Velocity
heading
With this technique the position can be updated with respect
to a starting point
Problems: unbounded accumulation error
Absolute Positioning
Information Required: absolute (external)
Absolute references (wall, corner, landmark)
Methods
Magnetic Compasses (absolute heading, earth’s magnetic field)
Active Beacons
Global Positioning Systems (GPS)
Landmark Navigation (absolute references: wall, corner, artificial
landmark)
Map-based positioning
25
Sensors Used In Navigation
Dead Reckoning External Sensors
Odometry (monitoring the • Compass
wheel revolution to compute the • Ultrasonic
offset from a known starting
position) • Laser range sensors
Encoders, • Radar
Potentiometer, • Vision
Tachometer, … • Global Positioning
Inertial Sensors (measure System (GPS)
the second derivative of position)
Gyroscopes,
Accelerometer, …
26
Encoders
It generates an output digital signal for each small position of a
movement. The encoder wheel is divided into small either
opaque or clear sections.
A light source, such as an LED, on one side provides a beam of
light to the other side of the encoder wheel, where it is seen by
another light-sensitive sensor like phototransistor.
There are two basic types of encoders: Incremental and absolute.
27
28
Incremental Optical Encoders
• Relative position
calibration ?
direction ?
light sensor
resolution ?
decode
light emitter circuitry
grating
29
Incremental Optical Encoders
If there are 100 lines in the
grating, what is the smallest
detectable change in motor-shaft
angle?
30
Incremental Optical Encoders
Relative position
light sensor
decode
light emitter circuitry
• It generates pulses proportional
to the rotation speed of the shaft.
grating
• Direction can also be indicated
A with a two phase encoder:
A A leads B
B B
31
Incremental
Incremental Encoder:
Optical Encoders
A
B A leads B
ChA
ChB
DIR
001 001
010 011
011 010
100 110
101 111
110 101
111 100
33
Linear Variable Differential Transformer
It is a transformer whose core moves along
with the distance being measured and that
output a variable analog voltage as a result
of this displacement.
The electric energy into one coil creates a flux,
which induces a voltage in the second coil
proportional to the ratio of the number of
turns in the windings.
The output of an LVDT is very linear
proportional to the input position of the
core.
34
Potentiometer
It converts position information into a variable voltage
through a resistor.
As the sweeper on the resistor moves due to a change in
position, the proportion of the resistance before or
after the point of contact with the sweeper compared
with the total resistance varies.
Potentiometers are generally used as internal feedback
sensors in order to report the position of joints and
links.
35
36
Magneto Reflective Displacement
Sensor
A pulse is sent through a conductor, which bounces back as
it reaches a magnet. The time of travel to the magnet and
back is converted to the distance if the speed of travel is
known.
By attaching the moving part to either the magnet or the
conductor, the displacement can be measured.
37
Tachometer
39
Photo-reflector Sensors
Used for grippers in pick and place task
41
Strain Gauges
• Strain gauges can be used to measure forces. The output
of the strain gauge is a variable resistance, proportional
to the strain, which itself is a function of applied forces.
• Strain gauges are used to determine the forces at the end
effector and the wrist of a robot.
42
Torque Sensors
• Torque can be measured by a pair of strategically
placed force sensors. Suppose that two force sensors
are placed on a shaft, it generates two opposing
forces on the shaft’s body, causing opposite direction
strains.
• To measure torques about different axes, three pairs
of mutually perpendicular sensors must be used.
43
Proximity Sensors
Are very common and useful in robotics and automated
machinery applications
• Inductive proximity sensors
47
Ultrasonic Sensors
Basic principle of operation:
• Emit a quick burst of ultrasound (50kHz), (human hearing:
20Hz to 20kHz)
• Measure the elapsed time until the receiver indicates that an
echo is detected.
• Determine how far away the nearest object is from the sensor
D=v*t
D = round-trip distance
v = speed of propagation(340
m/s)
t = elapsed time
Bat, dolphin, …
48
Ultrasonic Sensors
50
Range Finders
Range finders are used to find larger distance, to detect
obstacles, and to map surfaces of objects.
Range finders are generally based on light and
ultrasonics.
The to common methods of measurement are
triangulation and time of flight or lapsed time.
51
Range Finders Cont’d
52
Inertial Sensors
Gyroscopes
• Measure the rate of rotation independent of the
coordinate frame
• Common applications:
Heading sensors, Full Inertial Navigation systems (INS)
Accelerometers
• Measure accelerations with respect to an inertial frame
• Common applications:
Tilt sensor in static applications, Vibration Analysis, Full
INS Systems
53
Acceleration Sensor
Accelerometer are very common
sensors for measuring
accelerations. However, in
general, accelerometers are not
used with industrial robots, since
no acceleration is generally
measured in these robots.
However, recently, acceleration
measurements have been used
for high-precision control of
linear actuators and for joint-
feedback control of robots.
54
Accelerometers
They measure the inertia force generated when a mass is
affected by a change in velocity.
This force may change
• The tension of a string
d 2x dx
F m 2 c kx
d t dt
High quality accelerometers include a servo loop to improve the linearity of the
sensor.
55
Gyroscopes
These devices return a signal proportional to the
rotational velocity.
There is a large variety of gyroscopes that are based
on different principles
56