✦ ✦
Future-Ready · Robotics

Robot sensors and their inputs

A robot can SENSE its surroundings with devices that work a little like eyes, ears, and skin. A program uses sensor readings as inputs when deciding how to act.
🤖Five sensors and what they measure
🤖 the robot 📷 Camera EXIT sign image 📡 Distance distance to wall 🎤 Microphone 🗣️ voice signal 💡 Light sensor line or floor Bump switch
Each example measures a different signal. A program can combine readings to interpret what is happening around the robot.
📷A camera captures images. Software can look for shapes, colors, faces or letters in them.
📡An ultrasonic sensor sends out sound pulses and times the echo to estimate distance.
🎤A microphone records sound. A separate program can recognize spoken commands.
💡A light sensor detects reflected light. A program can use the contrast between a dark line and a light floor to steer.
🛑A bump sensor changes state when something presses its switch.
🔁How an input can trigger a stop
📡 SENSE 📏 "8 cm away" sensor takes a reading 🔢 INPUT 8 numeric input 🧠 DECIDE is 8 < 10? TOO CLOSE! program checks the rule 🛑 ACT ✋ STOP robot reacts
A sensor reading is data that can serve as an input to a program. A rule can then decide what to do.
📡 1. SENSE
The sensor estimates that the wall is 8 cm away.
🔢 2. INPUT
That reading becomes a number the robot's program can read.
🛑 3. ACT
In this program, a distance under 10 cm means stop.
🚗How parking assistance uses distance sensors
OUR CAR ⚠️ 6 cm: close 40 cm: larger gap Proximity alert
Some parking assistance systems use distance sensors to estimate gaps. Depending on the system, it may steer, brake or alert the driver. The driver’s responsibilities and the conditions for use vary.
🔑Key Terms
📡Sensor A component that detects a physical condition, such as light, sound, distance or contact.
🔢Input Information received by a program, such as a numerical distance reading.
📏Ultrasonic (Distance) Sensor Sends out sound pulses and times the echo to measure how far away an object is.
💡Light Sensor Measures light reaching the sensor. Different readings can help distinguish a dark line from a light floor.
🛑Touch / Bump Sensor A switch that responds to physical contact or pressure.
📷Camera (Computer Vision) A camera records images. Computer vision software can analyze them for features such as shapes, signs or faces.
⭐ In the example, an 8 cm reading meets the program’s stop rule. Would a 12 cm reading meet the same rule?
✏️ ClickClass · Robot sensors and their inputs
ClickClass offers hundreds of free printables at clickclassedu.com/printables.