Lite / Discovering How the World Works / Week 24
Sensors: how machines feel the world
Bats find moths in the dark by shouting and listening. Which robot sensor copies them?
Why should I care?
A machine is only as clever as what it can sense. Choosing the right sensor is one of the first and most important design decisions an engineer makes. Pick the wrong one and no amount of clever programming will help.
- Describe what a sensor does: turn something in the world into a reading.
- Match common sensors to what they measure.
- Sort a machine's parts into sensing, thinking and acting.
Predict
An ultrasonic sensor sends a click of sound and listens for the echo. If the echo comes back faster, is the object closer or further away?
- Closer
- Further away
- It can't tell
Guess first, then reveal
Closer. Sound travels at a steady speed (about 343 m/s in air), so a shorter trip there and back means a shorter distance. The sensor turns a time into a distance, exactly like a bat.
Discover
Sort each part into Sense, Think or Act. Read the explanation after each choice, especially for any you got wrong.
What the interactive shows (text version)
The sorting activity can be replaced by this list. Sense: ultrasonic distance sensor, bump switch, thermometer, wheel encoder. Think: microcontroller. Act: DC motor, buzzer, servo motor, heater.
Understand
A sensor turns the world into a number
A sensor measures something physical and reports it as a reading the controller can use: a distance in cm, a temperature in °C, pressed or not pressed. Without sensors, a machine is blind and deaf.
A sensor zoo
- Distance: ultrasonic (sound echoes) or infrared (light).
- Touch: bump switches, pressure pads.
- Light: light sensors, cameras.
- Temperature: thermometers.
- Movement: wheel encoders count turns; accelerometers feel tilt and shaking.
On/off or a number
Some sensors give just two answers (digital: pressed or not). Others give a whole range (analogue: 0 to 100 cm). A bump switch only tells you that you hit something; a distance sensor tells you how close it is before you hit it.
Explain it another way
Intuitive
Your senses are sensors: eyes for light, ears for sound, skin for touch and temperature. A robot just has different ones, and often only a few.
Technical
A sensor converts a physical quantity into an electrical signal, which is turned into a number. Each sensor has a range (what it can measure), a resolution (smallest change it notices) and some noise.
Mathematical
An ultrasonic sensor measures the echo time t. Sound goes there and back, so distance = speed × t ÷ 2. With t = 0.002 s: 343 × 0.002 ÷ 2 ≈ 0.34 m, about 34 cm.
Applied
Cars use ultrasonic sensors in the bumpers for parking beeps, cameras for lane-keeping, and wheel-speed sensors for anti-lock brakes. Each is chosen for the one job it does best.
Worked example 1
A robot must stop before touching a wall and also know if it has been bumped from behind. Choose sensors.
Front: a distance sensor (ultrasonic or infrared), because it warns before contact. Back: a bump switch is enough, because it only needs to know that a bump happened.
Common mix-ups
A camera is the best sensor for everything.
✓ Cameras are powerful but need lots of processing and struggle in the dark. Often a simple sensor does the job better.An ultrasonic sensor's echo time is the time to reach the object.
✓ It's the time there and back, so halve it.
Practice
Practice, not a test. Answers are checked on our server; a wrong answer gets a hint and another try. Nothing is saved.
Apply it
Choose the sensors for a robot that follows a black line on a white floor and stops if someone stands in front of it. Name each sensor, what it measures, and whether its reading is digital or analogue.
Reflect
If you could give a robot one sense that people don't have, what would it be and why?
Write your answer on paper or in your own notes. Lite never stores what you write.