AME352 Lecture Week Sensors Part1
AME352 Lecture Week Sensors Part1
Sensors
Part I
Hints for Wcheckup 6
2
FSM into Digital Circuits
Output
MSB LSB
O4 O3 O2 O1
Increment
CLK 4-bit Counter
2-bit
Reset
3
FSM into Digital Circuits
• State 1: 0
• State 2: 1
• State 3: 2
• State 4: 3
4
Regular 4-bit Up/Down Counter
Output
MSB LSB
O4 O3 O2 O1
Increment
CLK 4-bit Counter
Reset
Output
MSB LSB Increment
O4 O3 O2 O1 O4O3O2O1 =CLK-IN 4-bit Counter
Reset
Counter 2
Increment
CLK 4-bit Counter
Reset
Counter 1
• Notes
• Submission Link
7
Introduction to Sensors
Perception:
• Words, Sentences – Making sense of what was
communicated.
Sensing involves converting physical quantities (Property) into signals
(Usually Electronic Signals)
Perception involves converting the signals into higher constructs often
having a meaning, description, construct.
Types of Sensors
11
Human Sensors
• Our preference:
• Vision
• Range Distance
• Distance Travelled
• Sound
• Touch
• Size
• Hardness
• Force Sensing
• Smell
• Taste
• Ranked by range and threat perception-level…
• We are built to be hunters and survivalists…
12
Camera ?= Eyes
• Modern digital cameras not even close to
human/mammalian eyes.
• Our eyes are limited by bandwidth, color, motion, detail
sensing…
• But eyes work closely with the brain to make sense of
what we see (perception).
• The brains fills in for incoherent or missing info so you can
make decisions quickly.
• Researchers have created/found optical illusions that can
fool our brain but in the act show how it is working.
13
Camera ?= Eyes
19
Sensor Systems
• Interface to sensors may be digital or analog.
• We will emphasize digital interfacing.
1. Simple sensors typically use voltage as a
working signal to make measurements.
• Single digital variable (1 to 8 data ports)
2. Mid-tier complex sensors may use counters, adders, and
subtractors.
• Single digital variable with memory (1 to 16 data ports)
22
16-bit to 8-bit Truncation
MSB LSB
8-bit word
23
Angular or Linear Displacement -
Potentiometer
• Consist of rotary potentiometer or variable resistor. Change in
resistor value corresponds to angular position.
W7C1
24
Angular or Linear Displacement -
Potentiometer
• Encoded as voltage:
VAW or VWB which will be directly proportional to the position of the shaft.
• Electrical Circuit:
W7C2
25
Angular Displacement
26
Angular or Linear Displacement -
Potentiometer
27
Angular or Linear Displacement - Encoder
28
Angular or Linear Displacement -
Encoder
29
Encoder
• The two photosensors (A and B) positioned behind the coded disk sense the
infrared light emitted by the IR LED, which results in A and B signals/pulses,
in four distinct states as outlined in Table:
W7C3
State Signal A Signal B
1 OFF ON
2 OFF OFF
3 ON OFF
4 ON ON
30
Key to Encoders -
Position
• Encoders measure distance, d.
• They will take an 8-bit or 16-bit variable and
count pulses (using 8-bit or 16-bit counter).
W7C4
31
Key To Encoders -
Velocity
• For Velocity:
W7C7
36
Regular 4-bit Up/Down Counter
Output
MSB LSB
O4 O3 O2 O1
Increment
CLK 4-bit Counter
Reset
Output
MSB LSB Increment
O4 O3 O2 O1 O4O3O2O1 =CLK-IN 4-bit Counter
Reset
Increment
CLK 4-bit Counter
Reset
39
Absolute Encoder
W7C8
40
Encoder – Pulse to
Position
• Pulses generated by an encoder can be converted to
angular position (in degrees) as follows:
41
Encoder - Pulses
42
X1, X2, X4 Coders
43
Analog to Digital
Sampling
• Analog signal digitized at different
frequencies.
W7C9
44
Analog to Digital
Sampling
• Watch Out: Frequency way off could miss
underlying pattern.
45
Distance and Proximity Sensing
• Sonar Sensor:
46
Distance and Proximity Sensing
• Sonar Sensor:
• Where d is the distance between the sensor and the reflecting object, c is
the speed of sound, and t is the time it takes for the transmitted ultrasonic
ping to travel from the transmitter back to the receiver.
• Board can measure objects ranging from 6 to 254 inches with a resolution of
±1 inch.
47 W7C10
Key to Proximity Sensor -
Position
• Proximity measure distance, d.
• They will take a 8-bit or 16-bit variable
48
Sonar Sensor
49
Sonar Sensor
50
Time of Flight Sensors
W7C11
• where d is the measured target distance in meters, td is the time for the
bounced beam to be detected by the receiver in seconds, and c is the
speed of light in meters per second
51
Time of Flight Sensor
52
Time of Flight Sensor
53
Digital Proximity Sensor
• The sensor will either output an analog signal that is proportional to the
measured distance, or will output a digital equivalent of the measured
distance.
54
Digital Proximity Sensor
55
56