sensing today: using sensors monday: quiz on controls and sensing rat robots scientists develop...
TRANSCRIPT
![Page 1: Sensing Today: Using Sensors Monday: Quiz on Controls and Sensing Rat Robots Scientists Develop Remote-Controlled Rats "The animal is not only doing something](https://reader034.vdocuments.net/reader034/viewer/2022042822/56649efa5503460f94c0ca2c/html5/thumbnails/1.jpg)
SensingToday: Using Sensors
Monday: Quiz on Controls and Sensing
Rat RobotsScientists Develop Remote-Controlled Rats
"The animal is not only doing something — it's feeling something," said Talwar. "So with the same technology you have a closed loop system — a sensory prosthesis."
Pet Care Robot Scares the Bejeezus Out of Fido While You're Away
![Page 2: Sensing Today: Using Sensors Monday: Quiz on Controls and Sensing Rat Robots Scientists Develop Remote-Controlled Rats "The animal is not only doing something](https://reader034.vdocuments.net/reader034/viewer/2022042822/56649efa5503460f94c0ca2c/html5/thumbnails/2.jpg)
Calculating Turns – Differential Steering
r
r-w/2
r+w/2
For a robot with a wheel separation of w…
• When traveling a complete circle the robot will travel 2pr (p is pi, r is radius)
• The left wheel will travel: 2pr - pw
• The right wheel will travel 2pr + pw
• If the right travels 2pw further than the left, the robot’s made a complete CCW circle
• If the left goes pw more than the right, the robot has turned CW 180 º
• This determines the degree of turn for any angle measured in radians (e.g., p/2=90 º)
• The time traveled is distance/velocity so (2pr + pw)/v1 = (2pr – pw)/v2 for the 2 wheel velocities (v1=outer wheel, v2=inner)
• Decide on radius r and velocity v1 and you can determine what v2 needs to be
![Page 3: Sensing Today: Using Sensors Monday: Quiz on Controls and Sensing Rat Robots Scientists Develop Remote-Controlled Rats "The animal is not only doing something](https://reader034.vdocuments.net/reader034/viewer/2022042822/56649efa5503460f94c0ca2c/html5/thumbnails/3.jpg)
Sensing the World
• Sensors are devices that measure some attribute of the world
![Page 4: Sensing Today: Using Sensors Monday: Quiz on Controls and Sensing Rat Robots Scientists Develop Remote-Controlled Rats "The animal is not only doing something](https://reader034.vdocuments.net/reader034/viewer/2022042822/56649efa5503460f94c0ca2c/html5/thumbnails/4.jpg)
Sensors• A sensor receives energy and transmits to
the computer– Input is converted to a digital or analog form
usable by the robot– A transducer transforms the energy associated
with what is being measured into another form of energy
• Passive Vs. Active Sensor
• Sensor Modality – What is the raw input?
![Page 5: Sensing Today: Using Sensors Monday: Quiz on Controls and Sensing Rat Robots Scientists Develop Remote-Controlled Rats "The animal is not only doing something](https://reader034.vdocuments.net/reader034/viewer/2022042822/56649efa5503460f94c0ca2c/html5/thumbnails/5.jpg)
Sensing
• Sensors are designed to measure a particular physical property which “usually” has a meaningful relationship with a property of the environment– Example: Sonar measures time of flight
• Assumption that the pulse received was reflected back by an object in front of the sensor
• Sonar the time of flight of the wave is used to calculate the range of the object
![Page 6: Sensing Today: Using Sensors Monday: Quiz on Controls and Sensing Rat Robots Scientists Develop Remote-Controlled Rats "The animal is not only doing something](https://reader034.vdocuments.net/reader034/viewer/2022042822/56649efa5503460f94c0ca2c/html5/thumbnails/6.jpg)
Classes of Sensors• With regard to the type of
information that needs to be extracted– Proprioception: measurements of
movement with regard to an internal frame of reference
– Exteroception: measurements of objects relative to the robot’s frame of reference
– Exproprioception: measurement of movement with regard to an external frame of reference
![Page 7: Sensing Today: Using Sensors Monday: Quiz on Controls and Sensing Rat Robots Scientists Develop Remote-Controlled Rats "The animal is not only doing something](https://reader034.vdocuments.net/reader034/viewer/2022042822/56649efa5503460f94c0ca2c/html5/thumbnails/7.jpg)
Logical Sensors
• Supplies a percept (perception)– Signal processing for input, software
processing for interpretation– Example: detecting an obstacle– Sensors could be logically equivalent
• Example: laser and sonar
![Page 8: Sensing Today: Using Sensors Monday: Quiz on Controls and Sensing Rat Robots Scientists Develop Remote-Controlled Rats "The animal is not only doing something](https://reader034.vdocuments.net/reader034/viewer/2022042822/56649efa5503460f94c0ca2c/html5/thumbnails/8.jpg)
Sensor Fusion• Combining information from multiple sensors
– Redundant– Competing– Complementary
![Page 9: Sensing Today: Using Sensors Monday: Quiz on Controls and Sensing Rat Robots Scientists Develop Remote-Controlled Rats "The animal is not only doing something](https://reader034.vdocuments.net/reader034/viewer/2022042822/56649efa5503460f94c0ca2c/html5/thumbnails/9.jpg)
Sensor Characteristics
• Field of View• Sensitivity
– Ratio of change of output to change of input.
• Linearity– Measure for the constancy of ratio of input to
output.
• Response time– Time required for a change in input to be
observable in the output.
![Page 10: Sensing Today: Using Sensors Monday: Quiz on Controls and Sensing Rat Robots Scientists Develop Remote-Controlled Rats "The animal is not only doing something](https://reader034.vdocuments.net/reader034/viewer/2022042822/56649efa5503460f94c0ca2c/html5/thumbnails/10.jpg)
Sensor Characteristics
• Accuracy– The difference between actual and measured
values.
• Repeatability– The difference between successive
measurements of the same entity.
• Resolution– Smallest observable increment in input.
![Page 11: Sensing Today: Using Sensors Monday: Quiz on Controls and Sensing Rat Robots Scientists Develop Remote-Controlled Rats "The animal is not only doing something](https://reader034.vdocuments.net/reader034/viewer/2022042822/56649efa5503460f94c0ca2c/html5/thumbnails/11.jpg)
Sensor Characteristics
• Responsiveness to target domain– How well is the sensor suited for
measuring the signal of interest in its environment
• Computational Complexity
• Interpretation Reliability
![Page 12: Sensing Today: Using Sensors Monday: Quiz on Controls and Sensing Rat Robots Scientists Develop Remote-Controlled Rats "The animal is not only doing something](https://reader034.vdocuments.net/reader034/viewer/2022042822/56649efa5503460f94c0ca2c/html5/thumbnails/12.jpg)
• Detachable sensors use a keyed connector (2 wire or 3 wire)
– Analog sensors: • Light (ports 2-6)• IR reflectance (ports 2-6)
– Floating analog sensors:• Optical rangefinder (ports 0-1)
– Digital sensors:• Touch (ports 8-15)
– Special sensors:• Ultrasonic rangefinder (sonar)
– (ports 8-15)• XBC Camera
– (camera port on XBC)
Detachable Sensors
![Page 13: Sensing Today: Using Sensors Monday: Quiz on Controls and Sensing Rat Robots Scientists Develop Remote-Controlled Rats "The animal is not only doing something](https://reader034.vdocuments.net/reader034/viewer/2022042822/56649efa5503460f94c0ca2c/html5/thumbnails/13.jpg)
The GBA SP Buttons &
Library Functions
L “shoulder” button(under the hinge)
R “shoulder” button(under the hinge)
right button
left button
up button
down button
A button(choose)
B button(escape)
start buttonselect button
back-light off/on button power indicator LED
recharge indicator LED
All of these functions work on the XBC and simulator
l_button()
up_button()
left_button()
right_button()
down_button()
r_button()
a_button()
b_button()
![Page 14: Sensing Today: Using Sensors Monday: Quiz on Controls and Sensing Rat Robots Scientists Develop Remote-Controlled Rats "The animal is not only doing something](https://reader034.vdocuments.net/reader034/viewer/2022042822/56649efa5503460f94c0ca2c/html5/thumbnails/14.jpg)
Type of Sensors• Proprioceptive Sensors
– Shaft Encoders• Dead “ded” reckoning
– Angle Sensors
![Page 15: Sensing Today: Using Sensors Monday: Quiz on Controls and Sensing Rat Robots Scientists Develop Remote-Controlled Rats "The animal is not only doing something](https://reader034.vdocuments.net/reader034/viewer/2022042822/56649efa5503460f94c0ca2c/html5/thumbnails/15.jpg)
Touch Sensors • Digital sensor• Connect to ports 8-15• Access with library function digital(port#)
• Three form factors in kit• 1 indicates switch is closed• 0 indicates switch is open• These make good bumpers
and can be used for limit switches on an actuator
![Page 16: Sensing Today: Using Sensors Monday: Quiz on Controls and Sensing Rat Robots Scientists Develop Remote-Controlled Rats "The animal is not only doing something](https://reader034.vdocuments.net/reader034/viewer/2022042822/56649efa5503460f94c0ca2c/html5/thumbnails/16.jpg)
Tactile Sensors• Bumpers and feelers
– Micro switches, contact plates, ring sensors
![Page 17: Sensing Today: Using Sensors Monday: Quiz on Controls and Sensing Rat Robots Scientists Develop Remote-Controlled Rats "The animal is not only doing something](https://reader034.vdocuments.net/reader034/viewer/2022042822/56649efa5503460f94c0ca2c/html5/thumbnails/17.jpg)
• Analog sensor• Connect to ports 2-6• Access with library function analog12(port#)
– You can also use analog(port#) for lower resolution
• Low values (near 0) indicate bright light• High values (near 4095 for analog12, 255 for analog) indicate low light
• Sensor is somewhat directional and can be made more so using black paper or tape or an opaque straw or lego to shade extraneous light. Sensor can be attenuated by placing paper in front.
Light Sensors
![Page 18: Sensing Today: Using Sensors Monday: Quiz on Controls and Sensing Rat Robots Scientists Develop Remote-Controlled Rats "The animal is not only doing something](https://reader034.vdocuments.net/reader034/viewer/2022042822/56649efa5503460f94c0ca2c/html5/thumbnails/18.jpg)
• Connect to ports 2-6• Access with library function analog12(port#)
– You can also use analog(port#) for lower resolution (0-255)
• Low values (0) indicate bright light, light color, or close proximity
• High values (4095) indicate low light, dark color, or distance of several inches
• Sensor has a reflectance range of about 3 inches
IR Reflectance Sensor “Top Hat”
![Page 19: Sensing Today: Using Sensors Monday: Quiz on Controls and Sensing Rat Robots Scientists Develop Remote-Controlled Rats "The animal is not only doing something](https://reader034.vdocuments.net/reader034/viewer/2022042822/56649efa5503460f94c0ca2c/html5/thumbnails/19.jpg)
IR Reflectance Sensors
Amount of reflected IR depends on surface texture, color, and distance to surface
![Page 20: Sensing Today: Using Sensors Monday: Quiz on Controls and Sensing Rat Robots Scientists Develop Remote-Controlled Rats "The animal is not only doing something](https://reader034.vdocuments.net/reader034/viewer/2022042822/56649efa5503460f94c0ca2c/html5/thumbnails/20.jpg)
Proximity Sensors
• Infrared (IR)– Emit an infrared light
and detect reflections off of objects
– Affected by color and bounce
![Page 21: Sensing Today: Using Sensors Monday: Quiz on Controls and Sensing Rat Robots Scientists Develop Remote-Controlled Rats "The animal is not only doing something](https://reader034.vdocuments.net/reader034/viewer/2022042822/56649efa5503460f94c0ca2c/html5/thumbnails/21.jpg)
• Floating analog sensor• Connect to ports 0-1• Access with library function analog12(port#)
– You can also use analog(port#) for lower resolution
• Low values (0) indicate large distance• High values indicate distance approaching ~4
inches• Range is 4-30 inches. Result is approximately
1/d2. Objects closer than 4 inches will produce values indistinguishable from objects farther away
Optical Rangefinder “ET”
![Page 22: Sensing Today: Using Sensors Monday: Quiz on Controls and Sensing Rat Robots Scientists Develop Remote-Controlled Rats "The animal is not only doing something](https://reader034.vdocuments.net/reader034/viewer/2022042822/56649efa5503460f94c0ca2c/html5/thumbnails/22.jpg)
Optical Rangefinder
Focused IR Beam
Lens
Position Sensing Device (PSD)
(high value)
(low value)
(low value)
![Page 23: Sensing Today: Using Sensors Monday: Quiz on Controls and Sensing Rat Robots Scientists Develop Remote-Controlled Rats "The animal is not only doing something](https://reader034.vdocuments.net/reader034/viewer/2022042822/56649efa5503460f94c0ca2c/html5/thumbnails/23.jpg)
• Timed analog sensor• Connect: port 8-15• Access with library
function sonar(port#)• Returned value is distance
in mm to closest object in field of view
• Range is approximately 30-2000mm
• No return (because objects are too close or too far) gives value of 32767
Ultrasonic Rangefinder (Sonar)
![Page 24: Sensing Today: Using Sensors Monday: Quiz on Controls and Sensing Rat Robots Scientists Develop Remote-Controlled Rats "The animal is not only doing something](https://reader034.vdocuments.net/reader034/viewer/2022042822/56649efa5503460f94c0ca2c/html5/thumbnails/24.jpg)
Ultrasonic Sensors
• Puts out a short burst of high frequency sound
• Listens for the echo• Speed of sound is
~300mm/ms• sonar() times the
echo, divides by two and multiplies by speed of sound
• The sonar field of view is a 30o (3-dim) teardrop
sonar
Area of coverage
![Page 25: Sensing Today: Using Sensors Monday: Quiz on Controls and Sensing Rat Robots Scientists Develop Remote-Controlled Rats "The animal is not only doing something](https://reader034.vdocuments.net/reader034/viewer/2022042822/56649efa5503460f94c0ca2c/html5/thumbnails/25.jpg)
Proximity Sensors
• Sonar– Emits a “chirp” and “listens” for bounce back– Used to determine range based on time of flight– Affected by foreshortening, specular reflections, cross-talk
![Page 26: Sensing Today: Using Sensors Monday: Quiz on Controls and Sensing Rat Robots Scientists Develop Remote-Controlled Rats "The animal is not only doing something](https://reader034.vdocuments.net/reader034/viewer/2022042822/56649efa5503460f94c0ca2c/html5/thumbnails/26.jpg)
Proximity Sensors• Laser
– Emits a light and “watches” for bounce back
– Used to determine range based on time of flight
– Due to the difference in wave lengths lasers are less susceptible to specular reflections and are more accurate than sonar.
![Page 27: Sensing Today: Using Sensors Monday: Quiz on Controls and Sensing Rat Robots Scientists Develop Remote-Controlled Rats "The animal is not only doing something](https://reader034.vdocuments.net/reader034/viewer/2022042822/56649efa5503460f94c0ca2c/html5/thumbnails/27.jpg)
Designing a Sensor Suite
• Distinctive environmental features
• Logical Sensors– Sensor Fusion
• Redundancy– Logical and physical